aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-05-12 12:58:52 +0800
committerdinoex <dinoex@FreeBSD.org>2004-05-12 12:58:52 +0800
commit1eabe7ccbc6b2cb91068a63ee2b277479797c01f (patch)
tree4a84589944911c75ed73dda72e65d94745939f8d /Mk
parent5eaecb6ea3e20656e7169075cfcad4e428214482 (diff)
downloadfreebsd-ports-gnome-1eabe7ccbc6b2cb91068a63ee2b277479797c01f.tar.gz
freebsd-ports-gnome-1eabe7ccbc6b2cb91068a63ee2b277479797c01f.tar.zst
freebsd-ports-gnome-1eabe7ccbc6b2cb91068a63ee2b277479797c01f.zip
- Don't build with openssl port when base version is stale
PR: 66007
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.openssl.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk
index bcace2265c9c..e4f217a64e43 100644
--- a/Mk/bsd.openssl.mk
+++ b/Mk/bsd.openssl.mk
@@ -2,7 +2,7 @@
# Date created: 31 May 2002
# Whom: dinoex
#
-# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.15 2004-04-08 10:01:53 dinoex Exp $
+# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.16 2004-05-12 04:58:52 dinoex Exp $
#
# Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk
#
@@ -54,8 +54,11 @@ WITH_OPENSSL_PORT=yes
OPENSSLVER!= ${AWK} '/OPENSSL_VERSION_TEXT/ { print $$4; exit }' \
/usr/include/openssl/opensslv.h
# check for safe versions in the base
-.if ${OPENSSLVER} == "0.9.7a-p1" || ${OPENSSLVER} == "0.9.7c-p1" || ${OPENSSLVER} == "0.9.7d"
-WITH_OPENSSL_BASE=yes
+.if ${OPENSSLVER} != "0.9.7a-p1" && ${OPENSSLVER} != "0.9.7c-p1" && ${OPENSSLVER} != "0.9.7d"
+check-depends::
+ @${ECHO_CMD} "Dependency warning: used OpenSSL version contains known vulnerabilities"
+ @${ECHO_CMD} "Please update or define either WITH_OPENSSL_BASE or WITH_OPENSSL_PORT"
+ @${FALSE}
.endif
.endif