From 76a1a7a9d03f5f66e47f882c4183e5c0091f9799 Mon Sep 17 00:00:00 2001 From: espie Date: Fri, 2 Apr 1999 13:31:03 +0000 Subject: [PATCH] - remove marc shennanigan's now that PATCH_LIST works, this helps having ports read-only, - help pgp find its own doc files - had defined(USA_RESIDENT) where needed so that we no longer get confusing syntax errors if undefined. --- security/pgp/Makefile | 28 ++++++++----------- security/pgp/patches/patch-doc | 15 ++++++++++ security/pgp/{files => patches}/patch-rsaref2 | 0 3 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 security/pgp/patches/patch-doc rename security/pgp/{files => patches}/patch-rsaref2 (100%) diff --git a/security/pgp/Makefile b/security/pgp/Makefile index 6b94b31243d..a478472c644 100644 --- a/security/pgp/Makefile +++ b/security/pgp/Makefile @@ -3,8 +3,10 @@ # Date created: 19 Mar 1998 # Whom: marc@OpenBSD.ORG # -# $OpenBSD: Makefile,v 1.6 1998/12/16 20:29:54 marc Exp $ +# $OpenBSD: Makefile,v 1.7 1999/04/02 13:31:03 espie Exp $ +# for patch-list +NEED_VERSION=1.52 DISTNAME= pgp263is PKGNAME= pgp-2.6.3 CATEGORIES= security @@ -58,7 +60,8 @@ post-extract: # common C flags # -CFLAGS= -O2 -DUNIX -DPORTABLE -DMERIT -DIDEA32 -DMAX_NAMELEN=255 +CFLAGS= -O2 -DUNIX -DPORTABLE -DMERIT -DIDEA32 -DMAX_NAMELEN=255 \ +-DPGP_DOC_DIR=\"${PGP_DOC_DIR}\" # RSAREF parameters # @@ -75,18 +78,10 @@ RSAOBJS= rsaglue1.o # RSAREF2 doesn't work as is when sizeof( long) != 4 -- fix it # -pre-patch: +PATCH_LIST=patch-doc .if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES - @${MKDIR} ${PATCHDIR} - @${CP} ${FILESDIR}/patch-rsaref2 ${PATCHDIR} -.endif - -# We don't need the rsaref patch any more -# -post-patch: -.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES - @${RM} ${PATCHDIR}/patch-rsaref2 - @${RMDIR} ${PATCHDIR} +PATCH_LIST+=patch-rsaref2 +.else .endif # Before the build figure out if we are on a big endian machine or not @@ -101,6 +96,7 @@ pre-build: ${CP} /dev/null ${WRKDIR}/.endian; \ fi +PGP_DOC_DIR=${PREFIX}/share/doc/pgp # Build rsaref (if USA) then pgp # do-build: @@ -133,10 +129,10 @@ do-install: .for libfile in ${LIBFILES} @${INSTALL_DATA} ${WRKDIR}/${libfile} ${PREFIX}/lib/pgp .endfor - @${MKDIR} -p ${PREFIX}/share/doc/pgp - @${INSTALL_DATA} ${WRKDIR}/setup.doc ${PREFIX}/share/doc/pgp + @${MKDIR} -p ${PGP_DOC_DIR} + @${INSTALL_DATA} ${WRKDIR}/setup.doc ${PGP_DOC_DIR} .for docfile in ${DOCFILES} - @${INSTALL_DATA} ${WRKDIR}/doc/${docfile} ${PREFIX}/share/doc/pgp + @${INSTALL_DATA} ${WRKDIR}/doc/${docfile} ${PGP_DOC_DIR} .endfor .include diff --git a/security/pgp/patches/patch-doc b/security/pgp/patches/patch-doc new file mode 100644 index 00000000000..ab436e2ce40 --- /dev/null +++ b/security/pgp/patches/patch-doc @@ -0,0 +1,15 @@ +--- fileio.c.orig Fri Apr 2 14:46:36 1999 ++++ fileio.c Fri Apr 2 14:47:58 1999 +@@ -1636,7 +1636,11 @@ + PGP_SYSTEM_DIR, "SYS$LOGIN:", "SYS$LOGIN:[pgp]", + "SYS$LOGIN:[pgp26]", "SYS$LOGIN:[pgp263]", "[-]", + #elif defined(UNIX) +- "$PGPPATH", "", "pgp", "pgp26", "pgp263", PGP_SYSTEM_DIR, ++ "$PGPPATH", ++#ifdef PGP_DOC_DIR ++ PGP_DOC_DIR, ++#endif ++ "", "pgp", "pgp26", "pgp263", PGP_SYSTEM_DIR, + "$HOME/.pgp", "$HOME", "$HOME/pgp", "$HOME/pgp26", "..", + #elif defined(AMIGA) + "$PGPPATH", "", "pgp", "pgp26", ":pgp", ":pgp26", ":pgp263", diff --git a/security/pgp/files/patch-rsaref2 b/security/pgp/patches/patch-rsaref2 similarity index 100% rename from security/pgp/files/patch-rsaref2 rename to security/pgp/patches/patch-rsaref2