net-proxy/tun2socks - 2.6.0 (gentoo-zh)

Search

Package Information

Description:
tun2socks - powered by gVisor TCP/IP stack
Homepage:
https://github.com/xjasonlyu/tun2socks
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.6.0 8 ~amd64 0
View Raw Ebuild
# 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
}

Dependencies

BDEPEND

>=dev-lang/go-1.25.0

Manifest for 2.6.0

Type File Size Source URLs
DIST tun2socks-2.6.0-vendor.tar.xz 1329244 bytes https://github.com/gentoo-zh-drafts/tun2socks/releases/download/v2.6.0/tun2socks-2.6.0-vendor.tar.xz
DIST tun2socks-2.6.0.tar.gz 374193 bytes https://github.com/xjasonlyu/tun2socks/archive/refs/tags/v2.6.0.tar.gz