From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EDA0F1584F2 for ; Thu, 20 Mar 2025 03:51:27 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id D9118343079 for ; Thu, 20 Mar 2025 03:51:27 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id CBC2511037F; Thu, 20 Mar 2025 03:51:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id C133E11037F for ; Thu, 20 Mar 2025 03:51:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 60A98343079 for ; Thu, 20 Mar 2025 03:51:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B4D6A1D72 for ; Thu, 20 Mar 2025 03:51:24 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1742442661.96aeb02546b0f57ce2e2069ef52cd7817a8c238d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/sshuttle/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-proxy/sshuttle/Manifest net-proxy/sshuttle/sshuttle-1.3.0.ebuild X-VCS-Directories: net-proxy/sshuttle/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 96aeb02546b0f57ce2e2069ef52cd7817a8c238d X-VCS-Branch: master Date: Thu, 20 Mar 2025 03:51:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f8677e17-49d8-4d7a-875e-97e40a96ca3e X-Archives-Hash: f27aa5a549d37361625a76a15002c0b5 commit: 96aeb02546b0f57ce2e2069ef52cd7817a8c238d Author: Sam James gentoo org> AuthorDate: Thu Mar 20 03:51:01 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Mar 20 03:51:01 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96aeb025 net-proxy/sshuttle: add 1.3.0 Signed-off-by: Sam James gentoo.org> net-proxy/sshuttle/Manifest | 2 + net-proxy/sshuttle/sshuttle-1.3.0.ebuild | 72 ++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/net-proxy/sshuttle/Manifest b/net-proxy/sshuttle/Manifest index 2b01dbfe8698..96447fec9ef4 100644 --- a/net-proxy/sshuttle/Manifest +++ b/net-proxy/sshuttle/Manifest @@ -1,2 +1,4 @@ DIST sshuttle-1.1.2-docs.tar.xz 8300 BLAKE2B efbffcda40422b76e18ad8e85b1ccd392a5ca342897d3a179b31b5f000954b2021c877680eda6a0aae70c8594704afb8a81599f2c79dd1c954665c437ad789f2 SHA512 b48896b48da2540e561fec10ae20a8b53ffc8df59c7917e7166f138b6c2ad2d3555949d9f10934886e3c6d5a062e20460e985c064b1502a3951149265c332956 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 diff --git a/net-proxy/sshuttle/sshuttle-1.3.0.ebuild b/net-proxy/sshuttle/sshuttle-1.3.0.ebuild new file mode 100644 index 000000000000..925f9ca23dc8 --- /dev/null +++ b/net-proxy/sshuttle/sshuttle-1.3.0.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} +# Default to generating docs (inc. man pages) if no prebuilt; overridden later +SSHUTTLE_DOCS_USEFLAG="+doc" + +DISTUTILS_USE_PEP517=poetry +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 +}