-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
teldra
committed
Oct 10, 2022
1 parent
dbf6f0a
commit 36a4723
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |