2000-07-02 02:21:18 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2000/07/02 06:21:18 fgsch Exp $
|
1999-02-05 00:05:19 -05:00
|
|
|
|
|
|
|
DISTNAME= pgp50i-unix-src
|
|
|
|
PKGNAME= pgp-5.0i
|
|
|
|
CATEGORIES= security
|
2000-07-02 02:21:18 -04:00
|
|
|
NEED_VERSION= 1.311
|
1999-02-05 00:05:19 -05:00
|
|
|
MASTER_SITES= ftp://ftp.no.pgpi.com/pub/pgp/5.0/unix/ \
|
|
|
|
ftp://ftp.at.pgpi.com/pub/pgpi/5.0/unix/ \
|
|
|
|
ftp://ftp.cz.pgpi.com/pub/pgpi/5.0/unix/ \
|
|
|
|
ftp://ftp.dk.pgpi.com/pub/pgpi/5.0/unix/ \
|
|
|
|
ftp://ftp.fi.pgpi.com/pub/pgpi/5.0/unix/ \
|
|
|
|
ftp://ftp.de.pgpi.com/pub/pgpi/5.0/unix/ \
|
|
|
|
ftp://ftp.jp.pgpi.com/pub/pgpi/5.0/unix/ \
|
|
|
|
ftp://ftp.kr.pgpi.com/pub/security/pgp/5.0/unix/ \
|
|
|
|
ftp://ftp.nl.pgpi.com/pub/pgp/5.0/unix/ \
|
|
|
|
ftp://ftp.pl.pgpi.com/pub/pgpi/5.0/unix/ \
|
|
|
|
ftp://ftp.ru.pgpi.com/pub/pgp/5.0/unix/ \
|
|
|
|
ftp://ftp.es.pgpi.com/pub/pgp/5.0/unix/ \
|
|
|
|
ftp://ftp.se.pgpi.com/pub/pgp/5.0/unix/ \
|
|
|
|
ftp://ftp.ch.pgpi.com/pub/pgp/5.0/unix/
|
1999-11-23 22:33:55 -05:00
|
|
|
|
|
|
|
MAINTAINER= fgsch@openbsd.org
|
|
|
|
|
2000-04-18 05:48:00 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= "no commercial use"
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= "no commercial use"
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2000-04-22 08:12:07 -04:00
|
|
|
FLAVORS= usa intl
|
|
|
|
|
2000-05-27 13:23:57 -04:00
|
|
|
# No default flavor, error.
|
|
|
|
FLAVOR?=
|
|
|
|
.if empty(FLAVOR)
|
2000-06-29 18:25:47 -04:00
|
|
|
.BEGIN:
|
1999-12-08 22:50:57 -05:00
|
|
|
@echo ""
|
2000-05-27 13:23:57 -04:00
|
|
|
@echo "The variable USA_RESIDENT must be set to either Yes or No"
|
1999-12-08 22:50:57 -05:00
|
|
|
@echo "in order to build this package. USA residents that are"
|
|
|
|
@echo "not licensees of the RSA algorithm MUST set this variable"
|
2000-05-27 13:23:57 -04:00
|
|
|
@echo "to Yes. Users outside the USA MUST set this variable to"
|
|
|
|
@echo "No. Licensees may choose -- No is faster."
|
1999-12-08 22:50:57 -05:00
|
|
|
@echo ""
|
|
|
|
@echo "RSAREF2 will be automatically obtained and used to generate"
|
2000-05-27 13:23:57 -04:00
|
|
|
@echo "this program when given the command \"make USA_RESIDENT=Yes\""
|
|
|
|
@echo ""
|
|
|
|
@echo "The new port flavor system also allows you to use "
|
|
|
|
@echo "FLAVOR=usa or FLAVOR=intl"
|
1999-12-08 22:50:57 -05:00
|
|
|
@false
|
1999-02-05 00:05:19 -05:00
|
|
|
.endif
|
2000-05-27 13:23:57 -04:00
|
|
|
|
2000-06-10 21:50:22 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2000-05-27 13:23:57 -04:00
|
|
|
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "usa"
|
|
|
|
LIB_DEPENDS= rsaref.2::security/rsaref
|
|
|
|
CONFIGURE_ARGS= --with-rsaref
|
1999-02-05 00:05:19 -05:00
|
|
|
.endif
|
|
|
|
|
2000-05-27 13:23:57 -04:00
|
|
|
WRKDIST= ${WRKDIR}/pgp50i/src
|
|
|
|
|
1999-02-05 00:05:19 -05:00
|
|
|
post-patch:
|
1999-12-08 22:50:57 -05:00
|
|
|
@mv ${WRKSRC}/man/pgp.1 ${WRKSRC}/man/pgp5.1
|
1999-02-05 00:05:19 -05:00
|
|
|
|
2000-05-27 13:23:57 -04:00
|
|
|
post-configure:
|
|
|
|
@find ${WRKSRC} -name Makefile|xargs perl -pi.bak -e 's,MFLAGS,AM_MAKEFLAGS,'
|
|
|
|
|
2000-07-02 02:21:18 -04:00
|
|
|
post-install:
|
|
|
|
strip ${PREFIX}/bin/pgp5
|
|
|
|
strip ${PREFIX}/bin/pgpk
|
1999-12-21 13:52:57 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pgp5
|
1999-12-08 22:50:57 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/language50.txt ${PREFIX}/lib/pgp5
|
1999-02-05 00:05:19 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|