summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjmc <jmc>2003-08-04 17:28:23 +0000
committerjmc <jmc>2003-08-04 17:28:23 +0000
commit1025e948e927f3a3e3aa126d29a3b7350e63d637 (patch)
tree77e4ccc720c3db12cc860fcbb52d7c16cc9f5162 /security
parent4e7981f6f29c770c422d7af515d7436fba82e3eb (diff)
downloadpkgsrc-1025e948e927f3a3e3aa126d29a3b7350e63d637.tar.gz
If 0.9.7a or 0.9.7b are required and not otherwise installed on the system
set PKG_SKIP_REASON and move on. The package only supports to 0.9.6g currently otherwise.
Diffstat (limited to 'security')
-rw-r--r--security/openssl/buildlink2.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/security/openssl/buildlink2.mk b/security/openssl/buildlink2.mk
index c5a377dc4d3..5baa4d7c805 100644
--- a/security/openssl/buildlink2.mk
+++ b/security/openssl/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.5 2003/07/29 19:25:50 grant Exp $
+# $NetBSD: buildlink2.mk,v 1.6 2003/08/04 17:28:23 jmc Exp $
#
# Optionally define USE_OPENSSL_VERSION to the mininum OpenSSL version
# number in <openssl/opensslv.h>, i.e. 0x0090600fL, etc.
@@ -55,18 +55,32 @@ BUILDLINK_DEPENDS.openssl= openssl>=0.9.6g
_VALID_SSL_VERSIONS+= ${OPENSSL_VERSION_096G}
. endif
+# For 0.9.7a or 0.9.7b it must be installed as the package currently only
+# support through 0.9.6g
. if ${USE_OPENSSL_VERSION} == ${OPENSSL_VERSION_097A} # OpenSSL 0.9.7a
+. if (${_OPENSSL_VERSION} != ${OPENSSL_VERSION_097A}) && (${_OPENSSL_VERSION} != OPENSSL_VERSION_097B})
+PKG_SKIP_REASON= "OpenSSL 0.9.7a or higher not installed."
+. else
_VALID_SSL_VERSIONS= ${OPENSSL_VERSION_097A}
BUILDLINK_DEPENDS.openssl= openssl>=0.9.7a
+. endif
. else
+. if (${_OPENSSL_VERSION} == ${OPENSSL_VERSION_097A}) || (${_OPENSSL_VERSION} == OPENSSL_VERSION_097B})
_VALID_SSL_VERSIONS+= ${OPENSSL_VERSION_097A}
+. endif
. endif
. if ${USE_OPENSSL_VERSION} == ${OPENSSL_VERSION_097B} # OpenSSL 0.9.7b
+. if ${_OPENSSL_VERSION} != ${OPENSSL_VERSION_097B}
+PKG_SKIP_REASON= "OpenSSL 0.9.7b or higher not installed."
+. else
_VALID_SSL_VERSIONS= ${OPENSSL_VERSION_097B}
BUILDLINK_DEPENDS.openssl= openssl>=0.9.7b
+. endif
. else
+. if ${_OPENSSL_VERSION} == ${OPENSSL_VERSION_097B}
_VALID_SSL_VERSIONS+= ${OPENSSL_VERSION_097B}
+. endif
. endif
. for PATTERN in ${_VALID_SSL_VERSIONS}