Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/socat/
Date: Thu, 07 Jan 2021 03:07:05
Message-Id: 1609988817.0b37a28ecfdc8d201e53edf80d0de0840d613bb4.sam@gentoo
1 commit: 0b37a28ecfdc8d201e53edf80d0de0840d613bb4
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 03:00:04 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 03:06:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b37a28e
7
8 net-misc/socat: bump to 1.7.4.0
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-misc/socat/Manifest | 1 +
14 net-misc/socat/socat-1.7.4.0.ebuild | 63 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 64 insertions(+)
16
17 diff --git a/net-misc/socat/Manifest b/net-misc/socat/Manifest
18 index 0fb684a0357..8a226798468 100644
19 --- a/net-misc/socat/Manifest
20 +++ b/net-misc/socat/Manifest
21 @@ -1,2 +1,3 @@
22 DIST socat-1.7.3.4.tar.bz2 490552 BLAKE2B 68db1674a3156b28c10340e515f346de83d4e953570f3a3cdee9402db9f276285a8f46db14978b4651df6d0fa90fb496696f151afb3e826172daa444ee35e666 SHA512 f338d28e5fd9d7ebb9e30b0fa700bcd5ff50ff9e668403474963a3310ba2b5f68b5236b928872c18e4b1ee95328374987e7e263ac7655a0d9b3fc9da77281123
23 +DIST socat-1.7.4.0.tar.bz2 509023 BLAKE2B 97ad5f5a52375aea4d2afbb4ac6143a86bfa057aed602d552b015f6c9fc6a3a0cc65b1717573b3c60bed482da908197366bd1d282ee1db6fd86a229484d2bb9f SHA512 c4d166c2259271a70f81d6c4972549549c3fc60a9e47cc03eff1dd4d71c298ac39c177ae3c053dc0c97c2770fe8d157fd0bc6f2c14aef91625f868894d5d7c61
24 DIST socat-2.0.0-b9.tar.bz2 516673 BLAKE2B 808c8821b89ae2463074f87915dfae10f82b66ac6cd0b6ff56ab18f57c704e5a2a3ce76650152dccce41e4bd00e3a937948d4ade0a915b1f0e917c7543c6fc31 SHA512 f728bd634feeeacd2f0e4020c1c6aafdadaef3ba9da818d9ae1195e9f48fb693b2bea8dbbb208af8daddd8d6405217113d5ce31d05c2e9b27f5d2fba6b1cc834
25
26 diff --git a/net-misc/socat/socat-1.7.4.0.ebuild b/net-misc/socat/socat-1.7.4.0.ebuild
27 new file mode 100644
28 index 00000000000..cce924237d7
29 --- /dev/null
30 +++ b/net-misc/socat/socat-1.7.4.0.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic toolchain-funcs
38 +
39 +MY_P=${P/_beta/-b}
40 +DESCRIPTION="Multipurpose relay (SOcket CAT)"
41 +HOMEPAGE="http://www.dest-unreach.org/socat/"
42 +SRC_URI="http://www.dest-unreach.org/socat/download/${MY_P}.tar.bz2"
43 +S="${WORKDIR}/${MY_P}"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
48 +IUSE="bindist libressl ssl readline ipv6 tcpd"
49 +
50 +DEPEND="
51 + ssl? (
52 + !libressl? ( dev-libs/openssl:0= )
53 + libressl? ( dev-libs/libressl:= )
54 + )
55 + readline? ( sys-libs/readline:= )
56 + tcpd? ( sys-apps/tcp-wrappers )
57 +"
58 +RDEPEND="${DEPEND}"
59 +
60 +# Tests are a large bash script
61 +# Hard to disable individual tests needing network or privileges
62 +RESTRICT="
63 + test
64 + ssl? ( readline? ( bindist ) )
65 +"
66 +
67 +DOCS=( BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY )
68 +
69 +pkg_setup() {
70 + # bug #587740
71 + if use readline && use ssl; then
72 + elog "You are enabling both readline and openssl USE flags, the licenses"
73 + elog "for these packages conflict. You may not be able to legally"
74 + elog "redistribute the resulting binary."
75 + fi
76 +}
77 +
78 +src_configure() {
79 + filter-flags '-Wno-error*' #293324
80 + tc-export AR
81 +
82 + econf \
83 + $(use_enable ssl openssl) \
84 + $(use_enable readline) \
85 + $(use_enable ipv6 ip6) \
86 + $(use_enable tcpd libwrap)
87 +}
88 +
89 +src_install() {
90 + default
91 +
92 + docinto html
93 + dodoc doc/*.html doc/*.css
94 +}