1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/security/pgp5/Makefile
Satoshi Asami c98cfd116d Compress a bunch of manpages. Remove unnecessary @ directives from
PLISTs.

Note: I know that this is going to break some symlinks and/or .so
includes, I will back some of these out as I run into these during
package building.
1996-11-18 14:17:24 +00:00

85 lines
2.4 KiB
Makefile

# New ports collection makefile for: pgp
# Version required: MIT 2.6.2 / International 2.6.3ia
# International PGP homepage is http://www.ifi.uio.no/pgp/
#
# Date created: 8 Jul 1995
# Whom: ache
#
# $Id: Makefile,v 1.17 1996/11/17 07:58:03 obrien Exp $
#
# Pick an initial default, else it doesn't get set in the INDEX.
DISTNAME= pgp262s
CATEGORIES= security
MAINTAINER= ache@FreeBSD.ORG
# Need to define USA_RESIDENT to YES or NO
IS_INTERACTIVE= YES
RESTRICTED= "Crypto"
MAKEFILE= makefile
ALL_TARGET= freebsd
PGPLIB= ${PREFIX}/lib/pgp
MAN1= pgp.1
do-install:
cd ${WRKSRC}; install -c -o bin -g bin -m 555 pgp ${PREFIX}/bin
cd ${WRKSRC}/../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 ${WRKSRC}/..; \
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
pre-fetch:
@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
WRKSRC= ${WRKDIR}/src
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
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
DISTNAME= pgp263is
PKGNAME= pgp-2.6.3ia
MASTER_SITES= ftp://ftp.ifi.uio.no/pub/pgp/src/ \
ftp://ftp.kiae.su/unix/crypto/pgp/
WRKSRC= ${WRKDIR}/src
FILESDIR= ${.CURDIR}/files.non_usa
PATCHDIR= ${.CURDIR}/patches.non_usa
post-extract:
cd ${WRKDIR}; $(EXTRACT_CMD) -xf pgp263ii.tar; \
rm -f pgp263ii.tar
.endif
.endif
.include <bsd.port.mk>