Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libressl/
Date: Mon, 06 Nov 2017 21:21:19
Message-Id: 1510003271.b9547210c9dbdd7ef8ac39a532b8013f95671c7a.blueness@gentoo
1 commit: b9547210c9dbdd7ef8ac39a532b8013f95671c7a
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 6 19:39:11 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 6 21:21:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9547210
7
8 dev-libs/libressl: version bump to 2.6.3
9
10 Convert to cmake-utils
11 Add "nc" USE flag to enable netcat binary
12 Ensure LibreSSL actually uses ca-certificates instead of bundled certs.
13
14 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
15
16 dev-libs/libressl/Manifest | 1 +
17 dev-libs/libressl/libressl-2.6.3.ebuild | 54 +++++++++++++++++++++++++++++++++
18 dev-libs/libressl/metadata.xml | 1 +
19 3 files changed, 56 insertions(+)
20
21 diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
22 index 20c2a53db42..c1496eeb023 100644
23 --- a/dev-libs/libressl/Manifest
24 +++ b/dev-libs/libressl/Manifest
25 @@ -6,3 +6,4 @@ DIST libressl-2.5.5.tar.gz 3283158 SHA256 e57f5e3d5842a81fe9351b6e817fcaf0a749ca
26 DIST libressl-2.6.0.tar.gz 3297288 SHA256 e48d557474571792699000c32ae97dcef34207d13ed93e4126f213d5dcbe8a53 SHA512 e195c6a2c9680cfaaca31bb6d3392fc6f725efd2a2d18b9a24d457d035a581c88630e6a066a4a4e0903e71f3ae3c30a031eb4f58281e483fdf1d877227452e9a WHIRLPOOL b9e481f9ea6c9c35438d093883f2794a3d4a3b4e34beef2df03bf32674cb0b61709381f6810f31fe31f2e4b784c90e1a263e75e5eda2f822ca77969f32a22469
27 DIST libressl-2.6.1.tar.gz 3219005 SHA256 c293b3b5f1fc1d6349c019c3905355d577df32734b631d7e656503894e09127e SHA512 89f1a796c14bd479f20407254a0d787b4200b3b633f5c24e23f16751ff973ccbf3167d676ed13a5004614b5c8c3e1c73c89dce3d5b1e81890ef6ef2774df9b72 WHIRLPOOL 8623863d710bba80f5b90802f06e302960a22bc846946b4c5d2581677f59c37cf59a4d1e5fad787b8bd41b2d3d994d60c6065504cdb71a90cf5b299c2081d8cc
28 DIST libressl-2.6.2.tar.gz 3229140 SHA256 b029d2492b72a9ba5b5fcd9f3d602c9fd0baa087912f2aaecc28f52f567ec478 SHA512 2896d52185b84edfb23eae73949f5a537966b42e659f00b0b2e0635e69daf546fc41e0e7b97cb52a85e73b2d27ead221a3225977f6b5ee998aefdabf0908a9e4 WHIRLPOOL 780e1b5175a8eed3ee6c5ccb98b77343a004b0dfff614e051a6cbbb315a4cd25e65a6cc99131a4f480368eadf15a7904028f84f5ab60f7f27475124c34ba325a
29 +DIST libressl-2.6.3.tar.gz 3228661 SHA256 aead6598263171b96970da0d881e616d0813b69b35ebdc5991f87ff2ea7f5c98 SHA512 5c0a0f86ecad1226c2d9a3a8a2e6f412ac0941d402c213ae1d293cd90c6a684198410db8c5250f83b8e2b00968a089afc39e90e053669fc27f82a4eb7c65f5c9 WHIRLPOOL fb62059bdf66259735a3928a93f686c5a2447e7801185388d2056b8095da5aad4150ddbaa5339f6a5dc7b1967ead5518678d2cfc23d67f87c34020968dfacd0b
30
31 diff --git a/dev-libs/libressl/libressl-2.6.3.ebuild b/dev-libs/libressl/libressl-2.6.3.ebuild
32 new file mode 100644
33 index 00000000000..6372f13faa6
34 --- /dev/null
35 +++ b/dev-libs/libressl/libressl-2.6.3.ebuild
36 @@ -0,0 +1,54 @@
37 +# Copyright 1999-2017 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +inherit cmake-multilib
43 +
44 +DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
45 +HOMEPAGE="https://www.libressl.org"
46 +SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
47 +
48 +LICENSE="ISC openssl"
49 +# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
50 +# we'll try to use the max of either. However, if either change between
51 +# versions, we have to change the subslot to trigger rebuild of consumers.
52 +SLOT="0/44"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86"
54 +IUSE="+asm nc static-libs"
55 +
56 +RDEPEND="
57 + !dev-libs/openssl:0
58 + nc? ( !net-analyzer/openbsd-netcat )"
59 +DEPEND="${RDEPEND}"
60 +PDEPEND="app-misc/ca-certificates"
61 +
62 +src_prepare() {
63 + # Correct hardcoded paths to use ca-certificates instead of cert.pem
64 + find "${S}"/{apps,crypto,tls} -type f -exec \
65 + sed -e 's|/cert.pem|/certs/ca-certificates.crt|' -i {} \; || die
66 +
67 + eapply_user
68 +}
69 +
70 +src_configure() {
71 + local mycmakeargs=(
72 + -DENABLE_ASM=$(usex asm)
73 + -DENABLE_NC=$(usex nc)
74 + -DOPENSSLDIR="${EPREFIX}"/etc/ssl
75 + -DUSE_SHARED=1
76 + )
77 +
78 + cmake-multilib_src_configure
79 +}
80 +
81 +multilib_src_install_all() {
82 + einstalldocs
83 +
84 + # Delete cert.pem
85 + rm "${ED}"/etc/ssl/cert.pem || die
86 +
87 + if ! use static-libs ; then
88 + find "${D}" -name '*.a' -exec rm -f {} + || die
89 + fi
90 +}
91
92 diff --git a/dev-libs/libressl/metadata.xml b/dev-libs/libressl/metadata.xml
93 index a7201a6f607..9a56130ae30 100644
94 --- a/dev-libs/libressl/metadata.xml
95 +++ b/dev-libs/libressl/metadata.xml
96 @@ -11,6 +11,7 @@
97 </longdescription>
98 <use>
99 <flag name="asm">Enables assembly</flag>
100 + <flag name="nc">Installs the libtls-based netcat binary</flag>
101 </use>
102 <upstream>
103 <changelog>http://www.libressl.org/releases.html</changelog>