diff options
author | Aric Belsito <lluixhi@gmail.com> | 2017-11-06 11:39:11 -0800 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-11-06 16:21:11 -0500 |
commit | b9547210c9dbdd7ef8ac39a532b8013f95671c7a (patch) | |
tree | f0ae07f8791b3118b3e5cc67efc6e44ac13bbdbe /dev-libs | |
parent | dev-python/future: keyworded 0.16.0 for sparc, bug #592910 (thanks to Rolf Ei... (diff) | |
download | gentoo-b9547210c9dbdd7ef8ac39a532b8013f95671c7a.tar.gz gentoo-b9547210c9dbdd7ef8ac39a532b8013f95671c7a.tar.bz2 gentoo-b9547210c9dbdd7ef8ac39a532b8013f95671c7a.zip |
dev-libs/libressl: version bump to 2.6.3
Convert to cmake-utils
Add "nc" USE flag to enable netcat binary
Ensure LibreSSL actually uses ca-certificates instead of bundled certs.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libressl/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libressl/libressl-2.6.3.ebuild | 54 | ||||
-rw-r--r-- | dev-libs/libressl/metadata.xml | 1 |
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest index 20c2a53db429..c1496eeb023a 100644 --- a/dev-libs/libressl/Manifest +++ b/dev-libs/libressl/Manifest @@ -6,3 +6,4 @@ DIST libressl-2.5.5.tar.gz 3283158 SHA256 e57f5e3d5842a81fe9351b6e817fcaf0a749ca DIST libressl-2.6.0.tar.gz 3297288 SHA256 e48d557474571792699000c32ae97dcef34207d13ed93e4126f213d5dcbe8a53 SHA512 e195c6a2c9680cfaaca31bb6d3392fc6f725efd2a2d18b9a24d457d035a581c88630e6a066a4a4e0903e71f3ae3c30a031eb4f58281e483fdf1d877227452e9a WHIRLPOOL b9e481f9ea6c9c35438d093883f2794a3d4a3b4e34beef2df03bf32674cb0b61709381f6810f31fe31f2e4b784c90e1a263e75e5eda2f822ca77969f32a22469 DIST libressl-2.6.1.tar.gz 3219005 SHA256 c293b3b5f1fc1d6349c019c3905355d577df32734b631d7e656503894e09127e SHA512 89f1a796c14bd479f20407254a0d787b4200b3b633f5c24e23f16751ff973ccbf3167d676ed13a5004614b5c8c3e1c73c89dce3d5b1e81890ef6ef2774df9b72 WHIRLPOOL 8623863d710bba80f5b90802f06e302960a22bc846946b4c5d2581677f59c37cf59a4d1e5fad787b8bd41b2d3d994d60c6065504cdb71a90cf5b299c2081d8cc DIST libressl-2.6.2.tar.gz 3229140 SHA256 b029d2492b72a9ba5b5fcd9f3d602c9fd0baa087912f2aaecc28f52f567ec478 SHA512 2896d52185b84edfb23eae73949f5a537966b42e659f00b0b2e0635e69daf546fc41e0e7b97cb52a85e73b2d27ead221a3225977f6b5ee998aefdabf0908a9e4 WHIRLPOOL 780e1b5175a8eed3ee6c5ccb98b77343a004b0dfff614e051a6cbbb315a4cd25e65a6cc99131a4f480368eadf15a7904028f84f5ab60f7f27475124c34ba325a +DIST libressl-2.6.3.tar.gz 3228661 SHA256 aead6598263171b96970da0d881e616d0813b69b35ebdc5991f87ff2ea7f5c98 SHA512 5c0a0f86ecad1226c2d9a3a8a2e6f412ac0941d402c213ae1d293cd90c6a684198410db8c5250f83b8e2b00968a089afc39e90e053669fc27f82a4eb7c65f5c9 WHIRLPOOL fb62059bdf66259735a3928a93f686c5a2447e7801185388d2056b8095da5aad4150ddbaa5339f6a5dc7b1967ead5518678d2cfc23d67f87c34020968dfacd0b diff --git a/dev-libs/libressl/libressl-2.6.3.ebuild b/dev-libs/libressl/libressl-2.6.3.ebuild new file mode 100644 index 000000000000..6372f13faa6a --- /dev/null +++ b/dev-libs/libressl/libressl-2.6.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-multilib + +DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL" +HOMEPAGE="https://www.libressl.org" +SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz" + +LICENSE="ISC openssl" +# Reflects ABI of libcrypto.so and libssl.so. Since these can differ, +# we'll try to use the max of either. However, if either change between +# versions, we have to change the subslot to trigger rebuild of consumers. +SLOT="0/44" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86" +IUSE="+asm nc static-libs" + +RDEPEND=" + !dev-libs/openssl:0 + nc? ( !net-analyzer/openbsd-netcat )" +DEPEND="${RDEPEND}" +PDEPEND="app-misc/ca-certificates" + +src_prepare() { + # Correct hardcoded paths to use ca-certificates instead of cert.pem + find "${S}"/{apps,crypto,tls} -type f -exec \ + sed -e 's|/cert.pem|/certs/ca-certificates.crt|' -i {} \; || die + + eapply_user +} + +src_configure() { + local mycmakeargs=( + -DENABLE_ASM=$(usex asm) + -DENABLE_NC=$(usex nc) + -DOPENSSLDIR="${EPREFIX}"/etc/ssl + -DUSE_SHARED=1 + ) + + cmake-multilib_src_configure +} + +multilib_src_install_all() { + einstalldocs + + # Delete cert.pem + rm "${ED}"/etc/ssl/cert.pem || die + + if ! use static-libs ; then + find "${D}" -name '*.a' -exec rm -f {} + || die + fi +} diff --git a/dev-libs/libressl/metadata.xml b/dev-libs/libressl/metadata.xml index a7201a6f607c..9a56130ae30a 100644 --- a/dev-libs/libressl/metadata.xml +++ b/dev-libs/libressl/metadata.xml @@ -11,6 +11,7 @@ </longdescription> <use> <flag name="asm">Enables assembly</flag> + <flag name="nc">Installs the libtls-based netcat binary</flag> </use> <upstream> <changelog>http://www.libressl.org/releases.html</changelog> |