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: Tue, 02 Nov 2021 23:51:01
Message-Id: 1635897039.d6c27e19c12facf2816d715ba475eb1193af316a.sam@gentoo
1 commit: d6c27e19c12facf2816d715ba475eb1193af316a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 2 23:50:39 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 2 23:50:39 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6c27e19
7
8 net-misc/socat: add 1.7.4.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/socat/Manifest | 1 +
13 net-misc/socat/socat-1.7.4.2.ebuild | 58 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/net-misc/socat/Manifest b/net-misc/socat/Manifest
17 index a47d4af7a88..6a41e2eecbf 100644
18 --- a/net-misc/socat/Manifest
19 +++ b/net-misc/socat/Manifest
20 @@ -1,3 +1,4 @@
21 DIST socat-1.7.3.4.tar.bz2 490552 BLAKE2B 68db1674a3156b28c10340e515f346de83d4e953570f3a3cdee9402db9f276285a8f46db14978b4651df6d0fa90fb496696f151afb3e826172daa444ee35e666 SHA512 f338d28e5fd9d7ebb9e30b0fa700bcd5ff50ff9e668403474963a3310ba2b5f68b5236b928872c18e4b1ee95328374987e7e263ac7655a0d9b3fc9da77281123
22 DIST socat-1.7.4.1.tar.bz2 510101 BLAKE2B 9b7ca0a0add173c39d736d470079bf8e1330a8b11497128cc2b5edb019277682697f1f71f6d3d4a526a74a7297e4aace25493acea98ea95a885c52e5a9c34568 SHA512 7fa069bff294a01baebfd790faed027391ab1f47f09f0990e6dcb1c7cce5f3cdc20638fecb10e82c10b6342d903de9481f6d85a0debcc0368c882417dafbc756
23 +DIST socat-1.7.4.2.tar.gz 653068 BLAKE2B 0eba89e2f8993e6c5f2ffaa57ca9e93ae89cb01bf9d6f0f0d5e9550d4cd7e6aa390b26120a47e3661772550f4fb189807bedd31d1477ff0065f478ef2be062ab SHA512 c331a6348e0febb35cd8adc2b116e3b8896cd7f64bcd93e507df4b8197ee1e6738ca256abf74c9b225e7a3769cf9643f0e237826125c6f390b5124ce0f10c972
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.2.ebuild b/net-misc/socat/socat-1.7.4.2.ebuild
27 new file mode 100644
28 index 00000000000..fbf589fadca
29 --- /dev/null
30 +++ b/net-misc/socat/socat-1.7.4.2.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
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/ https://repo.or.cz/socat.git"
42 +SRC_URI="http://www.dest-unreach.org/socat/download/${MY_P}.tar.gz"
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 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
48 +IUSE="bindist ipv6 readline ssl tcpd"
49 +
50 +DEPEND="ssl? ( dev-libs/openssl:0= )
51 + readline? ( sys-libs/readline:= )
52 + tcpd? ( sys-apps/tcp-wrappers )"
53 +RDEPEND="${DEPEND}"
54 +
55 +# Tests are a large bash script
56 +# Hard to disable individual tests needing network or privileges
57 +# in 1.7.4.2: FAILED: 59 329
58 +RESTRICT="test ssl? ( readline? ( bindist ) )"
59 +
60 +DOCS=( BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY )
61 +
62 +pkg_setup() {
63 + # bug #587740
64 + if use readline && use ssl ; then
65 + elog "You are enabling both readline and openssl USE flags, the licenses"
66 + elog "for these packages conflict. You may not be able to legally"
67 + elog "redistribute the resulting binary."
68 + fi
69 +}
70 +
71 +src_configure() {
72 + # bug #293324
73 + filter-flags '-Wno-error*'
74 +
75 + tc-export AR
76 +
77 + econf \
78 + $(use_enable ssl openssl) \
79 + $(use_enable readline) \
80 + $(use_enable ipv6 ip6) \
81 + $(use_enable tcpd libwrap)
82 +}
83 +
84 +src_install() {
85 + default
86 +
87 + docinto html
88 + dodoc doc/*.html doc/*.css
89 +}