Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New Package: headscale-0.16.4
@ 2022-10-10 14:27 teldra
  2022-10-10 14:39 ` teldra
                   ` (30 more replies)
  0 siblings, 31 replies; 32+ messages in thread
From: teldra @ 2022-10-10 14:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]

There is a new pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New Package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 1997 bytes --]

From c98710da79fa974ce06d7b310f4e0daf18241c80 Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New Package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 +++++
 srcpkgs/headscale/template            | 27 +++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..52981f35c016
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -0,0 +1,27 @@
+# Template file for 'headscale'
+pkgname=headscale
+version=0.16.4
+revision=1
+build_style=gnu-makefile
+hostmakedepends="go"
+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"
+noverifyrdeps=yes
+
+do_install() {
+	vbin headscale
+	vsv headscale
+	vsed -i 's/headscale.sock/headscale\/headscale.sock/' config-example.yaml
+	vsconf config-example.yaml
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
@ 2022-10-10 14:39 ` teldra
  2022-10-10 14:42 ` paper42
                   ` (29 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-10 14:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

New comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#issuecomment-1273419748

Comment:
Crosscompiling fails, because it compiles for host? How do I circumvent this?

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
  2022-10-10 14:39 ` teldra
@ 2022-10-10 14:42 ` paper42
  2022-10-10 15:01 ` teldra
                   ` (28 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: paper42 @ 2022-10-10 14:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#issuecomment-1273423445

Comment:
use the go build style

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
  2022-10-10 14:39 ` teldra
  2022-10-10 14:42 ` paper42
@ 2022-10-10 15:01 ` teldra
  2022-10-10 15:06 ` paper42
                   ` (27 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-10 15:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#issuecomment-1273449373

Comment:
> use the go build style

I tried but I don't get a binary. At least I don't find any

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (2 preceding siblings ...)
  2022-10-10 15:01 ` teldra
@ 2022-10-10 15:06 ` paper42
  2022-10-10 22:12 ` [PR PATCH] [Updated] " teldra
                   ` (26 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: paper42 @ 2022-10-10 15:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#issuecomment-1273456431

Comment:
I tried to package headscale, but didn't end up finishing it, feel free to get inspiration from here: 29f7be7ad2a8b362b584791c7cdbdf82c62e19b9

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (3 preceding siblings ...)
  2022-10-10 15:06 ` paper42
@ 2022-10-10 22:12 ` teldra
  2022-10-10 22:13 ` teldra
                   ` (25 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-10 22:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New Package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2090 bytes --]

From 3d83af092ba72ea27fa015dffd8f94ecd7f2a2fd Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New Package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 +++++
 srcpkgs/headscale/template            | 27 +++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..620236726e20
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -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
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (4 preceding siblings ...)
  2022-10-10 22:12 ` [PR PATCH] [Updated] " teldra
@ 2022-10-10 22:13 ` teldra
  2022-10-10 22:23 ` teldra
                   ` (24 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-10 22:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New Package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2090 bytes --]

From 9bc19385f93109364e64044603c407c8126a44af Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New Package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 +++++
 srcpkgs/headscale/template            | 27 +++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..620236726e20
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -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
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (5 preceding siblings ...)
  2022-10-10 22:13 ` teldra
@ 2022-10-10 22:23 ` teldra
  2022-10-10 22:38 ` [PR PATCH] [Updated] " teldra
                   ` (23 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-10 22:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

New comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#issuecomment-1273870264

Comment:
Thank you @paper42, that did the trick!

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New Package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (6 preceding siblings ...)
  2022-10-10 22:23 ` teldra
@ 2022-10-10 22:38 ` teldra
  2022-10-12  5:05 ` [PR REVIEW] New package: headscale-0.16.4 0x5c
                   ` (22 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-10 22:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New Package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2090 bytes --]

From 36a472334947695c626a4da022acaac2db574ac9 Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 +++++
 srcpkgs/headscale/template            | 27 +++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..620236726e20
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -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
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (10 preceding siblings ...)
  2022-10-12  5:05 ` 0x5c
@ 2022-10-12  5:05 ` 0x5c
  2022-10-12  6:38 ` teldra
                   ` (18 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: 0x5c @ 2022-10-12  5:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r992823031

Comment:
This should be handled with the `system_accounts` feature 

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (7 preceding siblings ...)
  2022-10-10 22:38 ` [PR PATCH] [Updated] " teldra
@ 2022-10-12  5:05 ` 0x5c
  2022-10-12  5:05 ` 0x5c
                   ` (21 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: 0x5c @ 2022-10-12  5:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r992841093

Comment:
This is not the way to specify user:primary_group. Instead, that line specifies a `_headscale` user twice.

Here's what the manual says about setting a primary group
> `<account>_pgroup` to set the primary group, by default primary group is set to `<account>`

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (9 preceding siblings ...)
  2022-10-12  5:05 ` 0x5c
@ 2022-10-12  5:05 ` 0x5c
  2022-10-12  5:05 ` 0x5c
                   ` (19 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: 0x5c @ 2022-10-12  5:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r992996438

Comment:
In the headscale setup instructions, this directory is not created with any permissions that would allow writing by the headscale-specific user. Instead, they do a simple `mkdir -p /etc/headscale` call as root, creating a directory where other users and groups cannot write. This line should be removed, and replaced by a `mkdir` call in `post_install()`.

A conf file should be placed in `/etc/headscale` in `post_install()`, either containing the sample conf or a comment telling the user to look at `/usr/share/examples/headscale/config.yaml`. Either way keep the vsconf line.
The conf file should be listed in `conf_files`, refer to the manual.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (8 preceding siblings ...)
  2022-10-12  5:05 ` [PR REVIEW] New package: headscale-0.16.4 0x5c
@ 2022-10-12  5:05 ` 0x5c
  2022-10-12  5:05 ` 0x5c
                   ` (20 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: 0x5c @ 2022-10-12  5:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r992824300

Comment:
Why is this one necessary? It is nowhere to be found in the linux setup instructions in the headscale docs

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (11 preceding siblings ...)
  2022-10-12  5:05 ` 0x5c
@ 2022-10-12  6:38 ` teldra
  2022-10-12  6:38 ` teldra
                   ` (17 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  6:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993051315

Comment:
Removed redundant word.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (12 preceding siblings ...)
  2022-10-12  6:38 ` teldra
@ 2022-10-12  6:38 ` teldra
  2022-10-12  6:56 ` teldra
                   ` (16 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  6:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993051437

Comment:
I removed the line.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (13 preceding siblings ...)
  2022-10-12  6:38 ` teldra
@ 2022-10-12  6:56 ` teldra
  2022-10-12  6:58 ` teldra
                   ` (15 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  6:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993064530

Comment:
`headscale` creates a sock file in this dir. (Please refer to the vsed statement in `post_extract` and maybe the config.yaml.)
I think, headscale is originally not intended to run as unprivileged user. I circumvent this with the creation of a headscale owned folder.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (14 preceding siblings ...)
  2022-10-12  6:56 ` teldra
@ 2022-10-12  6:58 ` teldra
  2022-10-12  6:58 ` teldra
                   ` (14 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  6:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993065857

Comment:
I try to maximize the ootb experience.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (15 preceding siblings ...)
  2022-10-12  6:58 ` teldra
@ 2022-10-12  6:58 ` teldra
  2022-10-12  6:59 ` [PR PATCH] [Updated] " teldra
                   ` (13 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  6:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993066355

Comment:
Added `vinstall` of the conf file.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (16 preceding siblings ...)
  2022-10-12  6:58 ` teldra
@ 2022-10-12  6:59 ` teldra
  2022-10-12  6:59 ` teldra
                   ` (12 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  6:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2231 bytes --]

From b46605697fa027dd31c6cc1e27f6ef424cc1c2ef Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 ++++
 srcpkgs/headscale/template            | 33 +++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..bae66902415b
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -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 0750 _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 750 /etc/headscale config.yaml
+	vsconf config-example.yaml
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (17 preceding siblings ...)
  2022-10-12  6:59 ` [PR PATCH] [Updated] " teldra
@ 2022-10-12  6:59 ` teldra
  2022-10-12  7:00 ` teldra
                   ` (11 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  6:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2231 bytes --]

From eaf5c00b2b27aaeb35796f3968645ac4a86f94b4 Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 ++++
 srcpkgs/headscale/template            | 33 +++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..bae66902415b
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -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 0750 _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 750 /etc/headscale config.yaml
+	vsconf config-example.yaml
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (18 preceding siblings ...)
  2022-10-12  6:59 ` teldra
@ 2022-10-12  7:00 ` teldra
  2022-10-12  7:09 ` teldra
                   ` (10 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  7:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2230 bytes --]

From f3a8b2e31d7cc90017a0a2db5d0a92bf5a2007f4 Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 ++++
 srcpkgs/headscale/template            | 33 +++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..e1afa9e07aba
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -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 750 etc/headscale config.yaml
+	vsconf config-example.yaml
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (19 preceding siblings ...)
  2022-10-12  7:00 ` teldra
@ 2022-10-12  7:09 ` teldra
  2022-10-12  7:28 ` [PR REVIEW] " teldra
                   ` (9 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  7:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2230 bytes --]

From 3d07f9c9068e223ca2ca44fe64e9f6b0e51933ca Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  5 ++++
 srcpkgs/headscale/template            | 33 +++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..ef8b4ef39702
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..8b4f7ff6450d
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -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
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (20 preceding siblings ...)
  2022-10-12  7:09 ` teldra
@ 2022-10-12  7:28 ` teldra
  2022-10-12  7:35 ` teldra
                   ` (8 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  7:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993090781

Comment:
Anyhow, this is not created.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (21 preceding siblings ...)
  2022-10-12  7:28 ` [PR REVIEW] " teldra
@ 2022-10-12  7:35 ` teldra
  2022-10-12  7:40 ` teldra
                   ` (7 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  7:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993096995

Comment:
This folder is not created with the `system_accounts` feature.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (22 preceding siblings ...)
  2022-10-12  7:35 ` teldra
@ 2022-10-12  7:40 ` teldra
  2022-10-13  3:53 ` 0x5c
                   ` (6 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-12  7:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r993090781

Comment:
Anyhow, this is not created.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (23 preceding siblings ...)
  2022-10-12  7:40 ` teldra
@ 2022-10-13  3:53 ` 0x5c
  2022-10-13  4:00 ` 0x5c
                   ` (5 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: 0x5c @ 2022-10-13  3:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r994088518

Comment:
Sorry about that, I misread the flags passed to useradd in the trigger and their help text, you indeed have to create the homedir manually in make_dirs.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (24 preceding siblings ...)
  2022-10-13  3:53 ` 0x5c
@ 2022-10-13  4:00 ` 0x5c
  2022-10-13  4:23 ` 0x5c
                   ` (4 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: 0x5c @ 2022-10-13  4:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r994091204

Comment:
Ok yeah that dir is needed.

I think systemd (which they kinda design for) makes `/var/run` writable.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR REVIEW] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (25 preceding siblings ...)
  2022-10-13  4:00 ` 0x5c
@ 2022-10-13  4:23 ` 0x5c
  2022-10-13  6:29 ` [PR PATCH] [Updated] " teldra
                   ` (3 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: 0x5c @ 2022-10-13  4:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#discussion_r994100169

Comment:
Just realised that `/var/run` is a symlink to `/run`, a tmpfs; the directory will not survive a reboot.

The [manual](https://github.com/void-linux/void-packages/blob/master/Manual.md#writing-runit-services) says to create the dir in the service file.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (26 preceding siblings ...)
  2022-10-13  4:23 ` 0x5c
@ 2022-10-13  6:29 ` teldra
  2022-10-13  6:31 ` teldra
                   ` (2 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-13  6:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2380 bytes --]

From d3e23ed81a3b3a3b6faf0c1acb39017f49a30d3f Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  7 ++++++
 srcpkgs/headscale/template            | 34 +++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..d2c75ff1731d
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ ! -d /run/headscale ] && mkdir -p /run/headscale && chown _headscale:_headscale /run/headscale
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..468a03f45792
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -0,0 +1,34 @@
+# 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
+	/var/lib/headscale 0750 _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
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Updated] New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (27 preceding siblings ...)
  2022-10-13  6:29 ` [PR PATCH] [Updated] " teldra
@ 2022-10-13  6:31 ` teldra
  2023-01-12  2:29 ` github-actions
  2023-01-27  1:59 ` [PR PATCH] [Closed]: " github-actions
  30 siblings, 0 replies; 32+ messages in thread
From: teldra @ 2022-10-13  6:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is an updated pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages new-headscale
https://github.com/void-linux/void-packages/pull/39864

New package: headscale-0.16.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/39864.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-headscale-39864.patch --]
[-- Type: text/x-diff, Size: 2371 bytes --]

From 5a5f56ccfbd677005afd85e3c3dfc9c2a69ae4c8 Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Mon, 10 Oct 2022 07:22:40 +0200
Subject: [PATCH] New package: headscale-0.16.4

---
 srcpkgs/headscale/files/headscale/run |  7 ++++++
 srcpkgs/headscale/template            | 34 +++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/headscale/files/headscale/run
 create mode 100644 srcpkgs/headscale/template

diff --git a/srcpkgs/headscale/files/headscale/run b/srcpkgs/headscale/files/headscale/run
new file mode 100644
index 000000000000..775c393a7d6b
--- /dev/null
+++ b/srcpkgs/headscale/files/headscale/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ ! -d /run/headscale ] && install -d -m0700 -o _headscale -g _headscale /run/headscale
+
+[ -r conf ] && . ./conf
+
+exec chpst -u _headscale:_headscale /usr/bin/headscale serve -c "${CONFIG:-/etc/headscale/config.yaml}"
diff --git a/srcpkgs/headscale/template b/srcpkgs/headscale/template
new file mode 100644
index 000000000000..468a03f45792
--- /dev/null
+++ b/srcpkgs/headscale/template
@@ -0,0 +1,34 @@
+# 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
+	/var/lib/headscale 0750 _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
+}

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (28 preceding siblings ...)
  2022-10-13  6:31 ` teldra
@ 2023-01-12  2:29 ` github-actions
  2023-01-27  1:59 ` [PR PATCH] [Closed]: " github-actions
  30 siblings, 0 replies; 32+ messages in thread
From: github-actions @ 2023-01-12  2:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/39864#issuecomment-1379733305

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PR PATCH] [Closed]: New package: headscale-0.16.4
  2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
                   ` (29 preceding siblings ...)
  2023-01-12  2:29 ` github-actions
@ 2023-01-27  1:59 ` github-actions
  30 siblings, 0 replies; 32+ messages in thread
From: github-actions @ 2023-01-27  1:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

There's a closed pull request on the void-packages repository

New package: headscale-0.16.4
https://github.com/void-linux/void-packages/pull/39864

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2023-01-27  1:59 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10 14:27 [PR PATCH] New Package: headscale-0.16.4 teldra
2022-10-10 14:39 ` teldra
2022-10-10 14:42 ` paper42
2022-10-10 15:01 ` teldra
2022-10-10 15:06 ` paper42
2022-10-10 22:12 ` [PR PATCH] [Updated] " teldra
2022-10-10 22:13 ` teldra
2022-10-10 22:23 ` teldra
2022-10-10 22:38 ` [PR PATCH] [Updated] " teldra
2022-10-12  5:05 ` [PR REVIEW] New package: headscale-0.16.4 0x5c
2022-10-12  5:05 ` 0x5c
2022-10-12  5:05 ` 0x5c
2022-10-12  5:05 ` 0x5c
2022-10-12  6:38 ` teldra
2022-10-12  6:38 ` teldra
2022-10-12  6:56 ` teldra
2022-10-12  6:58 ` teldra
2022-10-12  6:58 ` teldra
2022-10-12  6:59 ` [PR PATCH] [Updated] " teldra
2022-10-12  6:59 ` teldra
2022-10-12  7:00 ` teldra
2022-10-12  7:09 ` teldra
2022-10-12  7:28 ` [PR REVIEW] " teldra
2022-10-12  7:35 ` teldra
2022-10-12  7:40 ` teldra
2022-10-13  3:53 ` 0x5c
2022-10-13  4:00 ` 0x5c
2022-10-13  4:23 ` 0x5c
2022-10-13  6:29 ` [PR PATCH] [Updated] " teldra
2022-10-13  6:31 ` teldra
2023-01-12  2:29 ` github-actions
2023-01-27  1:59 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).