1995-07-07 23:50:10 +00:00
|
|
|
# New ports collection makefile for: pgp
|
|
|
|
# Date created: 8 Jul 1995
|
|
|
|
# Whom: ache
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1995-07-07 23:50:10 +00:00
|
|
|
#
|
|
|
|
|
1995-10-07 00:08:39 +00:00
|
|
|
# Pick an initial default, else it doesn't get set in the INDEX.
|
1996-11-17 07:58:10 +00:00
|
|
|
CATEGORIES= security
|
2000-04-21 08:19:33 +00:00
|
|
|
DISTNAME= pgp262s
|
1995-10-07 00:08:39 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= ache@FreeBSD.org
|
1996-10-16 08:13:48 +00:00
|
|
|
|
1996-11-18 14:17:24 +00:00
|
|
|
# Need to define USA_RESIDENT to YES or NO
|
|
|
|
IS_INTERACTIVE= YES
|
2000-04-21 08:19:33 +00:00
|
|
|
RESTRICTED= "Crypto"
|
|
|
|
MAKEFILE= makefile
|
|
|
|
ALL_TARGET= freebsd-${MACHINE_ARCH} OS_CFLAGS="${CFLAGS}"
|
|
|
|
PGPLIB= ${PREFIX}/lib/pgp
|
1996-11-18 14:17:24 +00:00
|
|
|
MAN1= pgp.1
|
1995-07-07 23:50:10 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}; install -c -o bin -g bin -m 555 pgp ${PREFIX}/bin
|
1996-01-04 04:35:17 +00:00
|
|
|
cd ${WRKSRC}/../doc; \
|
1995-07-07 23:50:10 +00:00
|
|
|
install -c -o bin -g bin -m 444 pgp.1 ${PREFIX}/man/man1
|
1999-08-22 23:33:47 +00:00
|
|
|
-${MKDIR} ${PGPLIB}
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 555 ${PGPLIB}
|
1996-01-04 04:35:17 +00:00
|
|
|
cd ${WRKSRC}/..; \
|
1995-07-07 23:50:10 +00: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 14:57:24 +00:00
|
|
|
pre-fetch:
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} You must set variable USA_RESIDENT to YES, if you are USA resident
|
|
|
|
@${ECHO_MSG} or to NO, if you aren\'t USA resident to build this package
|
1999-08-23 04:23:59 +00:00
|
|
|
@${FALSE}
|
1995-07-07 23:50:10 +00:00
|
|
|
.elif defined(USA_RESIDENT)
|
|
|
|
.if ${USA_RESIDENT} == YES
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= pgp
|
|
|
|
PORTVERSION= 2.6.2
|
2000-04-23 05:42:03 +00:00
|
|
|
MASTER_SITES= ftp://utopia.hacktic.nl/pub/crypto/pgp/unix/
|
2000-04-09 18:34:06 +00:00
|
|
|
DISTNAME= pgp262s
|
|
|
|
|
2000-04-21 08:19:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
|
|
|
|
LIB_DEPENDS+= rsaref.2:${PORTSDIR}/security/rsaref
|
1999-05-07 03:26:25 +00:00
|
|
|
USE_ZIP= yes
|
2000-04-21 08:19:33 +00:00
|
|
|
FILESDIR= ${.CURDIR}/files.usa
|
|
|
|
PATCHDIR= ${.CURDIR}/patches.usa
|
1995-07-07 23:50:10 +00:00
|
|
|
|
|
|
|
post-extract:
|
1999-02-03 11:12:01 +00:00
|
|
|
cd ${WRKDIR}; $(EXTRACT_CMD) $(EXTRACT_BEFORE_ARGS) -aa $(DISTNAME)i \
|
|
|
|
$(EXTRACT_AFTER_ARGS)
|
1999-08-28 02:42:41 +00:00
|
|
|
cd ${WRKDIR}; ${RM} -f *.zip
|
1995-07-07 23:50:10 +00:00
|
|
|
|
|
|
|
.else
|
2000-04-21 08:19:33 +00:00
|
|
|
PORTNAME= pgp
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTVERSION= 2.6.3ia
|
2000-04-21 08:19:33 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ifi.uio.no/pub/pgp/2.x/src/ \
|
1997-08-27 13:06:01 +00:00
|
|
|
ftp://ftp.kiarchive.ru/pub/unix/crypto/pgp/
|
2000-04-09 18:34:06 +00:00
|
|
|
DISTNAME= pgp263is
|
|
|
|
|
2000-04-21 08:19:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
FILESDIR= ${.CURDIR}/files.non_usa
|
|
|
|
PATCHDIR= ${.CURDIR}/patches.non_usa
|
1995-07-07 23:50:10 +00:00
|
|
|
|
1996-01-18 22:48:41 +00:00
|
|
|
post-extract:
|
1999-02-07 06:29:53 +00:00
|
|
|
cd ${WRKDIR}; $(TAR) -xf pgp263ii.tar; \
|
1999-08-28 02:42:41 +00:00
|
|
|
${RM} -f pgp263ii.tar
|
1996-01-18 22:48:41 +00:00
|
|
|
|
1995-07-07 23:50:10 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|