headplane

LOW
maintainer mys_721tx 0 votes scanned 2026-09-23 03:39:22.340916
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: Yishen Miao <mys721tx@gmail.com>
2
3pkgname=headplane
4pkgver=0.7.1
5pkgrel=1
6pkgdesc='A feature-complete web UI for Headscale'
7arch=('x86_64' 'aarch64')
8url='https://headplane.net'
9license=('MIT')
10depends=('nodejs-lts-krypton>=24.2')
11makedepends=('go>=2:1.26.6' 'npm' 'pnpm' 'patch')
12optdepends=('headscale: the coordination server Headplane manages')
13backup=('etc/headplane/config.yaml')
14source=("$pkgname-$pkgver.tar.gz::https://github.com/tale/headplane/archive/refs/tags/v$pkgver.tar.gz"
15 'headplane.service'
16 'headplane.sh'
17 'headplane.sysusers'
18 'headplane.tmpfiles')
19sha256sums=('d9c963f195e91929bd194d8c9672932fe07b55192c05c4415f3d6900c4d18374'
20 '3e22a9a99e12bb2ba873d6ade226933aedcc00b40b2188505667a29a508fdc88'
21 '9562f2eb22889deb5694bcba3ecfb0027e498400cbe322b65492b4433b20aaba'
22 'dec16ccceb64cda48b4effb35baad87db4960b634fe1bb985011db971289af1e'
23 'b1ffab047a92ffd1f68c7ffd8ff3b480fd1cc32e46a33770d0082c11b31f51aa')
24
25_setgoenv() {
26 export GOTOOLCHAIN=local
27 export GOPATH="$srcdir/gopath"
28 export GOMODCACHE="$srcdir/gopath/pkg/mod"
29 export GOFLAGS=-modcacherw
30}
31
32prepare() {
33 cd "$pkgname-$pkgver"
34
35 sed -i 's|/usr/libexec/headplane/agent|/usr/lib/headplane/agent|' \
36 app/server/config/config-schema.ts
37
38 cp config.example.yaml config.arch.yaml
39 sed -i \
40 -e 's|^ url: "http://headscale:5000"| url: "http://127.0.0.1:8080"|' \
41 -e 's|^ config_path: | # config_path: |' \
42 -e 's|^ cookie_secret: .*| cookie_secret_path: "/etc/headplane/cookie_secret"|' \
43 config.arch.yaml
44
45 _setgoenv
46 go mod download
47}
48
49build() {
50 cd "$pkgname-$pkgver"
51 _setgoenv
52
53 # SSH wasm
54 go mod vendor
55 patch -d vendor/tailscale.com -p1 < patches/tailscale-netcheck-derp-port.patch
56 mkdir -p public
57 cp "$(go env GOROOT)/lib/wasm/wasm_exec.js" public/wasm_exec.js
58 CGO_ENABLED=0 GOOS=js GOARCH=wasm \
59 go build -mod=vendor -trimpath -ldflags '-s -w' \
60 -tags "$(cat cmd/hp_ssh/build-tags.txt)" \
61 -o public/hp_ssh.wasm ./cmd/hp_ssh
62 rm -rf vendor
63
64 # agent
65 export CGO_CPPFLAGS="$CPPFLAGS" CGO_CFLAGS="$CFLAGS" \
66 CGO_CXXFLAGS="$CXXFLAGS" CGO_LDFLAGS="$LDFLAGS"
67 GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw' \
68 go build -ldflags '-linkmode=external' -o hp_agent ./cmd/hp_agent
69
70 # web app
71 pnpm install --frozen-lockfile --store-dir "$srcdir/pnpm-store"
72 HEADPLANE_VERSION="$pkgver" pnpm run build
73
74 find build -name '*.map' -delete
75 sed -i "s|$srcdir/$pkgname-$pkgver|/usr/share/headplane|g" build/server/index.js
76}
77
78package() {
79 install -Dm755 headplane.sh "$pkgdir/usr/bin/headplane"
80 install -Dm644 headplane.service "$pkgdir/usr/lib/systemd/system/headplane.service"
81 install -Dm644 headplane.sysusers "$pkgdir/usr/lib/sysusers.d/headplane.conf"
82 install -Dm644 headplane.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/headplane.conf"
83
84 cd "$pkgname-$pkgver"
85
86 install -dm755 "$pkgdir/usr/share/headplane"
87 cp -r build drizzle "$pkgdir/usr/share/headplane/"
88
89 install -Dm755 hp_agent "$pkgdir/usr/lib/headplane/agent"
90 install -Dm644 config.arch.yaml "$pkgdir/etc/headplane/config.yaml"
91 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
92}
93

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 03:39:22 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