Commit: 237b82ab74b2de354d159c6b5bcf1f4e92648bd1 Parent: 232d0fd1047fe1cdba8db8edd6ce37c7c8b73f21 Author: Randy Palamar Date: Fri, 5 Mar 2021 16:31:06 -0700 add libressl ebuild with option to enable netcat Diffstat:
A | dev-libs/libressl/Manifest | | | 1 | + |
A | dev-libs/libressl/libressl-3.3.1.ebuild | | | 61 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | dev-libs/libressl/metadata.xml | | | 33 | +++++++++++++++++++++++++++++++++ |
3 files changed, 95 insertions(+), 0 deletions(-)
diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest @@ -0,0 +1 @@ +DIST libressl-3.3.1.tar.gz 3838592 BLAKE2B 67c5bd72c1d1085c13fd3bf2e3829a6b83d61c3c9af5f5e65dca7548abe967f0ec8ebe3c46c6af576c54304b432069aab9d940bded90925cb44fffa7a8f35c29 SHA512 a0a6c10af71c6932a63381f33b2d0fe38b28d1c3c62c0c2de770695152f6eb3c558fdedd2fb6cdf34bd9a2dd3887aec615b652cbc3c1eed6c3c973c787a0c294 diff --git a/dev-libs/libressl/libressl-3.3.1.ebuild b/dev-libs/libressl/libressl-3.3.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal libtool + +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" + +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/48" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="+asm +nc static-libs test" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( static-libs )" + +RDEPEND="!dev-libs/openssl:0" +DEPEND="${RDEPEND}" +PDEPEND="app-misc/ca-certificates" + +src_prepare() { + touch crypto/Makefile.in + + sed -i \ + -e '/^[ \t]*CFLAGS=/s#-g ##' \ + -e '/^[ \t]*CFLAGS=/s#-g"#"#' \ + -e '/^[ \t]*CFLAGS=/s#-O2 ##' \ + -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \ + -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \ + -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \ + configure || die "fixing CFLAGS failed" + + if ! use test ; then + sed -i \ + -e '/^[ \t]*SUBDIRS =/s#tests##' \ + Makefile.in || die "Removing tests failed" + fi + + eapply_user +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable asm) \ + $(use_enable nc) \ + $(use_enable static-libs static) +} + +multilib_src_test() { + emake check +} + +multilib_src_install_all() { + einstalldocs + find "${D}" -name '*.la' -exec rm -f {} + || die +} diff --git a/dev-libs/libressl/metadata.xml b/dev-libs/libressl/metadata.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>libressl@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + LibreSSL is a version of the TLS/crypto stack forked from OpenSSL in + 2014, with goals of modernizing the codebase, improving security, and + applying best practice development processes. + </longdescription> + <use> + <flag name="asm">Enables assembly</flag> + </use> + <use> + <flag name="nc">Build the netcat utility</flag> + </use> + <upstream> + <changelog>http://www.libressl.org/releases.html</changelog> + <bugs-to> + https://github.com/libressl-portable/portable/issues + </bugs-to> + <remote-id type="github">libressl-portable/portable</remote-id> + </upstream> + <slots> + <slot name="0"> + Pin source packages to SLOT 0, as binary compatibility slots are expected to come and go. + </slot> + <subslots> + Reflect ABI of libcrypto.so and libssl.so only, NOT libtls.so. + </subslots> + </slots> +</pkgmetadata>