diff --git a/net-proxy/tun2socks/Manifest b/net-proxy/tun2socks/Manifest new file mode 100644 index 0000000000..d1fd318ef1 --- /dev/null +++ b/net-proxy/tun2socks/Manifest @@ -0,0 +1,2 @@ +DIST tun2socks-2.6.0-vendor.tar.xz 1329244 BLAKE2B 97d8b1dc090df594f7d76887961cb32cc2b125f4f696ef7173cc4425b1929f59f19d30001e799bdab8c64f9c1d3dd9ce7b36824a95b06a2f8203e10219662b6e SHA512 f78f808dfbc45747fe45deba3e0d22614099ca2205afe6564a47755adb20e8a5a9315043f420500caef91b36b3d9ef485b3dfe998a6e920bb44a801da648f097 +DIST tun2socks-2.6.0.tar.gz 374193 BLAKE2B fda41de6ad301e84cae06059cfc518bfcff37ce544ab6ea239af257b15e22911fad91c3b63d01a04121a92b8c21e59713cda14b91051fb5f985b1a0051ebd736 SHA512 3d9900c48dc38d35fac7bf763a4950a2b08eb4805994e6ae151db892fb841a3309ec61d4173d5a12111d8d5eca3d8a1f9df5d7dce0ee3b14cb0074885f6a17f5 diff --git a/net-proxy/tun2socks/metadata.xml b/net-proxy/tun2socks/metadata.xml new file mode 100644 index 0000000000..ea07cde878 --- /dev/null +++ b/net-proxy/tun2socks/metadata.xml @@ -0,0 +1,11 @@ + + + + + peeweep@0x0.ee + jinqiang zhang + + + xjasonlyu/tun2socks + + diff --git a/net-proxy/tun2socks/tun2socks-2.6.0.ebuild b/net-proxy/tun2socks/tun2socks-2.6.0.ebuild new file mode 100644 index 0000000000..a234510cb2 --- /dev/null +++ b/net-proxy/tun2socks/tun2socks-2.6.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="tun2socks - powered by gVisor TCP/IP stack" +HOMEPAGE="https://github.com/xjasonlyu/tun2socks" +SRC_URI=" + https://github.com/xjasonlyu/tun2socks/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/gentoo-zh-drafts/tun2socks/releases/download/v${PV}/${P}-vendor.tar.xz +" + +COMMIT_ID="4127937e" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=">=dev-lang/go-1.25.0" + +src_compile() { + ego build -o tun2socks -ldflags " + -X 'github.com/xjasonlyu/tun2socks/v2/internal/version.Version=${PV}' + -X 'github.com/xjasonlyu/tun2socks/v2/internal/version.GitCommit=${COMMIT_ID}' + " +} + +src_install() { + dobin tun2socks +}