Support to build it on Solaris.

It would be easier to make that change if we support patches for one OPSYS
but someone removed that from out tree.
This commit is contained in:
veego 2000-05-10 12:28:37 +00:00
parent 0b8584321f
commit 35e049414d
12 changed files with 45 additions and 25 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2000/04/21 02:15:37 explorer Exp $
# $NetBSD: Makefile,v 1.14 2000/05/10 12:28:37 veego Exp $
#
DISTNAME= openssl-0.9.5a
@ -18,26 +18,30 @@ MIRROR_DISTFILE= no
ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
NetBSD-*-m68k NetBSD-*-mips NetBSD-*-mipseb \
NetBSD-*-mipsel NetBSD-*-ns32k NetBSD-*-powerpc \
NetBSD-*-sparc NetBSD-*-vax
NetBSD-*-sparc NetBSD-*-vax \
SunOS-*
CONFIGURE_ARGS= -fPIC -DPIC --openssldir=${PREFIX} --prefix=${PREFIX} \
${LDFLAGS}
#CONFIGURE_ENV= PREFIX=${PREFIX}
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC} MAKELIB=${FILESDIR}/makelib
# Note, this list gets bigger if using the RSAref library
PLIST_SRC= pkg/PLIST
.if !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so)
IGNORE= requires shared object support
.endif
.include "../../mk/bsd.prefs.mk"
PATCHDIR= ${WRKDIR}/.patches
.if ${OPSYS} == "NetBSD"
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC} MAKELIB=${FILESDIR}/makelib
.endif
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
.if ${OPSYS} == "NetBSD" && !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so)
IGNORE= requires shared object support
.endif
.if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES
DEPENDS= rsaref-2.0p3:../../security/rsaref
CONFIGURE_ARGS+= rsaref
PLIST_SRC+= pkg/PLIST.rsaref
PLIST_RSAREF= ${PKGDIR}/PLIST.rsaref
.endif
fetch-depends:
@ -51,6 +55,15 @@ fetch-depends:
@${FALSE}
.endif
pre-patch:
${MKDIR} ${WRKDIR}/.patches
@${CP} ${.CURDIR}/patches/patch-* ${WRKDIR}/.patches
.if ${OPSYS} == "NetBSD"
for FILE in ${.CURDIR}/patches/patch.netbsd-*; do \
@${CP} $$FILE ${PATCHDIR}/patches-$${FILE##-}; \
done
.endif
# The Perl stuff doesn't work yet (nor did it work properly in SSLeay...)
do-configure:
@cd ${WRKSRC} && ${LOCALBASE}/bin/perl util/perlpath.pl ${LOCALBASE}/bin
@ -81,9 +94,10 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/der_chop ${PREFIX}/bin/
cd ${WRKSRC}/apps && ${INSTALL_SCRIPT} CA.sh CA.pl ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/apps/openssl.cnf ${PREFIX}/etc/openssl.cnf.example
cd ${WRKSRC} && \
${INSTALL_DATA} libcrypto.so.?.0 libssl.so.?.0 ${PREFIX}/lib/; \
${INSTALL_DATA} libcrypto.a libssl.a ${PREFIX}/lib/
cd ${WRKSRC} && ${INSTALL_DATA} libcrypto.a libssl.a ${PREFIX}/lib/
.if ${OPSYS} == "NetBSD"
cd ${WRKSRC} && ${INSTALL_DATA} libcrypto.so.?.0 libssl.so.?.0 ${PREFIX}/lib/
.endif
.if exists(/usr/bin/ranlib)
/usr/bin/ranlib ${PREFIX}/lib/libcrypto.a
/usr/bin/ranlib ${PREFIX}/lib/libssl.a
@ -119,11 +133,16 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc/$$file \
${PREFIX}/share/doc/openssl/; \
done
${INSTALL_DATA_DIR} ${PREFIX}/certs ${PREFIX}/private
${INSTALL_DATA_DIR} ${PREFIX}/certs
${INSTALL_DATA_DIR} ${PREFIX}/private
@if [ ! -f ${PREFIX}/etc/openssl.cnf ]; then \
${CP} -p ${PREFIX}/etc/openssl.cnf.example ${PREFIX}/etc/openssl.cnf; \
fi
post-install:
${CAT} ${PKGDIR}/PLIST.common ${PKGDIR}/PLIST.${LOWER_OPSYS} \
${PLIST_RSAREF} > ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"
test: all

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.2 1999/11/25 18:51:47 erh Exp $
$NetBSD: patch.netbsd-aa,v 1.1 2000/05/10 12:28:42 veego Exp $
--- config.orig Mon Aug 9 05:16:51 1999
+++ config Wed Oct 20 17:12:32 1999

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ac,v 1.2 1999/11/25 18:51:47 erh Exp $
$NetBSD: patch.netbsd-ac,v 1.1 2000/05/10 12:28:43 veego Exp $
--- crypto/bn/Makefile.ssl.orig Sun Jul 25 17:25:11 1999
+++ crypto/bn/Makefile.ssl Wed Oct 20 17:12:41 1999

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ad,v 1.4 2000/04/22 05:07:03 fredb Exp $
$NetBSD: patch.netbsd-ad,v 1.1 2000/05/10 12:28:43 veego Exp $
--- Makefile.org.orig Thu Mar 16 13:46:20 2000
+++ Makefile.org Fri Apr 21 23:43:06 2000

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ae,v 1.3 1999/11/25 18:51:47 erh Exp $
$NetBSD: patch.netbsd-ae,v 1.1 2000/05/10 12:28:44 veego Exp $
--- crypto/Makefile.ssl.orig Mon Aug 2 16:44:47 1999
+++ crypto/Makefile.ssl Wed Oct 20 17:31:16 1999

View file

@ -1,4 +1,4 @@
$NetBSD: patch-af,v 1.2 1999/11/25 18:51:47 erh Exp $
$NetBSD: patch.netbsd-af,v 1.1 2000/05/10 12:28:44 veego Exp $
--- ssl/Makefile.ssl.orig Fri May 21 06:16:45 1999
+++ ssl/Makefile.ssl Wed Oct 20 17:31:33 1999

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ag,v 1.2 1999/11/25 18:51:47 erh Exp $
$NetBSD: patch.netbsd-ag,v 1.1 2000/05/10 12:28:44 veego Exp $
--- apps/Makefile.ssl.orig Mon Jun 21 05:04:37 1999
+++ apps/Makefile.ssl Thu Oct 21 00:09:56 1999

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ah,v 1.2 1999/11/25 18:51:47 erh Exp $
$NetBSD: patch.netbsd-ah,v 1.1 2000/05/10 12:28:44 veego Exp $
--- test/Makefile.ssl.orig Thu Aug 5 06:50:18 1999
+++ test/Makefile.ssl Thu Oct 21 00:09:58 1999

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.5 2000/04/24 13:54:41 tron Exp $
@comment $NetBSD: PLIST.common,v 1.1 2000/05/10 12:28:45 veego Exp $
bin/CA.pl
bin/CA.sh
bin/asn1parse
@ -137,9 +137,7 @@ include/openssl/x509.h
include/openssl/x509_vfy.h
include/openssl/x509v3.h
lib/libcrypto.a
lib/libcrypto.so.1.0
lib/libssl.a
lib/libssl.so.1.0
share/doc/openssl/README
share/doc/openssl/apps/CA.pl.pod
share/doc/openssl/apps/crl.pod

View file

@ -0,0 +1,3 @@
@comment $NetBSD: PLIST.netbsd,v 1.1 2000/05/10 12:28:45 veego Exp $
lib/libcrypto.so.1.0
lib/libssl.so.1.0

View file