summaryrefslogtreecommitdiff
path: root/net-proxy/sshuttle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-04-06 01:34:40 +0100
committerV3n3RiX <venerix@koprulu.sector>2025-04-06 01:34:40 +0100
commit288d9455931660abb6dfa534a78d45c7fb901477 (patch)
tree20b4b716c5a7231089588a039dbdc60d93ee0980 /net-proxy/sshuttle
parent8bcae5a5a332db9dc28c20b7a5f28337d8335254 (diff)
gentoo auto-resync : 06:04:2025 - 01:34:40
Diffstat (limited to 'net-proxy/sshuttle')
-rw-r--r--net-proxy/sshuttle/Manifest2
-rw-r--r--net-proxy/sshuttle/sshuttle-1.3.1.ebuild72
2 files changed, 74 insertions, 0 deletions
diff --git a/net-proxy/sshuttle/Manifest b/net-proxy/sshuttle/Manifest
index 5b39e7b2472c..0b95b4348b8f 100644
--- a/net-proxy/sshuttle/Manifest
+++ b/net-proxy/sshuttle/Manifest
@@ -2,6 +2,8 @@ DIST sshuttle-1.1.2-docs.tar.xz 8300 BLAKE2B efbffcda40422b76e18ad8e85b1ccd392a5
DIST sshuttle-1.1.2.gh.tar.gz 111767 BLAKE2B 7f2a63df0a6e2815e8787c6e02cd81924ff3d80d4b2309d8ebb875b49db33ff5b7b8c8249760b27a942f69db049c862041433099a06f009fe3532c4cb4493bac SHA512 c24a6490c1877b9ded8f5f4f44571953c4c204c33f0238c709ca32c7a581ddc919bfc48beb4fafd3a4d346cccd9b02dc7051b6233ff989a0ad329d55c1c5ec47
DIST sshuttle-1.3.0-docs.tar.xz 8596 BLAKE2B feef646cd450b74fd635aa942a2858dd360ee081668629b7c8a88dd3fdd9ed862bf3b37689961964d25f90ae77fb31f1ce2a53633e126f1fc7ca8adcda73f1d6 SHA512 03430d700411e3dd7d69a1bc56abf5be19cc9d128e5f7f1e07bbba992191a387b2ecfc1ec872347ad5f2b46ec09c20565f276d8fa85afd2442f195581f313562
DIST sshuttle-1.3.0.gh.tar.gz 137742 BLAKE2B 47d548f717ff0b670a48dff675fd0898c0ac28a89afb942349a0c4eeeb3ef9d2e78a42b6b065d3a69f1a2bb05518774b2c4c21126e9a29234acc347f8ec2b751 SHA512 5a3aff534c811cc5c8e6d46fd52fd019b0e79977c357f3903cd71a3315cc6a96ca0a9128cbf74be0874c58d79d328b89db702e252ce0b24202b79782528e69ab
+DIST sshuttle-1.3.1.gh.tar.gz 168091 BLAKE2B 69abafaf556d7601776b504278bac07b6d99f4538b7179ed80f6555d2b762f057a56ec7d6f600e55f36e52e313ef22ec9618673dd80c2d501ee97f329609671a SHA512 2188fa895f56d70dc12e2cf4b44828735763b8c87544579d832af0bae880aee71466a23453a0750a684b02d9d8b4757af00434818563104285a0983a56859c99
EBUILD sshuttle-1.1.2.ebuild 2202 BLAKE2B 262310d7f620e32f502688e05d8813800307115c26e5c1577c3361bb2462bc966c48dfb819e135491082ffc310f471e67db19e2d10540491c6858a9fa7483cc7 SHA512 87bbc5ce6d45eed71dd3e65c36bbebc5629feb111fec73ab081baf3b635a0f2593617836124ae686158fc290b695fbbdf7f8d5231e50b77f84272cee0597195c
EBUILD sshuttle-1.3.0.ebuild 2053 BLAKE2B 6e09c239efcb3f3d90505ecad7c5fbf97e65dd531c4717e5c3fabf8aeffdb39db82ad938a9e464cc0dac88b87825b90d5255fb3e805079d91eca543af5b0b56a SHA512 8b2d6395d094973d10a9e85b413013744f5ce5d94a967c8ddd60c99f106bd8a4f3db3c8d81ec655806c0624466f659ad1bb63655b84dde908188b366223de68f
+EBUILD sshuttle-1.3.1.ebuild 2061 BLAKE2B 65d2a30580fa56347075f4a4c0156c7fe245ba87f1ad241d5950452511398bda7d58b92891a29bc3bc06d2ecf52d8e39d43e6ce90614a27346113135fa9168f1 SHA512 b1cea5e5bd70ecc9201c6407918de71a5c75c0d9f423a0ca22b439b7c1852e0171766edf29689c971a6de3678643d73207c0e9b29f74ef58aaf8da0225898b22
MISC metadata.xml 368 BLAKE2B 8781826aa94f38296cb3c0ef628c931875cf7d8c1f3080970be16c3dd01862d067d4051f4d2c271bc63dd9260c4652ba5fd48002eb5747eab68ba9f02a6a3629 SHA512 a4609eb161d14b0b12d93406a257774465e377c432731cd6d72267baa3396545f45e5df9a16577ff143254797e872aa988213af190d47134d9f09de8d820b6d2
diff --git a/net-proxy/sshuttle/sshuttle-1.3.1.ebuild b/net-proxy/sshuttle/sshuttle-1.3.1.ebuild
new file mode 100644
index 000000000000..772f696e29a9
--- /dev/null
+++ b/net-proxy/sshuttle/sshuttle-1.3.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-sshuttle-docs
+# Set to 1 if prebuilt, 0 if not
+# (the construct below is to allow overriding from env for script)
+: ${SSHUTTLE_DOCS_PREBUILT:=1}
+
+SSHUTTLE_DOCS_PREBUILT_DEV=sam
+SSHUTTLE_DOCS_VERSION=${PV%.*}.0
+# Default to generating docs (inc. man pages) if no prebuilt; overridden later
+SSHUTTLE_DOCS_USEFLAG="+doc"
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{10..13} )
+inherit distutils-r1 linux-info
+
+DESCRIPTION="Transparent proxy server that works as a poor man's VPN using ssh"
+HOMEPAGE="https://github.com/sshuttle/sshuttle https://pypi.org/project/sshuttle/"
+# No tests in sdist
+SRC_URI=" https://github.com/sshuttle/sshuttle/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+if [[ ${SSHUTTLE_DOCS_PREBUILT} == 1 ]] ; then
+ SRC_URI+=" !doc? ( https://dev.gentoo.org/~${SSHUTTLE_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${SSHUTTLE_DOCS_VERSION}-docs.tar.xz )"
+ SSHUTTLE_DOCS_USEFLAG="doc"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="${SSHUTTLE_DOCS_USEFLAG}"
+
+BDEPEND="
+ doc? (
+ dev-python/sphinx
+ dev-python/furo
+ )
+"
+RDEPEND="
+ dev-python/psutil[${PYTHON_USEDEP}]
+ || ( net-firewall/iptables net-firewall/nftables )
+"
+
+CONFIG_CHECK="~NETFILTER_XT_TARGET_HL ~IP_NF_TARGET_REDIRECT ~IP_NF_MATCH_TTL ~NF_NAT"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # Don't require pytest-cov when running tests
+ sed -i "s/^addopts =/#\0/" setup.cfg || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ if use doc ; then
+ emake -j1 -C docs html man
+ fi
+}
+
+python_install_all() {
+ # If USE=doc, there'll be newly generated docs which we install instead.
+ if ! use doc && [[ ${SSHUTTLE_DOCS_PREBUILT} == 1 ]] ; then
+ doman "${WORKDIR}"/${PN}-${SSHUTTLE_DOCS_VERSION}-docs/sshuttle.1
+ else
+ HTML_DOCS=( docs/_build/html/. )
+ doman docs/_build/man/*
+ fi
+
+ distutils-r1_python_install_all
+}