aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/libressl/Manifest1
-rw-r--r--dev-libs/libressl/libressl-2.1.6.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
index 663217b..3acc93d 100644
--- a/dev-libs/libressl/Manifest
+++ b/dev-libs/libressl/Manifest
@@ -2,3 +2,4 @@ DIST libressl-2.1.2.tar.gz 2832092 SHA256 07c05f12e5d49dbfcf82dd23b6b4877b7cdb1c
DIST libressl-2.1.3.tar.gz 2847182 SHA256 eb2f370971408fb10af6453e556465c8eee728ac333bf1eb47ec1a5112304f7c SHA512 d2806f6d147e4145a3ef7795d3a17bc6553b2673d488c47fec4d9ac87babeae3d8710f910d5ccb27e57a3d34c6e4cb7d94cd3862d92f378fa3376a6d2ebc6cd9 WHIRLPOOL 8fedf32b117c9a4da6349882603b9888c2dfc9fc4e5b32408fcac2cc8488d48e6588efa840abdabf7f1a3d59b6ea4348b759c96eac7c1641286b36ce2df43f1b
DIST libressl-2.1.4.tar.gz 2865654 SHA256 e8e08535928774119a979412ee8e307444b7a1a42c8c47ac06ee09423ca9a04e SHA512 534ac8cd438d2907025dcb7e24394e004058db33585d5aff3b594ea7494a866d05d5076f24836dcaf38e6fb27227019d55c26ed235f61da20a158c200f18c46e WHIRLPOOL 5a55b8c049c0204240dc0c1e0e337527d49b3ff8919a97e592bb7b7f1fb272608465bad3235eb8ad0970589f986f71bbba95a704765b4aa6f687b4926975e76d
DIST libressl-2.1.5.tar.gz 2865527 SHA256 a82379913fd7f4e26e045fcf021aa92a1f683954816bf817b3b696de62e9c3bb SHA512 0eaf5cddf62bb42dc334483cb3bbea0cab54a70f77d381ba3622b61ee374cd5135ab7c5d95592ba7e7ea3f048a3aca01b8b443be6c6539a5fba62ed87bd6e38e WHIRLPOOL 90329c4571a34cf5cc2c9f6b2c551c975ddc6898b5156b4529a7b68baedbf05300d0692255ce140540929ed9a6747b4e817d92ac307f233e186513dad9fa14a4
+DIST libressl-2.1.6.tar.gz 2865936 SHA256 4f826dd97b3b8001707073bde8401493f9cd4668465b481c042d28e3973653a8 SHA512 21ea1b504a000d130eac03b93301598c808f9ae75448025b8bf5ec83386364c541dbfbf8ba0b8dc1ac672f476d1a95438f73082e4fd8a5bfa8d7a40b265f38a6 WHIRLPOOL e7e4ec9f16b687843b41c8a4e8ee598bf724c859859113b6a6fba04e5003f745e409e37ca9460004ca609ce8a02410829bbc6e83ffa7396edd1517d38259d530
diff --git a/dev-libs/libressl/libressl-2.1.6.ebuild b/dev-libs/libressl/libressl-2.1.6.ebuild
new file mode 100644
index 0000000..7927a03
--- /dev/null
+++ b/dev-libs/libressl/libressl-2.1.6.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils multilib-minimal
+
+DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
+HOMEPAGE="http://www.libressl.org/"
+SRC_URI="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
+
+LICENSE="ISC openssl"
+SLOT="0/32"
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
+IUSE="+asm static-libs"
+
+# when importing into the tree, make sure to add
+# !dev-libs/openssl:0
+# to DEPEND
+DEPEND="
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140508
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+RDEPEND="${DEPEND}"
+PDEPEND="app-misc/ca-certificates"
+
+src_prepare() {
+ # Fix building with MUSL Libc
+ # Thanks, Voidlinux
+ epatch "${FILESDIR}"/${PN}-glibc.patch
+ 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"
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ $(use_enable asm) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_test() {
+ emake check
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files
+
+ # Include default config for openssl from openssl 1.0.1j
+ insinto /etc/ssl
+ newins "${S}/apps/openssl.cnf" openssl.cnf
+}