1995-07-07 19:50:10 -04:00
|
|
|
# New ports collection makefile for: pgp
|
1996-05-26 20:53:55 -04:00
|
|
|
# Version required: MIT 2.6.2 / International 2.6.3ia
|
|
|
|
# International PGP homepage is http://www.ifi.uio.no/pgp/
|
|
|
|
#
|
1995-07-07 19:50:10 -04:00
|
|
|
# Date created: 8 Jul 1995
|
|
|
|
# Whom: ache
|
|
|
|
#
|
1997-02-02 16:45:31 -05:00
|
|
|
# $Id: Makefile,v 1.18 1996/11/18 14:13:26 asami Exp $
|
1995-07-07 19:50:10 -04:00
|
|
|
#
|
|
|
|
|
1995-10-06 20:08:39 -04:00
|
|
|
# Pick an initial default, else it doesn't get set in the INDEX.
|
|
|
|
DISTNAME= pgp262s
|
1996-11-17 02:58:10 -05:00
|
|
|
CATEGORIES= security
|
1995-10-06 20:08:39 -04:00
|
|
|
|
1995-07-07 19:50:10 -04:00
|
|
|
MAINTAINER= ache@FreeBSD.ORG
|
1996-10-16 04:13:48 -04:00
|
|
|
|
1996-11-18 09:17:24 -05:00
|
|
|
# Need to define USA_RESIDENT to YES or NO
|
|
|
|
IS_INTERACTIVE= YES
|
|
|
|
RESTRICTED= "Crypto"
|
1995-09-15 17:10:18 -04:00
|
|
|
MAKEFILE= makefile
|
1995-07-07 19:50:10 -04:00
|
|
|
ALL_TARGET= freebsd
|
|
|
|
PGPLIB= ${PREFIX}/lib/pgp
|
1996-11-18 09:17:24 -05:00
|
|
|
MAN1= pgp.1
|
1995-07-07 19:50:10 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}; install -c -o bin -g bin -m 555 pgp ${PREFIX}/bin
|
1996-01-03 23:35:17 -05:00
|
|
|
cd ${WRKSRC}/../doc; \
|
1995-07-07 19:50:10 -04:00
|
|
|
install -c -o bin -g bin -m 444 pgp.1 ${PREFIX}/man/man1
|
|
|
|
-mkdir -p ${PGPLIB}
|
|
|
|
chown bin.bin ${PGPLIB}
|
|
|
|
chmod 555 ${PGPLIB}
|
1996-01-03 23:35:17 -05:00
|
|
|
cd ${WRKSRC}/..; \
|
1995-07-07 19:50:10 -04:00
|
|
|
install -c -o bin -g bin -m 444 pgp.hlp \
|
|
|
|
doc/pgpdoc1.txt doc/pgpdoc2.txt ${PGPLIB}; \
|
|
|
|
[ -f ${PGPLIB}/language.txt ] || \
|
|
|
|
install -c -o bin -g bin -m 444 language.txt ${PGPLIB}; \
|
|
|
|
[ -f ${PGPLIB}/config.txt ] || \
|
|
|
|
install -c -o bin -g bin -m 444 config.txt ${PGPLIB}
|
|
|
|
-${PREFIX}/bin/pgp > /dev/null 2>&1 # update .idx file
|
|
|
|
|
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
|
1995-09-28 10:57:24 -04:00
|
|
|
pre-fetch:
|
1995-07-07 19:50:10 -04:00
|
|
|
@echo
|
|
|
|
@echo You must set variable USA_RESIDENT to YES, if you are USA resident
|
|
|
|
@echo or to NO, if you aren\'t USA resident to build this package
|
|
|
|
@false
|
|
|
|
.elif defined(USA_RESIDENT)
|
|
|
|
.if ${USA_RESIDENT} == YES
|
|
|
|
DISTNAME= pgp262s
|
|
|
|
PKGNAME= pgp-2.6.2
|
1997-02-02 16:45:31 -05:00
|
|
|
MASTER_SITES= ftp://utopia.hacktic.nl/pub/replay/pub/pgp/unix/ \
|
|
|
|
ftp://sable.ox.ac.uk/pub/crypto/pgp/unix/
|
1995-07-07 19:50:10 -04:00
|
|
|
EXTRACT_SUFX= .zip
|
1996-01-03 23:35:17 -05:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
1995-09-23 13:26:19 -04:00
|
|
|
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
|
1995-12-02 18:17:05 -05:00
|
|
|
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
1997-02-02 16:45:31 -05:00
|
|
|
LIB_DEPENDS+= rsaref\\.2\\.0:${PORTSDIR}/security/rsaref
|
1995-07-07 19:50:10 -04:00
|
|
|
EXTRACT_CMD= unzip
|
|
|
|
EXTRACT_ARGS= -q
|
|
|
|
FILESDIR= ${.CURDIR}/files.usa
|
|
|
|
PATCHDIR= ${.CURDIR}/patches.usa
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR}; $(EXTRACT_CMD) $(EXTRACT_ARGS) -aa $(DISTNAME)i
|
|
|
|
cd ${WRKDIR}; rm -f *.zip
|
|
|
|
|
|
|
|
.else
|
1996-01-18 17:48:41 -05:00
|
|
|
DISTNAME= pgp263is
|
1996-05-26 20:53:55 -04:00
|
|
|
PKGNAME= pgp-2.6.3ia
|
1996-01-18 17:48:41 -05:00
|
|
|
MASTER_SITES= ftp://ftp.ifi.uio.no/pub/pgp/src/ \
|
1997-02-02 16:45:31 -05:00
|
|
|
ftp://ftp.relcom.ru/unix/crypto/pgp/
|
1996-01-18 17:48:41 -05:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
1995-07-07 19:50:10 -04:00
|
|
|
FILESDIR= ${.CURDIR}/files.non_usa
|
1995-09-28 10:57:24 -04:00
|
|
|
PATCHDIR= ${.CURDIR}/patches.non_usa
|
1995-07-07 19:50:10 -04:00
|
|
|
|
1996-01-18 17:48:41 -05:00
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR}; $(EXTRACT_CMD) -xf pgp263ii.tar; \
|
|
|
|
rm -f pgp263ii.tar
|
|
|
|
|
1995-07-07 19:50:10 -04:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|