summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Holden2022-01-30 04:18:09 +0100
committerJoe Holden2022-01-30 04:18:09 +0100
commit799ff170730363a317de855dd9198db219d669ad (patch)
tree53db0ecbde474c175738316ef68531b1a192ed51
parentd63848d586c1e2aa0fa11e4e1e656d8571cf32a1 (diff)
downloadaur-799ff170730363a317de855dd9198db219d669ad.tar.gz
changes suggested by @zotan
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD5
-rw-r--r--headscale.service1
3 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b9b5c8cc637..3c99c0742b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = headscale
pkgdesc = An open source, self-hosted implementation of the Tailscale coordination server.
pkgver = 0.12.3
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/juanfont/headscale
arch = any
license = BSD
@@ -10,9 +10,10 @@ pkgbase = headscale
optdepends = wireguard-tools: CLI tools for generating keys
optdepends = postgresql: alternative database provider
conflicts = headscale-git
+ backup = etc/headscale/config.yaml
source = headscale-0.12.3.tar.gz::https://github.com/juanfont/headscale/archive/refs/tags/v0.12.3.tar.gz
source = headscale.service
sha256sums = db71f07d360731b860f3b28de2283a08722f9398b36bcb99f77ac62beb0f9827
- sha256sums = db54439a60d6efdc812bc9d1cbe9fecc1d7134398a75f88927b561ebcb8d5cba
+ sha256sums = 000457ad0cfaca8513c0f1be5b0a04beb673576e019c7184e5fb3a78e57738ab
pkgname = headscale
diff --git a/PKGBUILD b/PKGBUILD
index 8b86fdfb761..f4bfd38b64e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=headscale
pkgver=0.12.3
-pkgrel=1
+pkgrel=2
pkgdesc="An open source, self-hosted implementation of the Tailscale coordination server."
arch=('any')
url="https://github.com/juanfont/headscale"
@@ -12,13 +12,14 @@ optdepends=(
'postgresql: alternative database provider'
)
conflicts=("${pkgname}-git")
+backup=("etc/${pkgname}/config.yaml")
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/juanfont/headscale/archive/refs/tags/v${pkgver}.tar.gz"
'headscale.service'
)
sha256sums=('db71f07d360731b860f3b28de2283a08722f9398b36bcb99f77ac62beb0f9827'
- 'db54439a60d6efdc812bc9d1cbe9fecc1d7134398a75f88927b561ebcb8d5cba')
+ '000457ad0cfaca8513c0f1be5b0a04beb673576e019c7184e5fb3a78e57738ab')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
diff --git a/headscale.service b/headscale.service
index 77bd210dcf9..8645af4c8b6 100644
--- a/headscale.service
+++ b/headscale.service
@@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
RemainAfterExit=yes
+Environment=GIN_MODE=release
ExecStart=/usr/bin/headscale serve
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure