Skip to content

Commit

Permalink
New package: headscale-0.16.4
Browse files Browse the repository at this point in the history
  • Loading branch information
teldra committed Oct 12, 2022
1 parent 0ca35e9 commit 3d07f9c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srcpkgs/headscale/files/headscale/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

[ -r conf ] && . ./conf

exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
33 changes: 33 additions & 0 deletions srcpkgs/headscale/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Template file for 'headscale'
pkgname=headscale
version=0.16.4
revision=1
build_style=go
go_import_path=github.com/juanfont/headscale
go_package="cmd/headscale/headscale.go"
go_ldflags="-X ${go_import_path}/cmd/headscale/cli.Version=${version}"
short_desc="Self-hosted implementation of the Tailscale control server"
maintainer="teldra <teldra@rotce.de>"
license="BSD-3-Clause"
homepage="https://github.com/juanfont/headscale"
changelog="https://raw.githubusercontent.com/juanfont/headscale/main/CHANGELOG.md"
distfiles="https://github.com/juanfont/headscale/archive/refs/tags/v${version}.tar.gz"
checksum=0395478f9dde68aa8ca23be8df6ff636d47166981d0995e4e31a8c7db12df8e8
make_dirs="/var/run/headscale 0770 _headscale _headscale"
system_accounts="_headscale"
_headscale_homedir="/var/lib/headscale"
conf_files="/etc/headscale/config.yaml"

post_extract() {
vsed -e 's|/var/run/headscale.sock|/var/run/headscale/headscale.sock|' \
-e 's/disable_check_updates: false/disable_check_updates: true/' \
-i config-example.yaml
}

post_install() {
vsv headscale
vmkdir /etc/headscale
vinstall config-example.yaml 755 etc/headscale config.yaml
vsconf config-example.yaml
vlicense LICENSE
}

0 comments on commit 3d07f9c

Please sign in to comment.