net-proxy/tun2socks: new package, add 2.6.0

Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
This commit is contained in:
peeweep authored and jinqiang zhang committed 2025-10-28 17:39:28 +08:00
1 parent 73ebeaf9cb
commit 0c40fcc06d
3 files changed
+44

No files matched your search

+2
View File
@@ -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
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>peeweep@0x0.ee</email>
<name>jinqiang zhang</name>
</maintainer>
<upstream>
<remote-id type="github">xjasonlyu/tun2socks</remote-id>
</upstream>
</pkgmetadata>
@@ -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
}