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: Tue, 06 Feb 2018 03:18:10
Message-Id: 1517887073.3838105b77316a45453dea09dda8cd8f4e9ba919.radhermit@gentoo
1 commit: 3838105b77316a45453dea09dda8cd8f4e9ba919
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 6 03:01:20 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 6 03:17:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3838105b
7
8 net-proxy/sshuttle: initial docs and man page
9
10 net-proxy/sshuttle/sshuttle-0.78.3-r1.ebuild | 53 ++++++++++++++++++++++++++++
11 1 file changed, 53 insertions(+)
12
13 diff --git a/net-proxy/sshuttle/sshuttle-0.78.3-r1.ebuild b/net-proxy/sshuttle/sshuttle-0.78.3-r1.ebuild
14 new file mode 100644
15 index 00000000000..49502d96180
16 --- /dev/null
17 +++ b/net-proxy/sshuttle/sshuttle-0.78.3-r1.ebuild
18 @@ -0,0 +1,53 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=6
23 +PYTHON_COMPAT=( python{2_7,3_5,3_6} )
24 +
25 +inherit linux-info distutils-r1
26 +
27 +DESCRIPTION="Transparent proxy server that works as a poor man's VPN using ssh"
28 +HOMEPAGE="https://github.com/sshuttle/sshuttle https://pypi.python.org/pypi/sshuttle"
29 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
30 +
31 +LICENSE="GPL-2+"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~x86"
34 +IUSE="test"
35 +
36 +RDEPEND="
37 + dev-python/setuptools[${PYTHON_USEDEP}]
38 + net-firewall/iptables
39 +"
40 +DEPEND="
41 + dev-python/sphinx
42 + dev-python/setuptools[${PYTHON_USEDEP}]
43 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
44 + test? (
45 + dev-python/pytest[${PYTHON_USEDEP}]
46 + dev-python/mock[${PYTHON_USEDEP}]
47 + )
48 +"
49 +
50 +CONFIG_CHECK="~NETFILTER_XT_TARGET_HL ~IP_NF_TARGET_REDIRECT ~IP_NF_MATCH_TTL ~NF_NAT"
51 +
52 +python_prepare_all() {
53 + # don't run tests via setup.py pytest
54 + sed -i "/setup_requires=/s/'pytest-runner'//" setup.py || die
55 +
56 + distutils-r1_python_prepare_all
57 +}
58 +
59 +python_compile_all() {
60 + emake -C docs html man
61 +}
62 +
63 +python_test() {
64 + py.test || die "Tests fail under ${EPYTHON}"
65 +}
66 +
67 +python_install_all() {
68 + HTML_DOCS=( "${S}"/docs/_build/html/. )
69 + doman "${S}"/docs/_build/man/*
70 + distutils-r1_python_install_all
71 +}