commit:     d8224e6558820d526362b9b50ad329fc00ec8ce7
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Fri Oct 31 15:33:05 2025 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Fri Oct 31 15:33:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=d8224e65

dev-libs/libressl: add 4.2.1

Signed-off-by: orbea <orbea <AT> riseup.net>

 dev-libs/libressl/Manifest              |  2 +
 dev-libs/libressl/libressl-4.2.1.ebuild | 67 +++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
index 5d5e309..b61b860 100644
--- a/dev-libs/libressl/Manifest
+++ b/dev-libs/libressl/Manifest
@@ -4,3 +4,5 @@ DIST libressl-4.1.1.tar.gz 9202355 BLAKE2B 
340a90d84993842cb54f38ae8bf43e4156185
 DIST libressl-4.1.1.tar.gz.asc 833 BLAKE2B 
0b874f4b5244076a250f3b6ec4377de79e9fa17b427b3a74e0d66ccf3417e32d3afe7c8c3a3df5a2d48d6af6e81e91e182bdf39181204a939845005f49ada825
 SHA512 
d2f66e8575f82aa5d616144df100ab474ada45a09765296a1ccf559f0ccaf2f73b1f6c2493c240c1e9424f65b827d8fe3ee0b01237ddee117dd29fa8b65ea44d
 DIST libressl-4.2.0.tar.gz 9147132 BLAKE2B 
2d3eb6e39dec5000af10626b263969f43c47a2a3f0c266abbc6ce118fbed0e8bbc3143b8b6e877b7ed8a481138ec16db1e7792fd0e15d96e1da861eb5fc90973
 SHA512 
b06eccff7b332da38efbc5a039d8ee54bd26437f3d5957f59ac2d93b4464f181c9a665a2c957272be5d9f91f447720f6dfa29b4b72407279ac8a7722c322dac0
 DIST libressl-4.2.0.tar.gz.asc 833 BLAKE2B 
d0ca88a547fee9f70db075a238c42e44fb059a8000994eaa36c4dcf169f807481130f1c7c5da96b8a79d03cd25f9971d69f0da2e416293db9c6b2956b56478df
 SHA512 
8906b859cfeea222c04f67e30a1d187f32a5b01c238ff6b75258089c699a08598d4a286a3090df9c6e4ac0354893ec440998c868d6e6a2a24e0352b70fd20b92
+DIST libressl-4.2.1.tar.gz 9147769 BLAKE2B 
5f9f9f050b6673e0fbf51ec4450ce4b1f270402429195a7cc000ebb2cb7826d6d01651f9919e72cfa7c0ea5ec10ad8dc1f6ed818f6818f6e45274b678bc07193
 SHA512 
988e580b137d9b847288c6a12fc09c4b24113905521aa4e938c964f7845080463e6f2ca3b58d800512ba5c790a06e4e41b31d187ef09c3018f2321b22ecab267
+DIST libressl-4.2.1.tar.gz.asc 833 BLAKE2B 
bea289a98b5e71079439038a65497a39852e90b12bac036f48b649efbf4cd268908b98712a48c01825b7391c7509366bb84052d362895547f2918292f8a2d920
 SHA512 
02f7b978442ada29aa811ae3ecd45d982214e156ab6644b06aa192e533b41a3312936aec9ce448c22cd218d8db61bf228d3d6bd5a8af0cbb27ab7a428362975d

diff --git a/dev-libs/libressl/libressl-4.2.1.ebuild 
b/dev-libs/libressl/libressl-4.2.1.ebuild
new file mode 100644
index 0000000..db4df78
--- /dev/null
+++ b/dev-libs/libressl/libressl-4.2.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libressl.asc
+inherit autotools multilib-minimal verify-sig
+
+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
+       verify-sig? ( 
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz.asc )
+"
+
+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/60"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="+asm netcat static-libs test"
+RESTRICT="!test? ( test )"
+
+PDEPEND="app-misc/ca-certificates"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-libressl )"
+RDEPEND="netcat? (
+       !net-analyzer/netcat
+       !net-analyzer/nmap[symlink]
+       !net-analyzer/openbsd-netcat
+)"
+
+# LibreSSL checks for libc features during configure
+QA_CONFIG_IMPL_DECL_SKIP=(
+       __va_copy
+       b64_ntop
+)
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.8.3-solaris10.patch
+       # Gentoo's ssl-cert.eclass uses 'openssl genrsa -rand'
+       # which LibreSSL doesn't support.
+       # https://github.com/libressl/portable/issues/839
+       "${FILESDIR}"/${PN}-3.7.2-genrsa-rand.patch
+)
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+multilib_src_configure() {
+       local ECONF_SOURCE="${S}"
+       local args=(
+               $(use_enable asm)
+               $(use_enable static-libs static)
+               $(use_enable netcat nc)
+               $(use_enable test tests)
+       )
+       econf "${args[@]}"
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       find "${D}" -name '*.la' -exec rm -f {} + || die
+}

Reply via email to