From d2ba87d9fe50a17d3d66e3a59e9ba4fa5da78f1b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 2 Oct 1998 22:02:25 +0000 Subject: Clean up: - make this work on all arches (use C where no equivalent asm is available). Since the arch specifics are determined by `uname', set ONLY_FOR_ARCHS to the full list of current architectures. - don't use various methods of editing (patch, sed) where pulling values from the environment and using CONFIGURE_ENV/MAKE_ENV will suffice. - use %D to get the value of $PREFIX in the PLIST; the PLIST doesn't need to be sed edited to get this as part of an @exec! - use pmake's += construct to add rsaref-specific stuff, instead of adding "extra" patches. Now works on arm32, but probably not on alpha and sparc64 (tests fail on alpha; likely type-sizing problems, and still looking at that). --- security/ssleay/Makefile | 35 +++++++++++------------------------ security/ssleay/files/NetBSD.sh | 27 ++++++++++++++++++--------- security/ssleay/files/patch-rsaref-1 | 12 ------------ security/ssleay/files/patch-rsaref-2 | 18 ------------------ security/ssleay/patches/patch-ab | 20 ++++++++++++++++---- security/ssleay/patches/patch-ac | 29 +++++++++++++++++++++-------- security/ssleay/pkg/PLIST | 4 ++-- 7 files changed, 68 insertions(+), 77 deletions(-) delete mode 100644 security/ssleay/files/patch-rsaref-1 delete mode 100644 security/ssleay/files/patch-rsaref-2 (limited to 'security/ssleay') diff --git a/security/ssleay/Makefile b/security/ssleay/Makefile index e96c03a3028..5f4ce89a298 100644 --- a/security/ssleay/Makefile +++ b/security/ssleay/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 1998/10/02 03:22:57 cjs Exp $ +# $NetBSD: Makefile,v 1.10 1998/10/02 22:02:25 tv Exp $ # FreeBSD: Makefile,v 1.20 1998/08/27 16:38:02 markm Exp # # Note that the config file goes in ${PREFIX}/lib; this cannot easily @@ -13,7 +13,8 @@ MASTER_SITES= ftp://psych.psy.uq.oz.au/pub/Crypto/SSL/ MAINTAINER= explorer@netbsd.org HOMEPAGE= http://www.psy.uq.oz.au/~ftp/Crypto/ -ONLY_FOR_ARCHS= i386 sparc m68k alpha +ONLY_FOR_ARCHS= alpha arm32 i386 m68k mips mipse[bl] ns32k powerpc \ + sparc sparc64 vax USE_PERL5= yes @@ -23,16 +24,17 @@ MIRROR_DISTFILE= no HAS_CONFIGURE= yes CONFIGURE_SCRIPT= util/NetBSD.sh CONFIGURE_ARGS= ${MACHINE_ARCH} +CONFIGURE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} -PLIST_SRC= ${WRKSRC}/PLIST -.if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES -PLIST_SRC+= ${PKGDIR}/PLIST.rsaref2 -.endif +PLIST_SRC= ${PKGDIR}/PLIST .include "../../mk/bsd.prefs.mk" .if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES DEPENDS= rsaref-2.0:../../security/rsaref +CONFIGURE_ENV+= USE_RSAREF_DEF=-DRSAref +MAKE_ENV+= USE_RSAREF=YES +PLIST_SRC+= ${PKGDIR}/PLIST.rsaref2 .endif fetch-depends: @@ -43,31 +45,16 @@ fetch-depends: @${ECHO} license MUST set this variable to YES. Users outside @${ECHO} the USA MUST set this variable to NO. RSA licensees may @${ECHO} choose -- NO is faster. - @${ECHO} - @${ECHO} You may also want to set DONT_USE_IDEA to YES if this program - @${ECHO} will be used for a commercial purpose. There are other - @${ECHO} configure options\; look at the pkg Makefile for more info. @${FALSE} .endif post-extract: - ${SED} -e 's|@@@PREFIX@@@|${PREFIX}|g' < ${FILESDIR}/NetBSD.sh \ - > ${WRKSRC}/util/NetBSD.sh - chmod 755 ${WRKSRC}/util/NetBSD.sh - ${SED} -e 's|@@@PREFIX@@@|${PREFIX}|g' < ${PKGDIR}/PLIST \ - > ${WRKSRC}/PLIST - -post-patch: - @${CP} ${WRKSRC}/Configure ${WRKSRC}/foo - @${SED} -e 's@XXXPREFIXXXX@${PREFIX}@' <${WRKSRC}/foo> ${WRKSRC}/Configure - @${RM} -f ${WRKSRC}/foo + @${CP} -f ${FILESDIR}/NetBSD.sh ${WRKSRC}/util/ + @chmod +x ${WRKSRC}/util/NetBSD.sh .if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES post-configure: - patch -d ${WRKSRC}