snirect

LOW
maintainer xihale 0 votes scanned 2026-08-24 13:22:51.972535
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: xihale <i@xihale.top>
2# Contributor: xihale <i@xihale.top>
3pkgname=snirect
4pkgver=0.3.2
5pkgrel=1
6pkgdesc='Local HTTP/HTTPS proxy that rewrites TLS SNI by rules to bypass SNI-based censorship'
7arch=('x86_64' 'aarch64')
8url='https://github.com/xihale/snirect'
9license=('MIT')
10depends=('glibc')
11makedepends=('go')
12optdepends=(
13 'ca-certificates: HTTPS MITM decryption'
14 'nss: Firefox certificate store integration'
15)
16provides=('snirect')
17conflicts=('snirect-bin')
18source=("$pkgname-$pkgver.tar.gz::https://github.com/xihale/snirect/archive/refs/tags/v$pkgver.tar.gz")
19sha256sums=('fad938eb34724f6bf52cf788e7d500504a8af69072cc29a0eb8f66804bb6f511')
20
21prepare() {
22 # Keep the build hermetic: never let Go fetch a different toolchain.
23 export GOTOOLCHAIN=local
24 export GOPATH="$srcdir/gopath"
25 export GOCACHE="$srcdir/go-build-cache"
26}
27
28build() {
29 cd "$pkgname-$pkgver"
30 export CGO_CPPFLAGS="$CPPFLAGS"
31 export CGO_CFLAGS="$CFLAGS"
32 export CGO_CXXFLAGS="$CXXFLAGS"
33 export CGO_LDFLAGS="$LDFLAGS"
34 export GOFLAGS='-mod=readonly'
35 go build -trimpath \
36 -ldflags "-s -w -X github.com/xihale/snirect/internal/cli.Version=v$pkgver" \
37 -o snirect ./cmd/snirect
38
39 local shell
40 for shell in bash zsh fish; do
41 ./snirect completion "$shell" > "snirect.$shell"
42 done
43}
44
45package() {
46 cd "$pkgname-$pkgver"
47 install -Dm755 snirect "$pkgdir/usr/bin/snirect"
48 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
49 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
50
51 install -Dm644 snirect.bash "$pkgdir/usr/share/bash-completion/completions/snirect"
52 install -Dm644 snirect.zsh "$pkgdir/usr/share/zsh/site-functions/_snirect"
53 install -Dm644 snirect.fish "$pkgdir/usr/share/fish/vendor_completions.d/snirect.fish"
54}
55

Changes since previous scan

--- PKGBUILD @ 2026-08-24 11:22
+++ PKGBUILD @ 2026-08-24 13:22
@@ -1,7 +1,7 @@
# Maintainer: xihale <i@xihale.top>
# Contributor: xihale <i@xihale.top>
pkgname=snirect
-pkgver=0.3.0
+pkgver=0.3.2
pkgrel=1
pkgdesc='Local HTTP/HTTPS proxy that rewrites TLS SNI by rules to bypass SNI-based censorship'
arch=('x86_64' 'aarch64')
@@ -16,7 +16,7 @@
provides=('snirect')
conflicts=('snirect-bin')
source=("$pkgname-$pkgver.tar.gz::https://github.com/xihale/snirect/archive/refs/tags/v$pkgver.tar.gz")
-sha256sums=('96d226d33c50ac2d07e0c09d362515d9240758ffa011b12f738f905f74748b1e')
+sha256sums=('fad938eb34724f6bf52cf788e7d500504a8af69072cc29a0eb8f66804bb6f511')
prepare() {
# Keep the build hermetic: never let Go fetch a different toolchain.

Scan history

Scanned at (UTC)SeverityRules
2026-08-24 13:22:51 Low 1
2026-08-24 11:22:50 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion