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