Check against ${OSVERSION} instead of the existence of the library files

whether openssl should be build or not.
This commit is contained in:
Dirk Froemberg 2000-01-28 22:05:15 +00:00
parent 36f97ab978
commit db54ed8188
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25185
2 changed files with 6 additions and 4 deletions

View file

@ -15,7 +15,8 @@ MASTER_SITES= http://www.openssl.org/source/ \
MAINTAINER= dirk@FreeBSD.org 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" FORBIDDEN= "OpenSSL is already in the base system"
.endif .endif
@ -57,4 +58,4 @@ post-install:
.endif .endif
@${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE @${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE
.include <bsd.port.mk> .include <bsd.port.post.mk>

View file

@ -15,7 +15,8 @@ MASTER_SITES= http://www.openssl.org/source/ \
MAINTAINER= dirk@FreeBSD.org 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" FORBIDDEN= "OpenSSL is already in the base system"
.endif .endif
@ -57,4 +58,4 @@ post-install:
.endif .endif
@${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE @${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE
.include <bsd.port.mk> .include <bsd.port.post.mk>