2018-01-02 06:37:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.58 2018/01/02 05:37:23 maya Exp $
|
1998-03-18 02:51:14 +01:00
|
|
|
|
1998-03-19 13:10:42 +01:00
|
|
|
DISTNAME= pgp263is
|
2006-09-28 18:21:46 +02:00
|
|
|
PKGREVISION= 1
|
1998-03-19 13:10:42 +01:00
|
|
|
CATEGORIES= security
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= ftp://ftp.ifi.uio.no/pub/pgp/2.x/src/
|
|
|
|
MASTER_SITES+= ftp://ftp.kiarchive.ru/pub/unix/crypto/pgp/
|
1998-03-19 13:10:42 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:53:15 +02:00
|
|
|
HOMEPAGE= http://www.pgpi.org/
|
2003-07-23 12:51:13 +02:00
|
|
|
COMMENT= Public-key encryption and digital signature utility (v2)
|
2016-10-03 10:15:50 +02:00
|
|
|
LICENSE= pgp2-license
|
1998-03-19 13:10:42 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
Reorganize crypto handling, as discussed on tech-pkg. Remove all
RESTRICTED= variables that were predicated on former U.S. export
regulations. Add CRYPTO=, as necessary, so it's still possible to
exclude all crypto packages from a build by setting MKCRYPTO=no
(but "lintpkgsrc -R" will no longer catch them).
Specifically,
- - All packages which set USE_SSL just lose their RESTRICTED
variable, since MKCRYPTO responds to USE_SSL directly.
- - realplayer7 and ns-flash keep their RESTRICTED, which is based
on license terms, but also gain the CRYPTO variable.
- - srp-client is now marked broken, since the distfile is evidently
no longer available. On this, we're no worse off than before.
[We haven't been mirroring the distfile, or testing the build!]
- - isakmpd gets CRYPTO for RESTRICTED, but remains broken.
- - crack loses all restrictions, as it does not evidently empower
a user to utilize strong encryption (working definition: ability
to encode a message that requires a secret key plus big number
arithmetic to decode).
2000-09-09 21:40:14 +02:00
|
|
|
|
2005-12-01 21:17:48 +01:00
|
|
|
.include "options.mk"
|
1998-03-18 02:51:14 +01:00
|
|
|
|
2005-12-01 21:17:48 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2003-03-14 20:37:30 +01:00
|
|
|
|
1998-08-26 04:42:02 +02:00
|
|
|
PGPLIB= ${PREFIX}/share/pgp
|
2005-03-07 11:03:13 +01:00
|
|
|
CFLAGS+= -DPGP_SYSTEM_DIR="\"${PGPLIB}/\""
|
1998-03-18 02:51:14 +01:00
|
|
|
|
2001-02-22 08:43:08 +01:00
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
1998-03-18 02:51:14 +01:00
|
|
|
OBJS_EXT= _80386.o _zmatch.o
|
|
|
|
ASMFLAG= -DASM
|
2001-02-22 08:43:08 +01:00
|
|
|
.elif (${MACHINE_ARCH} == "sparc") && (${OPSYS} != SunOS)
|
1998-03-18 02:51:14 +01:00
|
|
|
OBJS_EXT= sparc.o
|
|
|
|
ASMFLAG=
|
|
|
|
.else
|
|
|
|
OBJS_EXT=
|
|
|
|
ASMFLAG= -DPORTABLE -DMPORTABLE
|
|
|
|
.endif
|
|
|
|
|
2002-08-14 04:39:30 +02:00
|
|
|
.include "../../mk/endian.mk"
|
|
|
|
|
|
|
|
.if (${MACHINE_ENDIAN} == "big")
|
2007-02-22 20:26:05 +01:00
|
|
|
CFLAGS+= -DHIGHFIRST
|
2002-08-14 04:39:30 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-01 21:17:48 +01:00
|
|
|
BUILD_DEFS+= ASMFLAG
|
1999-08-18 10:45:19 +02:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PGPLIB}
|
2005-05-16 03:15:30 +02:00
|
|
|
|
1998-03-18 02:51:14 +01:00
|
|
|
post-extract:
|
2005-08-01 15:10:07 +02:00
|
|
|
cd ${WRKDIR} && ${TAR} xf pgp263ii.tar && ${RM} -f pgp263ii.tar
|
1998-03-18 02:51:14 +01:00
|
|
|
|
|
|
|
do-build:
|
2000-04-28 04:20:21 +02:00
|
|
|
cd ${WRKSRC} && ${MAKE} all CC="${CC}" LD="${CC}" \
|
|
|
|
OBJS_EXT="${OBJS_EXT}" \
|
2005-03-16 13:03:06 +01:00
|
|
|
CFLAGS=${CFLAGS:Q}" ${RSAINC} ${ASMFLAG} -O2 -DUNIX -DIDEA32 \
|
1998-03-19 13:10:42 +01:00
|
|
|
-DMAX_NAMELEN=255" RSALIBS="${RSALIBS}" RSAOBJS="${RSAOBJS}"
|
1998-03-18 02:51:14 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pgp ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/pgp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
cd ${WRKDIR}/doc && ${INSTALL_DATA} pgpdoc1.txt pgpdoc2.txt ${DESTDIR}${PGPLIB}
|
1998-03-18 02:51:14 +01:00
|
|
|
cd ${WRKDIR} && \
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_DATA} de.hlp en.hlp es.hlp fr.hlp pgp.hlp ${DESTDIR}${PGPLIB}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/language.txt ${DESTDIR}${PGPLIB}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/config.txt ${DESTDIR}${PGPLIB}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/en.hlp ${DESTDIR}${PGPLIB}/pgp.hlp
|
1998-03-18 02:51:14 +01:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|