Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging
/ Packages / anubis
Commits:
3dec76da by Jan Alexander Steffens (heftig) at 2026-06-10T10:31:52+02:00
Build iplist2rule tool
- - - - -
804f386e by Jan Alexander Steffens (heftig) at 2026-06-10T10:31:55+02:00
Set Go ldflags and add pkgrel to version
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -40,14 +40,26 @@ prepare() {
build() {
cd anubis
- export CGO_CPPFLAGS="${CPPFLAGS}"
+ local ldflags=(
+ -compressdwarf=false
+ -linkmode=external
+ -X "github.com/TecharoHQ/anubis.Version=$pkgver-arch$pkgrel"
+ ) goflags=(
+ -buildmode=pie
+ -trimpath
+ -mod=readonly
+ -modcacherw
+ "\"-ldflags=${ldflags[*]}\""
+ )
+
export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
- export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ export GOFLAGS="${goflags[*]}"
- make assets
- make prebaked-build
+ make build
+ go build -o ./var/iplist2rule ./utils/cmd/iplist2rule
}
package() {
@@ -55,6 +67,7 @@ package() {
install -D var/anubis -t "$pkgdir/usr/bin"
install -D var/robots2policy "$pkgdir/usr/bin/anubis-robots2policy"
+ install -D var/iplist2rule "$pkgdir/usr/bin/anubis-iplist2rule"
install -Dm644 run/[email protected] -t "$pkgdir/usr/lib/systemd/system"
install -Dm644 run/default.env -t "$pkgdir/etc/anubis"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/anubis/-/compare/15c5613e2aad5edcd0c99de3920d1ef8aa7c0b3e...804f386e318c75e79698e4e13f4a420b87b9fb1a
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/anubis/-/compare/15c5613e2aad5edcd0c99de3920d1ef8aa7c0b3e...804f386e318c75e79698e4e13f4a420b87b9fb1a
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help