Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libressl/
Date: Sun, 03 Mar 2019 18:58:55
Message-Id: 1551639523.08fdf30f48575d267f6c4b12ad374d3ca458841f.bman@gentoo
1 commit: 08fdf30f48575d267f6c4b12ad374d3ca458841f
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 3 18:57:17 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 3 18:58:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08fdf30f
7
8 Revert "dev-libs/libressl: drop old versions"
9
10 This reverts commit 902c00d3c38c83063234ed7c0e9f5d527325951b.
11
12 -dev-python/pypy-bin: needs updated patches to work with libressl 2.8.3
13 -dev-lua/lua-openssl: needs updaed patches to work with libressl 2.8.3
14
15 Remove the version restraint on both packages once done
16
17 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
18
19 dev-libs/libressl/Manifest | 2 ++
20 dev-libs/libressl/libressl-2.6.5.ebuild | 56 +++++++++++++++++++++++++++++++++
21 dev-libs/libressl/libressl-2.7.5.ebuild | 53 +++++++++++++++++++++++++++++++
22 3 files changed, 111 insertions(+)
23
24 diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
25 index bb40a692e6c..4f5caa7d95b 100644
26 --- a/dev-libs/libressl/Manifest
27 +++ b/dev-libs/libressl/Manifest
28 @@ -1,2 +1,4 @@
29 +DIST libressl-2.6.5.tar.gz 3225481 BLAKE2B fcdf0d8b4b68fdb6c17299f4b9897c84f51ec3407abc6c1bf8d474c4424161c563667ca1fb26c45dd20a0e895457e9210b7bd0539581472b94d594cc32a68191 SHA512 0601c73bb5c3d149df7eca3566831f1b35713aa16a15788a291922fce0bffa1ba0bc6ea9cac1fcecfd980009f2292b08b2a57d66b517fc1bc8c7364a24dbbd9d
30 +DIST libressl-2.7.5.tar.gz 3539591 BLAKE2B 0cda7307f01cea21584b3e814a20053ab128016f0b639856eb04b52f91156c74b8fdba485401e099f472ae7d9a35e9be54d169e3ddf743540595c2ffa0f979ff SHA512 00828dd115f6395186ce4c9cadb604612763f67f2ad2236a331062add8115f6494a655cbec237ae069e373ffb915ed4025c993e06456c3da69b279e5f7e2b8d4
31 DIST libressl-2.8.3.tar.gz 3366196 BLAKE2B e32c097b31998d68a31266fbbf3624d5ab8ca716f8c53e423bcf09b3a8ab3542c92a99e259ded7b86f99b45cc199cd44791520a609f18c35d150365de5768eec SHA512 3967e08b3dc2277bf77057ea1f11148df7f96a2203cd21cf841902f2a1ec11320384a001d01fa58154d35612f7981bf89d5b1a60a2387713d5657677f76cc682
32 DIST libressl-2.9.0.tar.gz 3400383 BLAKE2B 652ac9ff962fd187563f2f6f9ea423d682f743c8443954ad3a8adc810530711482705f0cac1a805e2f85697ed1fed156c80da913dc07c8c13cd6ce78e44b6c4d SHA512 db7fec664bef8d76204ca691c11df236abce3c85b2a51011eec5bd302e273b62fa3cfce0430980915c3f3ce34176d5ef9c187902f0b39d7fc151e69e552b499c
33
34 diff --git a/dev-libs/libressl/libressl-2.6.5.ebuild b/dev-libs/libressl/libressl-2.6.5.ebuild
35 new file mode 100644
36 index 00000000000..d4870428f99
37 --- /dev/null
38 +++ b/dev-libs/libressl/libressl-2.6.5.ebuild
39 @@ -0,0 +1,56 @@
40 +# Copyright 1999-2018 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=6
44 +
45 +inherit autotools multilib-minimal
46 +
47 +DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
48 +HOMEPAGE="https://www.libressl.org/"
49 +SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
50 +
51 +LICENSE="ISC openssl"
52 +# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
53 +# we'll try to use the max of either. However, if either change between
54 +# versions, we have to change the subslot to trigger rebuild of consumers.
55 +SLOT="0/44"
56 +KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
57 +IUSE="+asm static-libs test"
58 +REQUIRED_USE="test? ( static-libs )"
59 +
60 +RDEPEND="!dev-libs/openssl:0"
61 +DEPEND="${RDEPEND}"
62 +PDEPEND="app-misc/ca-certificates"
63 +
64 +PATCHES=( "${FILESDIR}/libressl-2.6.4-hppa-asm.patch" )
65 +
66 +src_prepare() {
67 + touch crypto/Makefile.in
68 +
69 + sed -i \
70 + -e '/^[ \t]*CFLAGS=/s#-g ##' \
71 + -e '/^[ \t]*CFLAGS=/s#-g"#"#' \
72 + -e '/^[ \t]*CFLAGS=/s#-O2 ##' \
73 + -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
74 + -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
75 + -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
76 + configure || die "fixing CFLAGS failed"
77 +
78 + default
79 + eautoreconf
80 +}
81 +
82 +multilib_src_configure() {
83 + ECONF_SOURCE="${S}" econf \
84 + $(use_enable asm) \
85 + $(use_enable static-libs static)
86 +}
87 +
88 +multilib_src_test() {
89 + emake check
90 +}
91 +
92 +multilib_src_install_all() {
93 + einstalldocs
94 + find "${D}" -name '*.la' -exec rm -f {} + || die
95 +}
96
97 diff --git a/dev-libs/libressl/libressl-2.7.5.ebuild b/dev-libs/libressl/libressl-2.7.5.ebuild
98 new file mode 100644
99 index 00000000000..288540105ec
100 --- /dev/null
101 +++ b/dev-libs/libressl/libressl-2.7.5.ebuild
102 @@ -0,0 +1,53 @@
103 +# Copyright 1999-2018 Gentoo Authors
104 +# Distributed under the terms of the GNU General Public License v2
105 +
106 +EAPI=6
107 +
108 +inherit multilib-minimal
109 +
110 +DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
111 +HOMEPAGE="https://www.libressl.org/"
112 +SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
113 +
114 +LICENSE="ISC openssl"
115 +# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
116 +# we'll try to use the max of either. However, if either change between
117 +# versions, we have to change the subslot to trigger rebuild of consumers.
118 +SLOT="0/45"
119 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
120 +IUSE="+asm static-libs test"
121 +REQUIRED_USE="test? ( static-libs )"
122 +
123 +RDEPEND="!dev-libs/openssl:0"
124 +DEPEND="${RDEPEND}"
125 +PDEPEND="app-misc/ca-certificates"
126 +
127 +src_prepare() {
128 + touch crypto/Makefile.in
129 +
130 + sed -i \
131 + -e '/^[ \t]*CFLAGS=/s#-g ##' \
132 + -e '/^[ \t]*CFLAGS=/s#-g"#"#' \
133 + -e '/^[ \t]*CFLAGS=/s#-O2 ##' \
134 + -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
135 + -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
136 + -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
137 + configure || die "fixing CFLAGS failed"
138 +
139 + eapply_user
140 +}
141 +
142 +multilib_src_configure() {
143 + ECONF_SOURCE="${S}" econf \
144 + $(use_enable asm) \
145 + $(use_enable static-libs static)
146 +}
147 +
148 +multilib_src_test() {
149 + emake check
150 +}
151 +
152 +multilib_src_install_all() {
153 + einstalldocs
154 + find "${D}" -name '*.la' -exec rm -f {} + || die
155 +}