1995-07-07 23:50:10 +00:00
|
|
|
# New ports collection makefile for: pgp
|
1995-09-25 19:21:31 +00:00
|
|
|
# Version required: MIT 2.6.2 / International 2.6.3i dev
|
1995-09-15 21:10:18 +00:00
|
|
|
# PGP 2.6.3i homepage is http://www.ifi.uio.no/~staalesc/PGP/home.html
|
1995-07-07 23:50:10 +00:00
|
|
|
# Date created: 8 Jul 1995
|
|
|
|
# Whom: ache
|
|
|
|
#
|
1995-09-24 19:12:06 +00:00
|
|
|
# $Id: Makefile,v 1.6 1995/09/23 17:26:19 ache Exp $
|
1995-07-07 23:50:10 +00:00
|
|
|
#
|
|
|
|
|
1995-07-13 01:15:52 +00:00
|
|
|
CATEGORIES+= security
|
|
|
|
|
1995-07-07 23:50:10 +00:00
|
|
|
MAINTAINER= ache@FreeBSD.ORG
|
|
|
|
WRKSRC= ${WRKDIR}/src
|
1995-07-07 23:57:25 +00:00
|
|
|
NO_PACKAGE= YES
|
1995-09-15 21:10:18 +00:00
|
|
|
MAKEFILE= makefile
|
1995-07-07 23:50:10 +00:00
|
|
|
ALL_TARGET= freebsd
|
|
|
|
PGPLIB= ${PREFIX}/lib/pgp
|
1995-09-23 17:26:19 +00:00
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
1995-07-07 23:50:10 +00:00
|
|
|
# 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
|
1995-09-24 19:12:06 +00:00
|
|
|
fetch-depends:
|
1995-07-07 23:50:10 +00: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
|
|
|
|
MASTER_SITES= ftp://sable.ox.ac.uk/pub/crypto/pgp/unix/
|
|
|
|
EXTRACT_SUFX= .zip
|
1995-09-23 17:26:19 +00:00
|
|
|
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
|
1995-07-07 23:50:10 +00: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}; $(EXTRACT_CMD) $(EXTRACT_ARGS) -aa rsaref
|
|
|
|
cd ${WRKDIR}; rm -f *.zip
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
cd ${WRKDIR}/rsaref/install/unix; ${GMAKE}
|
|
|
|
.else
|
1995-09-15 21:10:18 +00:00
|
|
|
DISTNAME= pgp263i-dev
|
|
|
|
PKGNAME= pgp-2.6.3i
|
|
|
|
MASTER_SITES= ftp://ftp.ifi.uio.no/pub/pgp/incoming/ \
|
1995-07-07 23:50:10 +00:00
|
|
|
ftp://ftp.kiae.su/unix/crypto/pgp/
|
1995-09-15 21:10:18 +00:00
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
EXTRACT_CMD= unzip
|
|
|
|
EXTRACT_ARGS= -qa
|
1995-07-07 23:50:10 +00:00
|
|
|
FILESDIR= ${.CURDIR}/files.non_usa
|
|
|
|
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|