aboutsummaryrefslogtreecommitdiff
path: root/security/pgp/Makefile
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-07-07 23:50:10 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-07-07 23:50:10 +0000
commitce5404a73bd8404e6f48fe81f9ce6ac76f18590a (patch)
tree0780a134a7c9ee308677f6886380a955e2077a45 /security/pgp/Makefile
parent942994b97040bf055cedda67a027904fb05584ac (diff)
downloadports-ce5404a73bd8404e6f48fe81f9ce6ac76f18590a.tar.gz
ports-ce5404a73bd8404e6f48fe81f9ce6ac76f18590a.zip
Fix commit conflict
Notes
Notes: svn path=/head/; revision=1933
Diffstat (limited to 'security/pgp/Makefile')
-rw-r--r--security/pgp/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/security/pgp/Makefile b/security/pgp/Makefile
new file mode 100644
index 000000000000..b4153cdc9ee1
--- /dev/null
+++ b/security/pgp/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: pgp
+# Version required: MIT 2.6.2 / International 2.6.2i
+# PGP 2.6.2i homepage is http://www.ifi.uio.no/~staalesc/PGP/home.html
+# Date created: 8 Jul 1995
+# Whom: ache
+#
+# $Id: Makefile,v 1.7 1995/05/15 20:45:14 ache Exp $
+#
+
+CATEGORIES+= utilities
+MAINTAINER= ache@FreeBSD.ORG
+WRKSRC= ${WRKDIR}/src
+MAKEFILE= makefile
+ALL_TARGET= freebsd
+PGPLIB= ${PREFIX}/lib/pgp
+# Need to define USA_RESIDENT to YES or NO
+IS_INTERACTIVE= YES
+
+do-install:
+ cd ${WRKSRC}; install -c -o bin -g bin -m 555 pgp ${PREFIX}/bin
+ cd ${WRKDIR}/doc; \
+ install -c -o bin -g bin -m 444 pgp.1 ${PREFIX}/man/man1
+ -mkdir -p ${PGPLIB}
+ chown bin.bin ${PGPLIB}
+ chmod 555 ${PGPLIB}
+ cd ${WRKDIR}; \
+ 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
+exec_depends:
+ @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
+MASTER_SITES= ftp://sable.ox.ac.uk/pub/crypto/pgp/unix/
+EXTRACT_SUFX= .zip
+EXEC_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
+ gmake:${PORTSDIR}/devel/gmake
+EXTRACT_CMD= unzip
+EXTRACT_ARGS= -q
+FILESDIR= ${.CURDIR}/files.usa
+PATCHDIR= ${.CURDIR}/patches.usa
+PKGDIR= ${.CURDIR}/pkg.usa
+
+post-extract:
+ cd ${WRKDIR}; $(EXTRACT_CMD) $(EXTRACT_ARGS) -aa $(DISTNAME)i
+ cd ${WRKDIR}; $(EXTRACT_CMD) $(EXTRACT_ARGS) -aa rsaref
+ cd ${WRKDIR}; rm -f *.zip
+
+pre-build:
+ cd ${WRKDIR}/rsaref/install/unix; ${GMAKE}
+.else
+DISTNAME= pgp262is
+PKGNAME= pgp-2.6.2i
+MASTER_SITES= ftp://sable.ox.ac.uk/pub/crypto/pgp/unix/ \
+ ftp://ftp.kiae.su/unix/crypto/pgp/
+FILESDIR= ${.CURDIR}/files.non_usa
+PATCHDIR= ${.CURDIR}/patches.non_usa
+PKGDIR= ${.CURDIR}/pkg.non_usa
+
+post-extract:
+ cd ${WRKDIR}; tar xf pgp262ii.tar; rm -f *.tar
+.endif
+.endif
+
+.include <bsd.port.mk>