Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/sshuttle/
Date: Sat, 30 Jun 2018 17:34:55
Message-Id: 1530380070.c26c65f0baa0a846739be6187a73c03f33640154.radhermit@gentoo
1 commit: c26c65f0baa0a846739be6187a73c03f33640154
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 30 17:22:37 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 30 17:34:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c26c65f0
7
8 net-proxy/sshuttle: version bump to 0.78.4
9
10 net-proxy/sshuttle/Manifest | 1 +
11 net-proxy/sshuttle/sshuttle-0.78.4.ebuild | 53 +++++++++++++++++++++++++++++++
12 2 files changed, 54 insertions(+)
13
14 diff --git a/net-proxy/sshuttle/Manifest b/net-proxy/sshuttle/Manifest
15 index 87ebd6b5a4e..e40605347bd 100644
16 --- a/net-proxy/sshuttle/Manifest
17 +++ b/net-proxy/sshuttle/Manifest
18 @@ -1 +1,2 @@
19 DIST sshuttle-0.78.3.tar.gz 69460 BLAKE2B af6835ac6ca8d2d4d94f86067b2d9024ad531de2c35f07432f4b7319c5ff133349c8975a15d30486bf5cc0e9d9a71798ec2d3ecab943b5992f66b5c371b45de1 SHA512 581955d9868bdd369a37386b273d53448944b1fb5458a25d5930b348630521cadcaea8cf45371942f96c789889d2a405e8bbe824af3d0c6def73f017f1149a1e
20 +DIST sshuttle-0.78.4.tar.gz 72465 BLAKE2B 655df610757e245b66db61955306908c8d1e41db7d093dc44d55260a34b30d4605973815c64d59a860974e9a268e3fcefbba41a104da5ad73f6a8a292bc64b80 SHA512 6e3e49a638ad56fbb00b197d33426f9ccb9afe3d71f8109eb886bc9047083100c910fef7cb42f0426246e585138ce996872179d23fca98afd9e9ccca376da1e6
21
22 diff --git a/net-proxy/sshuttle/sshuttle-0.78.4.ebuild b/net-proxy/sshuttle/sshuttle-0.78.4.ebuild
23 new file mode 100644
24 index 00000000000..de0f9599f26
25 --- /dev/null
26 +++ b/net-proxy/sshuttle/sshuttle-0.78.4.ebuild
27 @@ -0,0 +1,53 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +PYTHON_COMPAT=( python{2_7,3_5,3_6} )
33 +
34 +inherit linux-info distutils-r1
35 +
36 +DESCRIPTION="Transparent proxy server that works as a poor man's VPN using ssh"
37 +HOMEPAGE="https://github.com/sshuttle/sshuttle https://pypi.org/project/sshuttle/"
38 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
39 +
40 +LICENSE="LGPL-2.1+"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86"
43 +IUSE="test"
44 +
45 +RDEPEND="
46 + dev-python/setuptools[${PYTHON_USEDEP}]
47 + || ( net-firewall/iptables net-firewall/nftables )
48 +"
49 +DEPEND="
50 + dev-python/sphinx
51 + dev-python/setuptools[${PYTHON_USEDEP}]
52 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
53 + test? (
54 + dev-python/pytest[${PYTHON_USEDEP}]
55 + dev-python/mock[${PYTHON_USEDEP}]
56 + )
57 +"
58 +
59 +CONFIG_CHECK="~NETFILTER_XT_TARGET_HL ~IP_NF_TARGET_REDIRECT ~IP_NF_MATCH_TTL ~NF_NAT"
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 + distutils-r1_python_prepare_all
66 +}
67 +
68 +python_compile_all() {
69 + emake -C docs html man
70 +}
71 +
72 +python_test() {
73 + py.test -v || die "Tests fail under ${EPYTHON}"
74 +}
75 +
76 +python_install_all() {
77 + HTML_DOCS=( "${S}"/docs/_build/html/. )
78 + doman "${S}"/docs/_build/man/*
79 + distutils-r1_python_install_all
80 +}