aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-04-13 11:47:23 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-04-13 11:47:23 +0000
commitef7899960ff1bed848360cbc02a87cd158db1424 (patch)
tree161430169b4c67a9ec3344a1d3cd599afc179c6a
parent7ec3204048c9abbe084d7de88f62970abe1afa68 (diff)
downloadports-ef7899960ff1bed848360cbc02a87cd158db1424.tar.gz
ports-ef7899960ff1bed848360cbc02a87cd158db1424.zip
Notes
-rw-r--r--Mk/bsd.openssl.mk32
-rw-r--r--security/hpn-ssh/Makefile2
-rw-r--r--security/openssh-portable/Makefile2
-rw-r--r--security/openssl/bsd.openssl.mk32
4 files changed, 42 insertions, 26 deletions
diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk
index 0975f8dbbfeb..6a2ada2f8a84 100644
--- a/Mk/bsd.openssl.mk
+++ b/Mk/bsd.openssl.mk
@@ -2,16 +2,16 @@
# Date created: 31 May 2002
# Whom: dinoex
#
-# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.2 2003-04-07 05:54:39 dinoex Exp $
+# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.3 2003-04-13 11:47:23 dinoex Exp $
#
# this substitutes USE_OPENSSL=yes
# just include this makefile after bsd.ports.pre.mk
#
# the user/port can now set this options in the makefiles.
#
-# USE_OPENSSL_BASE=yes - Use the version in the base system.
-# USE_OPENSSL_PORT=yes - Use the port, even if base if up to date
-# USE_OPENSSL_BETA=yes - Use a snapshot of recent openssl
+# WITH_OPENSSL_BASE=yes - Use the version in the base system.
+# WITH_OPENSSL_PORT=yes - Use the port, even if base if up to date
+# WITH_OPENSSL_BETA=yes - Use a snapshot of recent openssl
#
# The makefile sets this variables:
# OPENSSLBASE - "/usr" or ${LOCALBASE}
@@ -22,23 +22,31 @@
# MAKE_ENV - extended with the variables above
# LIB_DEPENDS - are added if needed
+# honor obsolete options for a bit
+.if defined(USE_OPENSSL_BASE) && !defined(WITH_OPENSSL_BASE)
+WITH_OPENSSL_BASE=yes
+.endif
+.if defined(USE_OPENSSL_PORT) && !defined(WITH_OPENSSL_PORT)
+WITH_OPENSSL_PORT=yes
+.endif
+
# if no preference was set, check for an up to date base version
# but give an installed port preference over it.
-.if !defined(USE_OPENSSL_BASE) && \
- !defined(USE_OPENSSL_BETA) && \
- !defined(USE_OPENSSL_PORT) && \
+.if !defined(WITH_OPENSSL_BASE) && \
+ !defined(WITH_OPENSSL_BETA) && \
+ !defined(WITH_OPENSSL_PORT) && \
!exists(${LOCALBASE}/lib/libcrypto.so)
# Security: version in base must be 0.9.7a
.if exists(/usr/lib/libcrypto.so.3)
OPENSSLVER!= ${AWK} '/OPENSSL_VERSION_NUMBER/ { print $$3 }' \
/usr/include/openssl/opensslv.h
-.if ${OPENSSLVER} == 0x0090701fL
-USE_OPENSSL_BASE=yes
+.if ${OPENSSLVER} == 0x0090702fL
+WITH_OPENSSL_BASE=yes
.endif
.endif
.endif
-.if defined(USE_OPENSSL_BASE)
+.if defined(WITH_OPENSSL_BASE)
OPENSSLBASE= /usr
OPENSSLDIR= /etc/ssl
@@ -57,7 +65,7 @@ OPENSSLDIR= /etc/ssl
@${ECHO_CMD} "This port wants the OpenSSL library from the FreeBSD"
@${ECHO_CMD} "base system. You can't build against it, while a newer"
@${ECHO_CMD} "Version is installed by a port."
- @${ECHO_CMD} "Please deinstall the port or undefine USE_OPENSSL_BASE."
+ @${ECHO_CMD} "Please deinstall the port or undefine WITH_OPENSSL_BASE."
@${FALSE}
.endif
@@ -88,7 +96,7 @@ SHLIBVER= 4
.endif
OPENSSLBASE= ${LOCALBASE}
-.if defined(USE_OPENSSL_BETA)
+.if defined(WITH_OPENSSL_BETA)
OPENSSLDIR= ${OPENSSLBASE}/openssl
LIB_DEPENDS+= crypto.${SHLIBVER}:${PORTSDIR}/security/openssl-beta
.else
diff --git a/security/hpn-ssh/Makefile b/security/hpn-ssh/Makefile
index 62133cc738b1..b46b3d91058d 100644
--- a/security/hpn-ssh/Makefile
+++ b/security/hpn-ssh/Makefile
@@ -44,7 +44,7 @@ CONFIGURE_ARGS+= --disable-suid-ssh
.endif
.if defined(OPENSSH_OVERWRITE_BASE)
-USE_OPENSSL_BASE= yes
+WITH_OPENSSL_BASE= yes
PKGNAMESUFFIX= -overwrite-base
PREFIX= /usr
MANPREFIX= ${PREFIX}/share
diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile
index 62133cc738b1..b46b3d91058d 100644
--- a/security/openssh-portable/Makefile
+++ b/security/openssh-portable/Makefile
@@ -44,7 +44,7 @@ CONFIGURE_ARGS+= --disable-suid-ssh
.endif
.if defined(OPENSSH_OVERWRITE_BASE)
-USE_OPENSSL_BASE= yes
+WITH_OPENSSL_BASE= yes
PKGNAMESUFFIX= -overwrite-base
PREFIX= /usr
MANPREFIX= ${PREFIX}/share
diff --git a/security/openssl/bsd.openssl.mk b/security/openssl/bsd.openssl.mk
index 4006f35d38ad..0918c4ae50e2 100644
--- a/security/openssl/bsd.openssl.mk
+++ b/security/openssl/bsd.openssl.mk
@@ -2,16 +2,16 @@
# Date created: 31 May 2002
# Whom: dinoex
#
-# $FreeBSD: /tmp/pcvs/ports/security/openssl/Attic/bsd.openssl.mk,v 1.2 2003-04-07 05:54:39 dinoex Exp $
+# $FreeBSD: /tmp/pcvs/ports/security/openssl/Attic/bsd.openssl.mk,v 1.3 2003-04-13 11:47:23 dinoex Exp $
#
# this substitutes USE_OPENSSL=yes
# just include this makefile after bsd.ports.pre.mk
#
# the user/port can now set this options in the makefiles.
#
-# USE_OPENSSL_BASE=yes - Use the version in the base system.
-# USE_OPENSSL_PORT=yes - Use the port, even if base if up to date
-# USE_OPENSSL_BETA=yes - Use a snapshot of recent openssl
+# WITH_OPENSSL_BASE=yes - Use the version in the base system.
+# WITH_OPENSSL_PORT=yes - Use the port, even if base if up to date
+# WITH_OPENSSL_BETA=yes - Use a snapshot of recent openssl
#
# The makefile sets this variables:
# OPENSSLBASE - "/usr" or ${LOCALBASE}
@@ -22,23 +22,31 @@
# MAKE_ENV - extended with the variables above
# LIB_DEPENDS - are added if needed
+# honor obsolete options for a bit
+.if defined(USE_OPENSSL_BASE) && !defined(WITH_OPENSSL_BASE)
+WITH_OPENSSL_BASE=yes
+.endif
+.if defined(USE_OPENSSL_PORT) && !defined(WITH_OPENSSL_PORT)
+WITH_OPENSSL_PORT=yes
+.endif
+
# if no preference was set, check for an up to date base version
# but give an installed port preference over it.
-.if !defined(USE_OPENSSL_BASE) && \
- !defined(USE_OPENSSL_BETA) && \
- !defined(USE_OPENSSL_PORT) && \
+.if !defined(WITH_OPENSSL_BASE) && \
+ !defined(WITH_OPENSSL_BETA) && \
+ !defined(WITH_OPENSSL_PORT) && \
!exists(${LOCALBASE}/lib/libcrypto.so)
# Security: version in base must be 0.9.7a
.if exists(/usr/lib/libcrypto.so.3)
OPENSSLVER!= ${AWK} '/OPENSSL_VERSION_NUMBER/ { print $$3 }' \
/usr/include/openssl/opensslv.h
-.if ${OPENSSLVER} == 0x0090701fL
-USE_OPENSSL_BASE=yes
+.if ${OPENSSLVER} == 0x0090702fL
+WITH_OPENSSL_BASE=yes
.endif
.endif
.endif
-.if defined(USE_OPENSSL_BASE)
+.if defined(WITH_OPENSSL_BASE)
OPENSSLBASE= /usr
OPENSSLDIR= /etc/ssl
@@ -57,7 +65,7 @@ OPENSSLDIR= /etc/ssl
@${ECHO_CMD} "This port wants the OpenSSL library from the FreeBSD"
@${ECHO_CMD} "base system. You can't build against it, while a newer"
@${ECHO_CMD} "Version is installed by a port."
- @${ECHO_CMD} "Please deinstall the port or undefine USE_OPENSSL_BASE."
+ @${ECHO_CMD} "Please deinstall the port or undefine WITH_OPENSSL_BASE."
@${FALSE}
.endif
@@ -88,7 +96,7 @@ SHLIBVER= 4
.endif
OPENSSLBASE= ${LOCALBASE}
-.if defined(USE_OPENSSL_BETA)
+.if defined(WITH_OPENSSL_BETA)
OPENSSLDIR= ${OPENSSLBASE}/openssl
LIB_DEPENDS+= crypto.${SHLIBVER}:${PORTSDIR}/security/openssl-beta
.else