2007-09-15 19:29:57 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2007/09/15 23:30:00 merdely Exp $
|
2001-05-05 23:45:31 -04:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT= Pretty Good Privacy 2.6.3ia
|
1999-06-02 12:27:26 -04:00
|
|
|
|
2000-09-07 01:44:32 -04:00
|
|
|
DISTNAME= pgp263is
|
1998-03-19 23:05:10 -05:00
|
|
|
PKGNAME= pgp-2.6.3
|
|
|
|
CATEGORIES= security
|
2002-10-28 12:35:01 -05:00
|
|
|
|
2003-01-30 17:46:26 -05:00
|
|
|
MASTER_SITES= http://www.netsw.org/crypto/systems/pgp/ \
|
|
|
|
http://ftp.unicamp.br/pub/security/tools/ \
|
|
|
|
http://incal.net/ftp/pub/privacy/
|
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= no commercial use
|
2000-04-18 05:48:00 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2007-09-15 19:29:57 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= no commercial use
|
2000-04-18 05:48:00 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-27 08:28:33 -05:00
|
|
|
WANTLIB= c
|
1999-11-23 22:23:05 -05:00
|
|
|
|
1999-12-08 21:50:41 -05:00
|
|
|
PGP_DOC_DIR= ${PREFIX}/share/doc/pgp
|
1999-11-23 22:23:05 -05:00
|
|
|
|
2000-09-07 01:44:32 -04:00
|
|
|
WRKDIST= ${WRKDIR}/src
|
|
|
|
|
1999-11-23 22:23:05 -05:00
|
|
|
# library and doc files to install
|
|
|
|
LIBFILES= config.txt de.hlp en.hlp es.hlp fr.hlp keys.asc \
|
|
|
|
language.txt pgp.hlp
|
|
|
|
|
2000-09-07 01:44:32 -04:00
|
|
|
DOCS= appnote.doc blurb.txt changes.doc faq.txt keyserv.doc \
|
1999-11-23 22:23:05 -05:00
|
|
|
mitlicen.txt pgformat.doc pgp262i.dif pgp263i.dif \
|
|
|
|
pgp_vms.hlp pgpdoc1.txt pgpdoc2.txt politic.doc przon26i.asc
|
|
|
|
|
1998-03-19 23:05:10 -05:00
|
|
|
# 2nd level extract required
|
|
|
|
post-extract:
|
1999-12-08 21:50:41 -05:00
|
|
|
@if ! (cd ${WRKDIR} && tar -xf pgp263ii.tar); then \
|
1998-03-19 23:05:10 -05:00
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Before the build figure out if we are on a big endian machine or not
|
|
|
|
pre-build:
|
1999-12-08 21:50:41 -05:00
|
|
|
@echo "#include <machine/endian.h>" > ${WRKDIR}/.endian.c
|
|
|
|
@echo "BYTE_ORDER" >> ${WRKDIR}/.endian.c
|
1998-03-22 20:40:06 -05:00
|
|
|
@${CC} -E ${WRKDIR}/.endian.c > ${WRKDIR}/.endian.out
|
1999-12-08 21:50:41 -05:00
|
|
|
@if { grep -q 4321 ${WRKDIR}/.endian.out; } then \
|
|
|
|
echo -DHIGHFIRST > ${WRKDIR}/.endian; \
|
1998-03-19 23:05:10 -05:00
|
|
|
else \
|
1999-12-08 21:50:41 -05:00
|
|
|
cp /dev/null ${WRKDIR}/.endian; \
|
1998-03-19 23:05:10 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
do-build:
|
2000-09-07 01:44:32 -04:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} -f makefile all \
|
|
|
|
CFLAGS="${CFLAGS} -DUNIX -DPORTABLE -DMERIT -DIDEA32 \
|
|
|
|
-DMAX_NAMELEN=255 -DPGP_DOC_DIR=\\\"${PGP_DOC_DIR}\\\" \
|
|
|
|
`cat ${WRKDIR}/.endian`"
|
1998-03-19 23:05:10 -05:00
|
|
|
|
2002-10-28 12:35:01 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1998-03-19 23:05:10 -05:00
|
|
|
do-install:
|
2000-09-07 01:44:32 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pgp
|
|
|
|
${INSTALL_DATA_DIR} ${PGP_DOC_DIR}
|
1999-12-08 21:50:41 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pgp ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/doc/pgp.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/setup.doc ${PGP_DOC_DIR}
|
2000-09-07 01:44:32 -04:00
|
|
|
cd ${WRKDIR}; ${INSTALL_DATA} ${LIBFILES} ${PREFIX}/lib/pgp
|
|
|
|
cd ${WRKDIR}/doc; ${INSTALL_DATA} ${DOCS} ${PGP_DOC_DIR}
|
1998-03-19 23:05:10 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|