mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
security/R-cran-openssl: Fix openssl support, IGNORE LibreSSL
The SSL specification wasn't correct. The SSL requirement needs to be documented even when the base SSL is used. Relocate USES=ssl to be seen unconditionally and block building on FreeBSD 9 with base OpenSSL using the standard technique. LibreSSL is not supported due to use of RSA_get0_* and other unsupported functions. Approved by: SSL blanket
This commit is contained in:
parent
f9ad42b9b1
commit
3e8dce0c20
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428463
@ -11,17 +11,21 @@ COMMENT= Toolkit for Encryption, Signatures and Certificates Based on OpenSSL
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
USES= cran:auto-plist,compiles
|
||||
USES= cran:auto-plist,compiles ssl
|
||||
|
||||
R_POSTCMD_INSTALL_OPTIONS+= --configure-vars="INCLUDE_DIR=${OPENSSLINC} LIB_DIR=${OPENSSLLIB}"
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e '1,5d' ${WRKSRC}/src/ssl.c
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 1000015
|
||||
WITH_OPENSSL_PORT= yes
|
||||
R_POSTCMD_INSTALL_OPTIONS+= --configure-vars="INCLUDE_DIR=${OPENSSLINC} LIB_DIR=${OPENSSLLIB}"
|
||||
USES+= ssl
|
||||
.if ${SSL_DEFAULT:Mlibressl*}
|
||||
IGNORE= Detected LibreSSL (missing RSA_get0_key and others)
|
||||
.else
|
||||
. if ${OSVERSION} < 1000015 && ${SSL_DEFAULT:Mbase}
|
||||
IGNORE= Need a more recent version of OpenSSL.
|
||||
. endif
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user