Check against ${OSVERSION} instead of the existence of the library files
whether openssl should be build or not.
This commit is contained in:
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
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue