diff options
-rw-r--r-- | security/openssl-beta/Makefile | 5 | ||||
-rw-r--r-- | security/openssl/Makefile | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/security/openssl-beta/Makefile b/security/openssl-beta/Makefile index 70eef9eae29c..f3e9c7371517 100644 --- a/security/openssl-beta/Makefile +++ b/security/openssl-beta/Makefile @@ -15,7 +15,8 @@ MASTER_SITES= http://www.openssl.org/source/ \ MAINTAINER= dirk@FreeBSD.org -.if exists(/usr/bin/openssl) && exists(/usr/lib/libcrypto.so) && exists(/usr/lib/libssl.so) +.include <bsd.port.pre.mk> +.if ${OSVERSION} >= 400014 FORBIDDEN= "OpenSSL is already in the base system" .endif @@ -57,4 +58,4 @@ post-install: .endif @${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/security/openssl/Makefile b/security/openssl/Makefile index 70eef9eae29c..f3e9c7371517 100644 --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -15,7 +15,8 @@ MASTER_SITES= http://www.openssl.org/source/ \ MAINTAINER= dirk@FreeBSD.org -.if exists(/usr/bin/openssl) && exists(/usr/lib/libcrypto.so) && exists(/usr/lib/libssl.so) +.include <bsd.port.pre.mk> +.if ${OSVERSION} >= 400014 FORBIDDEN= "OpenSSL is already in the base system" .endif @@ -57,4 +58,4 @@ post-install: .endif @${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE -.include <bsd.port.mk> +.include <bsd.port.post.mk> |