summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-02-02 23:43:42 +0000
committerjlam <jlam@pkgsrc.org>2005-02-02 23:43:42 +0000
commitfe2f1774b57ea181394e8c9bc73caf0c8e91e5d1 (patch)
tree4cea3bc6fa383e1d02147eae3c3da72885c65daf /security
parent0cead0578e5154e75ec80ee7196473d3f6c6bd2d (diff)
downloadpkgsrc-fe2f1774b57ea181394e8c9bc73caf0c8e91e5d1.tar.gz
Modify openssl/Makefile so that it's easier to test the -STABLE and
-SNAP OpenSSL snapshots.
Diffstat (limited to 'security')
-rw-r--r--security/openssl/Makefile28
1 files changed, 22 insertions, 6 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index 0341c6fdd87..143bf2a2a4f 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -1,16 +1,32 @@
-# $NetBSD: Makefile,v 1.100 2005/01/13 18:34:47 jlam Exp $
+# $NetBSD: Makefile,v 1.101 2005/02/02 23:43:42 jlam Exp $
-DISTNAME= openssl-0.9.7e
+OPENSSL_SNAPSHOT?= # empty
+OPENSSL_STABLE?= # empty
+OPENSSL_VERS?= 0.9.7e
+
+.if empty(OPENSSL_SNAPSHOT)
+DISTNAME= openssl-${OPENSSL_VERS}
PKGREVISION= 1
-SVR4_PKGNAME= ossl
-CATEGORIES= security
MASTER_SITES= http://mirrors.isc.org/pub/openssl/source/ \
http://www.mirrors.wiretapped.net/security/cryptography/libraries/tls/openssl/ \
http://sunsite.rediris.es/pub/mirror/OpenSSL/ \
http://ftp.wayne.edu/pub/openssl/source/ \
http://www.binarycode.org/openssl/source/ \
ftp://ftp.openssl.org/source/
+.else
+. if !empty(OPENSSL_STABLE:M[yY][eE][sS])
+DISTNAME= openssl-${OPENSSL_VERS:C/[a-z]$//}-stable-SNAP-${OPENSSL_SNAPSHOT}
+PKGNAME= openssl-${OPENSSL_VERS}beta${OPENSSL_SNAPSHOT}
+MASTER_SITES= ftp://ftp.openssl.org/snapshot/
+. else
+DISTNAME= openssl-SNAP-${OPENSSL_SNAPSHOT}
+PKGNAME= openssl-${OPENSSL_VERS}alpha${OPENSSL_SNAPSHOT}
+MASTER_SITES= ftp://ftp.openssl.org/snapshot/
+. endif
+.endif
+SVR4_PKGNAME= ossl
+CATEGORIES= security
MAINTAINER= jlam@NetBSD.org
HOMEPAGE= http://www.openssl.org/
COMMENT= Secure Socket Layer and cryptographic library
@@ -65,8 +81,8 @@ PLIST_SHLIB= ${PKGDIR}/PLIST.shlib
.endif
PLIST_SRC= ${PLIST_SHLIB}
PLIST_SRC+= ${PKGDIR}/PLIST.common
-PLIST_SUBST+= SHLIB_VERSION=${DISTNAME:S/openssl-//:C/[^0-9]*$//}
-PLIST_SUBST+= SHLIB_MAJOR=${DISTNAME:S/openssl-//:C/\..*$//}
+PLIST_SUBST+= SHLIB_VERSION=${OPENSSL_VERS:C/[^0-9]*$//}
+PLIST_SUBST+= SHLIB_MAJOR=${OPENSSL_VERS:C/\..*$//}
.if ${OPSYS} == "NetBSD"
PKG_SYSCONFDIR.openssl?= /etc/openssl