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 10, 2022
1 parent dbf6f0a commit 36a4723
Show file tree
Hide file tree
Showing 2 changed files with 32 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}"
27 changes: 27 additions & 0 deletions srcpkgs/headscale/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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="/etc/headscale 0750 _headscale _headscale
/var/lib/headscale 0750 _headscale _headscale
/var/run/headscale 0750 _headscale _headscale"
system_accounts="_headscale _headscale"
_headscale_homedir="/var/lib/headscale"

post_install() {
vsv headscale
vsed -i 's/headscale.sock/headscale\/headscale.sock/' config-example.yaml
vsconf config-example.yaml
vlicense LICENSE
}

0 comments on commit 36a4723

Please sign in to comment.