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-proxy/sshuttle/
Date: Fri, 28 Jan 2022 08:17:09
Message-Id: 1643357805.a4ea51ed76e14ce71a889558c9fe5ef4c5c64114.sam@gentoo
1 commit: a4ea51ed76e14ce71a889558c9fe5ef4c5c64114
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 08:16:45 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 08:16:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4ea51ed
7
8 net-proxy/sshuttle: add 1.1.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-proxy/sshuttle/Manifest | 1 +
13 net-proxy/sshuttle/sshuttle-1.1.0.ebuild | 54 ++++++++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/net-proxy/sshuttle/Manifest b/net-proxy/sshuttle/Manifest
17 index ae1788a02dc2..58aa627072b4 100644
18 --- a/net-proxy/sshuttle/Manifest
19 +++ b/net-proxy/sshuttle/Manifest
20 @@ -1 +1,2 @@
21 DIST sshuttle-1.0.5.tar.gz 88823 BLAKE2B 6a68be71a92c8245e2e60df1f425c6959547f8c2b972bdafcd774449c3779698c2549f2c7a3575c102158962ef9dd2edaaecec564f36f7f5cc84ed3f53b3daa3 SHA512 a9ebc8f8cf5ccc351796c2eb5b224b5d76908d23a367b768fa4e7b9cd8517ee7ff9c232c92ed4332f46d02d890ad8114f8beaa66876a8c0d7d4850c18ff4c2b3
22 +DIST sshuttle-1.1.0.tar.gz 93987 BLAKE2B c81ab591d5f84764a6ed114623ccb1aaf2ff9706bc5f494513b19c4c2eeb218f3777b2bc7042329eb862aa311a5eab56669d88e10d92b019c0ff9ac9381e3903 SHA512 86361dec179c2ae61c338abaec3d0d36a280c1cc719c1df245a98379037315ac71781e8e5599bb50e34f5068dab3e1010cd7d15c614e01f3dc12011b620d43ee
23
24 diff --git a/net-proxy/sshuttle/sshuttle-1.1.0.ebuild b/net-proxy/sshuttle/sshuttle-1.1.0.ebuild
25 new file mode 100644
26 index 000000000000..809e9d48926c
27 --- /dev/null
28 +++ b/net-proxy/sshuttle/sshuttle-1.1.0.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1 linux-info
38 +
39 +DESCRIPTION="Transparent proxy server that works as a poor man's VPN using ssh"
40 +HOMEPAGE="https://github.com/sshuttle/sshuttle https://pypi.org/project/sshuttle/"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="LGPL-2.1+"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +BDEPEND="
48 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
49 + dev-python/sphinx
50 + test? (
51 + dev-python/mock[${PYTHON_USEDEP}]
52 + )
53 +"
54 +RDEPEND="
55 + dev-python/psutil[${PYTHON_USEDEP}]
56 + || ( net-firewall/iptables net-firewall/nftables )
57 +"
58 +
59 +CONFIG_CHECK="~NETFILTER_XT_TARGET_HL ~IP_NF_TARGET_REDIRECT ~IP_NF_MATCH_TTL ~NF_NAT"
60 +
61 +distutils_enable_tests pytest
62 +
63 +python_prepare_all() {
64 + # Don't run tests via setup.py pytest
65 + sed -i "/setup_requires=/s/'pytest-runner'//" setup.py || die
66 +
67 + # Don't require pytest-cov when running tests
68 + sed -i "s/^addopts =/#\0/" setup.cfg || die
69 +
70 + distutils-r1_python_prepare_all
71 +}
72 +
73 +python_compile_all() {
74 + emake -j1 -C docs html man
75 +}
76 +
77 +python_install_all() {
78 + HTML_DOCS=( docs/_build/html/. )
79 +
80 + doman docs/_build/man/*
81 +
82 + distutils-r1_python_install_all
83 +}