aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libressl/Manifest2
-rw-r--r--dev-libs/libressl/libressl-4.0.0.ebuild69
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
index dc1bf71..69c3ac3 100644
--- a/dev-libs/libressl/Manifest
+++ b/dev-libs/libressl/Manifest
@@ -2,3 +2,5 @@ DIST libressl-3.8.4.tar.gz 4467303 BLAKE2B 7ae939e012e1a8d98814e28caec86d5f36f7e
DIST libressl-3.8.4.tar.gz.asc 833 BLAKE2B 8c22b3a48db6d7155fae869ed44c14afaf34b5c6c421c3d5f8d6408192ae35576967f03213d31ad5e9e482bd088984faf0d69c7a03642f4cf0a177cf9d618789 SHA512 0f2b3147b1fc1dd58c3214905c43cdac94677fae51a0dc4775e3e17004d4e76b34a86126e2728a62d8845af8696860cb06b846f543a1a02a17912288d436b527
DIST libressl-3.9.2.tar.gz 4353829 BLAKE2B 190e14bb596f644ad50da92c2ebcb69028f2a1e1d65b0f78b25c77c67bc5b3cf34f1caf9774de6533c7050071dd29fcaf1288ec7a3bfe138e0cd7a31c87389fe SHA512 b7b9f47c77fd27787b7c7ae7e78cd831fe9f7f32e280f54952994569bfe69ff03022e349aea9ea734c50b079693c6e15a3c1115ef0093e523437904074da5784
DIST libressl-3.9.2.tar.gz.asc 833 BLAKE2B 0d35047b42c0936ec5410c4cf8b95620652a51f3ccf82cdf5a21c7ecaa03fdc082ff0cf64f37b3bd1c5aba2bb0d260d41da247acc4fc4eab05341cf55fd6077c SHA512 75e21c8a8ab1fdb4bd26c0ad8132513727453dc42cf2be59c5abae7f08ad42b8b45ef36620bd613d5b35b37fb9fcefa27587a7de2a3d3222e8b8d172a49c4d3f
+DIST libressl-4.0.0.tar.gz 4259615 BLAKE2B 5b5c3b8490a809bb5920904b0c63785c1647a802201183ae05310d92b686fafc7ea7b6c12360bac6615cb11394b15d10dc9d583cc0544f9ca54ea81707eae5a9 SHA512 b5ec6d1f4e3842ecb487f9a67d86db658d05cbe8cd3fcba61172affa8c65c5d0823aa244065a7233f06c669d04a5a36517c02a2d99d2f2da3c4df729ac243b37
+DIST libressl-4.0.0.tar.gz.asc 833 BLAKE2B 3547f18e6ebb1dc1d5727cfee4085b0a2cbbefb491f6a80731050deb7eb8366d19140f5adf9705c56032845c06f815aaac932572659e0d41166ddc3feb3c63ac SHA512 28b0951150b963ada69cfe300627e687ac719a5ed4c0c788322e778a3c351d40eb0c0804b81d957164ec672bcae0229738951484b8f2bea4f9611d8684fc8809
diff --git a/dev-libs/libressl/libressl-4.0.0.ebuild b/dev-libs/libressl/libressl-4.0.0.ebuild
new file mode 100644
index 0000000..73e2710
--- /dev/null
+++ b/dev-libs/libressl/libressl-4.0.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2024 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/58"
+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
+)"
+
+MULTILIB_WRAPPED_HEADERS=( /usr/include/openssl/opensslconf.h )
+
+# 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
+}