Skip to content

Commit

Permalink
sing-box: update to 1.11.0
Browse files Browse the repository at this point in the history
- Clean up code

Co-authored-by: yidaduizuoye (@CAB233)
  • Loading branch information
aosc-buildit-bot authored and CAB233 committed Jan 31, 2025
1 parent e04e763 commit 5aeb218
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 37 deletions.
15 changes: 15 additions & 0 deletions app-network/sing-box/autobuild/beyond
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
abinfo "Installing systemd services..."
install -Dvm644 "$SRCDIR"/release/config/sing-box.service \
-t "$PKGDIR"/usr/lib/systemd/system
install -Dvm644 "$SRCDIR"/release/config/[email protected] \
-t "$PKGDIR"/usr/lib/systemd/system
install -Dvm644 "$SRCDIR"/release/config/config.json \
-t "$PKGDIR"/etc/sing-box

abinfo "Installing completion files ..."
mkdir -pv "$PKGDIR"/usr/share/bash-completion/completions
"$PKGDIR"/usr/bin/sing-box completion bash > "$PKGDIR"/usr/share/bash-completion/completions/sing-box
mkdir -pv "$PKGDIR"/usr/share/zsh/site-functions
"$PKGDIR"/usr/bin/sing-box completion zsh > "$PKGDIR"/usr/share/zsh/site-functions/_sing-box
mkdir -pv "$PKGDIR"/usr/share/fish/vendor_completions.d
"$PKGDIR"/usr/bin/sing-box completion fish > "$PKGDIR"/usr/share/fish/vendor_completions.d/sing-box.fish
25 changes: 0 additions & 25 deletions app-network/sing-box/autobuild/build

This file was deleted.

4 changes: 4 additions & 0 deletions app-network/sing-box/autobuild/defines
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ PKGDEP="glibc"
BUILDDEP="go"

ABSPLITDBG=0
GO_BUILD_AFTER=(
-tags "with_gvisor,with_quic,with_wireguard,with_grpc,with_ech,with_utls,with_reality_server,with_acme,with_dhcp,with_clash_api,with_v2ray_api"
"$SRCDIR"/cmd/sing-box
)
12 changes: 2 additions & 10 deletions app-network/sing-box/autobuild/prepare
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
abinfo "Enabling trimpath for a reproducible build ..."
export GOFLAGS="${GOFLAGS} -trimpath"

abinfo "Setting other GOFLAGS ..."
export GOFLAGS="${GOFLAGS} -mod=readonly -modcacherw"

if ! ab_match_arch loongson3; then
abinfo "Enabling buildmode=pie ..."
export GOFLAGS="${GOFLAGS} -buildmode=pie"
fi
abinfo "Setting GO_LDFLAGS ..."
GO_LDFLAGS+=("-X 'github.com/sagernet/sing-box/constant.Version=$PKGVER'")
4 changes: 2 additions & 2 deletions app-network/sing-box/spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VER=1.10.7
SRCS="git::commit=tags/v$VER;copy-repo=true::https://github.com/SagerNet/sing-box"
VER=1.11.0
SRCS="git::commit=tags/v$VER::https://github.com/SagerNet/sing-box"
CHKSUMS="SKIP"
CHKUPDATE="anitya::id=372359"

0 comments on commit 5aeb218

Please sign in to comment.