1
0

net-proxy/sing-box: add 1.10.0_beta4, drop 1.9.0_rc19

This commit is contained in:
Puqns67 2024-08-24 12:23:32 +08:00
parent bd1c0fd4ad
commit 123c25608d
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
2 changed files with 14 additions and 5 deletions

View File

@ -1,2 +1,3 @@
DIST sing-box-1.9.0_rc19-vendor.tar.xz 5244232 BLAKE2B ee0401253bcd494455baaf1e4180f10b97d53cca51b7add5666852301828ea9066bcaa530a3de926310e2aed35f7224922f6befb506e9e4fff2392afda360dba SHA512 6bbe993497a9a1849888205c8549c198b757a962e2c6147c124eabe564e9bc7e4b34f2ad027e1e08df9826f5f06bddd6aa4aaa103fb508536540dadb91c4d782
DIST sing-box-1.9.0_rc19.tar.gz 366049 BLAKE2B 45a236cbe5a89b950c9b32596815047b47b4938249c962cee6ad7990647d5479b3d26f997aecab8e8e4723ee33f0174d57ae35bed22f44d933ae341ce5e7eeca SHA512 9f852004559034fee5c5224d3f637dc2005f7c12def043f64e01489dee7130d8a35437e0df2a60bd14a31dfbcd17e8780b5f061e365e5161804a3bb7720cfc00
DIST sing-box-1.10.0_beta4-deps.tar.xz 220579644 BLAKE2B f0655feece8cf4f853bf2b905fd5b4f610ffa018dfd0bcdec07d274d9ab1a24c2b346d278320b09dcb1990be1b63d08e35a2d3b6c971fe0bf0500a1c32c005c5 SHA512 5667c9ebe65de41b9996f1707784bd9a61ef110f234c88db69923ba44100647d474fc78a2a354be1e6e78ed96906889a213682ba31bd0f06813443bb4d9a4d63
DIST sing-box-1.10.0_beta4-vendor.tar.xz 5354272 BLAKE2B 405934247a4927fa4d534a48d6303dbb24ecf93ac8cc5d9acfe03bf385fe1f2adf8a26f4386ef642fd2b2b07bd4d0380a221185d1e39901b28acdb5c40a12399 SHA512 97d4501f5a89d695171f39a640c1e91a25cab7c7a36a89b95102be0d0a77d6c66542c4fffec79b03d2eccb85d11183bef4da92fa8aff04331605ee965bc6a47a
DIST sing-box-1.10.0_beta4.tar.gz 389593 BLAKE2B 22c12f58f0812548bc15f666de47a2edb2db8b12762f674b878f2fbdf50d4c8aed2319f89559a6ed98a2a8ed0db68bbab101cacd32704095426a1fb17abc03ba SHA512 488dd49623166c673809b4f448a6d391392950f29a6132ddd462b1ffec99dee3b2dc78bee44aaa56b953e3f285412511dd2c65b6c0e361163f96f37ae4214ead

View File

@ -12,8 +12,11 @@ _PV="${_PV/rc/rc.}"
DESCRIPTION="The universal proxy platform."
HOMEPAGE="https://sing-box.sagernet.org/ https://github.com/SagerNet/sing-box"
SRC_URI="https://github.com/SagerNet/sing-box/archive/refs/tags/v${_PV}.tar.gz -> ${P}.tar.gz
https://github.com/Puqns67/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz"
SRC_URI="
https://github.com/SagerNet/sing-box/archive/refs/tags/v${_PV}.tar.gz -> ${P}.tar.gz
tor? ( https://github.com/Puqns67/gentoo-deps/releases/download/${P}/${P}-deps.tar.xz )
!tor? ( https://github.com/Puqns67/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz )
"
S="${WORKDIR}/${PN}-${_PV}"
@ -25,6 +28,11 @@ IUSE="+quic grpc +dhcp +wireguard +ech +utls +reality +acme +clash-api v2ray-api
RESTRICT="mirror"
BDEPEND="
ech? ( >=dev-lang/go-1.21 )
!ech? ( >=dev-lang/go-1.20 )
"
src_compile() {
TAGS=""
if use quic; then TAGS+="with_quic,"; fi
@ -42,7 +50,7 @@ src_compile() {
TAGS="${TAGS%,}"
ego build -o sing-box -trimpath -tags "${TAGS}" \
-ldflags "-s -w -X 'github.com/sagernet/sing-box/constant.Version=${PV}' -buildid=" \
-ldflags "-s -w -X 'github.com/sagernet/sing-box/constant.Version=${PV}'" \
./cmd/sing-box
}