svn commit: r428463 - head/security/R-cran-openssl
John Marino
marino at FreeBSD.org
Tue Dec 13 03:14:51 UTC 2016
Author: marino
Date: Tue Dec 13 03:14:50 2016
New Revision: 428463
URL: https://svnweb.freebsd.org/changeset/ports/428463
Log:
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
Modified:
head/security/R-cran-openssl/Makefile
Modified: head/security/R-cran-openssl/Makefile
==============================================================================
--- head/security/R-cran-openssl/Makefile Tue Dec 13 03:09:16 2016 (r428462)
+++ head/security/R-cran-openssl/Makefile Tue Dec 13 03:14:50 2016 (r428463)
@@ -11,17 +11,21 @@ COMMENT= Toolkit for Encryption, Signatu
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>
More information about the svn-ports-head
mailing list