diff options
-rw-r--r-- | dev-libs/libressl/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libressl/libressl-3.8.2.ebuild | 64 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest index 71fb4a0..aab8a3f 100644 --- a/dev-libs/libressl/Manifest +++ b/dev-libs/libressl/Manifest @@ -10,3 +10,5 @@ DIST libressl-3.8.0.tar.gz 4419357 BLAKE2B ff8413c99842a03db367e1775722a4c9229f2 DIST libressl-3.8.0.tar.gz.asc 833 BLAKE2B 0c09233720c5bcbf6a363129a5a01387def0b6437cd9459a9a9b7a00012bd837abf2df2c478aea9935458e9d696616e9abd5242eae98d6b91b31b17ba6c4f23f SHA512 53a0853f69a082ee4335e76e2d2c8c03440f0e803a04e6fb0528e1a9f0cb3e67937d9a4c9e48c7a9258d458b00c8f0bd0df3fd386d3a56170dae2434e8c617c4 DIST libressl-3.8.1.tar.gz 4436064 BLAKE2B 130457818e0bb57df7cf8b21a010faa9e7ea34982c5935f32db358178623e78cd1fe81bc920cfeccec37c474718a2d7532786677010c910ed6598ab2f6b5fbe7 SHA512 b7cd1c86e3164f29d9bf50ace850c984683b7e37c09df87ec43f59e92f39e4d36f7ddfabd9c2cc8dc0f3013322c8f5be8a1b443aae85b6e816af81674dd75f82 DIST libressl-3.8.1.tar.gz.asc 833 BLAKE2B 90cde203e4031672bc17b3fff0eaebcce1356acdb6fbbd35343be319be159dcfc25bd2fc0ae73f96b106f5a22716e3032de7e11090184a5f8f2918d041c677e4 SHA512 00e7ec696d1138d37d3a9aa183e3a6f5555f17ae5b5b1dd44aaf3326f23e4d1baff1d1a73d1a81922068c0d0c4fa8458a7028f5d5462b4705a2045b975ba96a2 +DIST libressl-3.8.2.tar.gz 4473978 BLAKE2B d6787c3077c8f8d8a5819750fe6cb9bee396ecdecb467f640c652136acc4e84b982bcabfb4cf4abdc81445744714bf708cb15aba2e8f87b2ac60164fc64eb265 SHA512 81765174fdd60223529182fab96249a28978c1d02b5894313d9b0b3aa365a1da2f7e5906403ab368114bdcba2fa861d1ad69b752f8344e6ea61d44666b483122 +DIST libressl-3.8.2.tar.gz.asc 833 BLAKE2B d3b848e59d6385028541f3389c35abd88ae823590a84159b605f9960aef8417613eef53030cea3da97788880b97647aeb218812d0aae3b6295e52e6aff7b97e0 SHA512 cb96c8c051690d56a1aff51d0db955965e508bf5a89fb0a061ec05b711feb2e2bf73e7fe43873e536d25457a43c3a197b4025456ec93f4c2393eb8ee5bce2e44 diff --git a/dev-libs/libressl/libressl-3.8.2.ebuild b/dev-libs/libressl/libressl-3.8.2.ebuild new file mode 100644 index 0000000..8ecef4b --- /dev/null +++ b/dev-libs/libressl/libressl-3.8.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/55" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="+asm static-libs test" +RESTRICT="!test? ( test )" + +PDEPEND="app-misc/ca-certificates" +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-libressl )" + +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/libressl.asc + +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 test tests) + ) + econf "${args[@]}" +} + +multilib_src_install_all() { + einstalldocs + find "${D}" -name '*.la' -exec rm -f {} + || die +} |