Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/torsocks/
Date: Mon, 30 May 2022 16:00:26
Message-Id: 1653926397.dfee59c49ba0777016d00950db85521fd40c0d38.blueness@gentoo
1 commit: dfee59c49ba0777016d00950db85521fd40c0d38
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 15:59:57 2022 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 15:59:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfee59c4
7
8 net-proxy/torsocks: version bump to 2.4.0
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
12
13 net-proxy/torsocks/Manifest | 1 +
14 net-proxy/torsocks/torsocks-2.4.0.ebuild | 45 ++++++++++++++++++++++++++++++++
15 2 files changed, 46 insertions(+)
16
17 diff --git a/net-proxy/torsocks/Manifest b/net-proxy/torsocks/Manifest
18 index 8c6d485bcea3..f63e08613936 100644
19 --- a/net-proxy/torsocks/Manifest
20 +++ b/net-proxy/torsocks/Manifest
21 @@ -1,2 +1,3 @@
22 DIST torsocks-2.2.0.tar.gz 115269 BLAKE2B e6e376dbe9b248bcb51fb0c3c16346f4888310abd6e84942acca69f67ae15afe5dfeba9a6b3a8d1fa562f87548450af93cea3bea4d899980ca6acb651658cfaa SHA512 903d11d58ece76eaf75ff8fc11a27e4a29f94be530f2d77d1a6f0982d556a4b9c78677a43eed88f2451054d0e985672900ecf73b360fa09e80195c3b9006622b
23 DIST torsocks-2.3.0.tar.gz 118033 BLAKE2B a4329ffa5e20204024c4f7dda8619ba2d3e2a5f370727acdc720527688bdb3f8735b0386dfa07758fe59e1890f9ce88bb148a1b0c401bbb5966d2fe17934ca61 SHA512 139f4cf60191632add8bc845b2d68d25a0285e9746988167d832e50cedb8083f2765571429d3a11350fa2d327a1ff0a0ead9b464dac90d897b13ab948f609114
24 +DIST torsocks-2.4.0.tar.gz 118991 BLAKE2B e1817c3bbf10f83431292c644d7187e40b62c5f223784074b3f9c082d8d75243090e226ffebb6fd81805fbd887588790833adc4ab8923e8116585c0a29255ad0 SHA512 7d625ce3a4600f87b86ae9ac79dfd206e7709cb0bafe0b7afcf33a6f1825f968cc63ad3e23c584582b244647bdeafbfdbfc54f7c81e521b0a3d278a1483ce86e
25
26 diff --git a/net-proxy/torsocks/torsocks-2.4.0.ebuild b/net-proxy/torsocks/torsocks-2.4.0.ebuild
27 new file mode 100644
28 index 000000000000..4b2ee2aea47a
29 --- /dev/null
30 +++ b/net-proxy/torsocks/torsocks-2.4.0.ebuild
31 @@ -0,0 +1,45 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit autotools
38 +
39 +UPSTREAM_PF="${PN}-v${PV}"
40 +S=${WORKDIR}/${UPSTREAM_PF}
41 +
42 +DESCRIPTION="Use most socks-friendly applications with Tor"
43 +HOMEPAGE="https://gitlab.torproject.org/tpo/core/torsocks"
44 +SRC_URI="https://gitlab.torproject.org/tpo/core/torsocks/-/archive/v${PV}/${UPSTREAM_PF}.tar.gz -> ${PF}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~x86"
49 +IUSE="static-libs"
50 +
51 +# We do not depend on tor which might be running on a different box
52 +DEPEND=""
53 +RDEPEND="${DEPEND}"
54 +
55 +src_prepare() {
56 + # Disable tests requiring network access.
57 + local test
58 + for test in dns fd_passing getpeername; do
59 + sed -i -e "/^ test_${test} \\\\\$/d" tests/Makefile.am || \
60 + die "failed to disable network tests"
61 + done
62 +
63 + default
64 + eautoreconf
65 +}
66 +
67 +src_configure() {
68 + econf $(use_enable static-libs static)
69 +}
70 +
71 +src_install() {
72 + default
73 +
74 + # Remove libtool .la files
75 + find "${D}" -name '*.la' -delete || die
76 +}