net-misc/socat: Add USE=libressl (bug #565244 by Marek Behun).
authorJeroen Roovers <jer@gentoo.org>
Tue, 10 Nov 2015 06:26:07 +0000 (07:26 +0100)
committerJeroen Roovers <jer@gentoo.org>
Tue, 10 Nov 2015 06:32:02 +0000 (07:32 +0100)
Package-Manager: portage-2.2.24

net-misc/socat/socat-1.7.3.0-r1.ebuild [new file with mode: 0644]
net-misc/socat/socat-2.0.0_beta8.ebuild
net-misc/socat/socat-9999.ebuild

diff --git a/net-misc/socat/socat-1.7.3.0-r1.ebuild b/net-misc/socat/socat-1.7.3.0-r1.ebuild
new file mode 100644 (file)
index 0000000..6c441a2
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="Multipurpose relay (SOcket CAT)"
+HOMEPAGE="http://www.dest-unreach.org/socat/"
+MY_P=${P/_beta/-b}
+S="${WORKDIR}/${MY_P}"
+SRC_URI="http://www.dest-unreach.org/socat/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="libressl ssl readline ipv6 tcpd"
+
+DEPEND="
+       ssl? (
+               !libressl? ( dev-libs/openssl:* )
+               libressl? ( dev-libs/libressl )
+       )
+       readline? ( sys-libs/readline:= )
+       tcpd? ( sys-apps/tcp-wrappers )
+"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+
+DOCS=(
+       BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY
+)
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-filan-build.patch
+}
+
+src_configure() {
+       filter-flags '-Wno-error*' #293324
+       tc-export AR
+       econf \
+               $(use_enable ssl openssl) \
+               $(use_enable readline) \
+               $(use_enable ipv6 ip6) \
+               $(use_enable tcpd libwrap)
+}
+
+src_install() {
+       default
+
+       dohtml doc/*.html doc/*.css
+}
index eb6735580dcb55193ef512d4352a1091d2a57407..783b5eb40a3a7670807a3478cbe93187a6c780d5 100644 (file)
@@ -15,11 +15,14 @@ SRC_URI="http://www.dest-unreach.org/socat/download/${MY_P}.tar.bz2"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="ssl readline ipv6 tcpd"
+IUSE="libressl ssl readline ipv6 tcpd"
 
 DEPEND="
-       ssl? ( >=dev-libs/openssl-0.9.6 )
-       readline? ( >=sys-libs/readline-4.1 )
+       ssl? (
+               !libressl? ( dev-libs/openssl:* )
+               libressl? ( dev-libs/libressl:= )
+       )
+       readline? ( sys-libs/readline:= )
        tcpd? ( sys-apps/tcp-wrappers )
 "
 RDEPEND="${DEPEND}"
index e931a19da141e6c25c3681ed98e6574525cefa22..999d4ac6122fba29c0bcfe117fc19f911085066c 100644 (file)
@@ -14,11 +14,14 @@ EGIT_REPO_URI="git://repo.or.cz/${PN}.git"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="ssl readline ipv6 tcpd"
+IUSE="libressl ssl readline ipv6 tcpd"
 
 RDEPEND="
-       ssl? ( >=dev-libs/openssl-0.9.6 )
-       readline? ( >=sys-libs/readline-4.1 )
+       ssl? (
+               !libressl? ( dev-libs/openssl:* )
+               libressl? ( dev-libs/libressl )
+       )
+       readline? ( sys-libs/readline:= )
        tcpd? ( sys-apps/tcp-wrappers )
 "
 DEPEND="