aboutsummaryrefslogtreecommitdiff
path: root/headscale/abuild
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-06-22 14:41:29 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-06-22 14:41:29 +0000
commit843c2228b0658f57c76e4e9d7381a3c3ef586c73 (patch)
treed62558bf1f686b33fe066e695851ef7b82bdbd5b /headscale/abuild
parentee24709fa36ae4352657a29faa9a299d7d199cab (diff)
downloadalicelinux-843c2228b0658f57c76e4e9d7381a3c3ef586c73.tar.gz
alicelinux-843c2228b0658f57c76e4e9d7381a3c3ef586c73.zip
Woodpecker CI deb0853528349e0b0d2fc0636dcfeb044e73b35b [SKIP CI]
Diffstat (limited to 'headscale/abuild')
-rw-r--r--headscale/abuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/headscale/abuild b/headscale/abuild
new file mode 100644
index 00000000..7a95e0f9
--- /dev/null
+++ b/headscale/abuild
@@ -0,0 +1,22 @@
+name=headscale
+version=0.29.0
+release=1
+source="https://github.com/juanfont/headscale/archive/refs/tags/v$version/$name-$version.tar.gz
+ run"
+sv="run"
+
+build() {
+ export CGO_ENABLED=0
+ export GOPATH="$SRC/.gopath"
+ mkdir -p "$GOPATH"
+
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -ldflags="-X main.version=$version" \
+ -o headscale ./cmd/headscale
+
+ install -Dm755 headscale "$PKG/usr/bin/headscale"
+ install -Dm644 config-example.yaml "$PKG/etc/headscale/config.yaml"
+ install -dm755 "$PKG/var/lib/headscale"
+}