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/, net-proxy/sshuttle/files/
Date: Fri, 28 Dec 2018 10:13:40
Message-Id: 1545991962.04cf9c57fbc922d5234d677ad5fcc463900ad0e4.radhermit@gentoo
1 commit: 04cf9c57fbc922d5234d677ad5fcc463900ad0e4
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 28 10:10:32 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 28 10:12:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04cf9c57
7
8 net-proxy/sshuttle: remove old
9
10 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
11
12 net-proxy/sshuttle/Manifest | 1 -
13 .../files/sshuttle-0.78.3-remote-python.patch | 70 ----------------------
14 net-proxy/sshuttle/sshuttle-0.78.3-r2.ebuild | 55 -----------------
15 3 files changed, 126 deletions(-)
16
17 diff --git a/net-proxy/sshuttle/Manifest b/net-proxy/sshuttle/Manifest
18 index e40605347bd..26c70d2d2da 100644
19 --- a/net-proxy/sshuttle/Manifest
20 +++ b/net-proxy/sshuttle/Manifest
21 @@ -1,2 +1 @@
22 -DIST sshuttle-0.78.3.tar.gz 69460 BLAKE2B af6835ac6ca8d2d4d94f86067b2d9024ad531de2c35f07432f4b7319c5ff133349c8975a15d30486bf5cc0e9d9a71798ec2d3ecab943b5992f66b5c371b45de1 SHA512 581955d9868bdd369a37386b273d53448944b1fb5458a25d5930b348630521cadcaea8cf45371942f96c789889d2a405e8bbe824af3d0c6def73f017f1149a1e
23 DIST sshuttle-0.78.4.tar.gz 72465 BLAKE2B 655df610757e245b66db61955306908c8d1e41db7d093dc44d55260a34b30d4605973815c64d59a860974e9a268e3fcefbba41a104da5ad73f6a8a292bc64b80 SHA512 6e3e49a638ad56fbb00b197d33426f9ccb9afe3d71f8109eb886bc9047083100c910fef7cb42f0426246e585138ce996872179d23fca98afd9e9ccca376da1e6
24
25 diff --git a/net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch b/net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch
26 deleted file mode 100644
27 index c8138f73277..00000000000
28 --- a/net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch
29 +++ /dev/null
30 @@ -1,70 +0,0 @@
31 -From 9b7ce2811ec3ef35b9b7f7dfc157127bc46ece47 Mon Sep 17 00:00:00 2001
32 -From: vieira <vieira@××××.be>
33 -Date: Fri, 20 Oct 2017 22:52:06 +0000
34 -Subject: [PATCH] Use versions of python3 greater than 3.5 when available (e.g.
35 - 3.6)
36 -
37 -Some Linux distros, like Alpine, Arch, etc and some BSDs, like FreeBSD, are
38 -now shipping with python3.6 as the default python3. Both the client and the
39 -server are failing to run in this distros, because we are specifically looking
40 -for python3.5.
41 -
42 -These changes make the run shell script use python3 if the version is greater
43 -than 3.5, otherwise falling back as usual.
44 -
45 -On the server any version of python3 will do, use it before falling back to
46 -python, as the server code can run with any version of python3.
47 ----
48 - run | 28 +++++++++++++++++-----------
49 - sshuttle/ssh.py | 2 +-
50 - 2 files changed, 18 insertions(+), 12 deletions(-)
51 -
52 -diff --git a/run b/run
53 -index ec2d3f0..a14d831 100755
54 ---- a/run
55 -+++ b/run
56 -@@ -1,11 +1,17 @@
57 --#!/bin/sh
58 --source_dir="$(dirname $0)"
59 --(cd "$source_dir" && "$source_dir/setup.py" --version > /dev/null)
60 --export PYTHONPATH="$source_dir:$PYTHONPATH"
61 --if python3.5 -V >/dev/null 2>&1; then
62 -- exec python3.5 -m "sshuttle" "$@"
63 --elif python2.7 -V >/dev/null 2>&1; then
64 -- exec python2.7 -m "sshuttle" "$@"
65 --else
66 -- exec python -m "sshuttle" "$@"
67 --fi
68 -+#!/usr/bin/env sh
69 -+set -e
70 -+export PYTHONPATH="$(dirname $0):$PYTHONPATH"
71 -+
72 -+python_best_version() {
73 -+ if [ -x "$(command -v python3)" ]; then
74 -+ if python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
75 -+ exec python3 "$@"
76 -+ fi
77 -+ elif [ -x "$(command -v python2.7)" ]; then
78 -+ exec python2.7 "$@"
79 -+ else
80 -+ exec python "$@"
81 -+ fi
82 -+}
83 -+
84 -+python_best_version -m "sshuttle" "$@"
85 -diff --git a/sshuttle/ssh.py b/sshuttle/ssh.py
86 -index f4c84cc..a1f2997 100644
87 ---- a/sshuttle/ssh.py
88 -+++ b/sshuttle/ssh.py
89 -@@ -116,7 +116,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
90 - if python:
91 - pycmd = "'%s' -c '%s'" % (python, pyscript)
92 - else:
93 -- pycmd = ("P=python3.5; $P -V 2>/dev/null || P=python; "
94 -+ pycmd = ("P=python3; $P -V 2>/dev/null || P=python; "
95 - "exec \"$P\" -c %s") % quote(pyscript)
96 - pycmd = ("exec /bin/sh -c %s" % quote(pycmd))
97 - argv = (sshl +
98 ---
99 -2.16.1
100 -
101
102 diff --git a/net-proxy/sshuttle/sshuttle-0.78.3-r2.ebuild b/net-proxy/sshuttle/sshuttle-0.78.3-r2.ebuild
103 deleted file mode 100644
104 index 1a4ce06c0fe..00000000000
105 --- a/net-proxy/sshuttle/sshuttle-0.78.3-r2.ebuild
106 +++ /dev/null
107 @@ -1,55 +0,0 @@
108 -# Copyright 1999-2018 Gentoo Foundation
109 -# Distributed under the terms of the GNU General Public License v2
110 -
111 -EAPI=6
112 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
113 -
114 -inherit linux-info distutils-r1
115 -
116 -DESCRIPTION="Transparent proxy server that works as a poor man's VPN using ssh"
117 -HOMEPAGE="https://github.com/sshuttle/sshuttle https://pypi.org/project/sshuttle/"
118 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
119 -
120 -LICENSE="GPL-2+"
121 -SLOT="0"
122 -KEYWORDS="amd64 x86"
123 -IUSE="test"
124 -
125 -RDEPEND="
126 - dev-python/setuptools[${PYTHON_USEDEP}]
127 - net-firewall/iptables
128 -"
129 -DEPEND="
130 - dev-python/sphinx
131 - dev-python/setuptools[${PYTHON_USEDEP}]
132 - dev-python/setuptools_scm[${PYTHON_USEDEP}]
133 - test? (
134 - dev-python/pytest[${PYTHON_USEDEP}]
135 - dev-python/mock[${PYTHON_USEDEP}]
136 - )
137 -"
138 -
139 -CONFIG_CHECK="~NETFILTER_XT_TARGET_HL ~IP_NF_TARGET_REDIRECT ~IP_NF_MATCH_TTL ~NF_NAT"
140 -
141 -PATCHES=( "${FILESDIR}"/${P}-remote-python.patch )
142 -
143 -python_prepare_all() {
144 - # don't run tests via setup.py pytest
145 - sed -i "/setup_requires=/s/'pytest-runner'//" setup.py || die
146 -
147 - distutils-r1_python_prepare_all
148 -}
149 -
150 -python_compile_all() {
151 - emake -C docs html man
152 -}
153 -
154 -python_test() {
155 - py.test || die "Tests fail under ${EPYTHON}"
156 -}
157 -
158 -python_install_all() {
159 - HTML_DOCS=( "${S}"/docs/_build/html/. )
160 - doman "${S}"/docs/_build/man/*
161 - distutils-r1_python_install_all
162 -}