Created attachment 234759 [details] improvements to security/headscale This patch introduces some improvements to security/headscale that others may find quite useful: 1. Patched the golang source to use `%%PREFIX%%/etc/headscale` instead of `/etc/headscale` for the configuration path. 2. Patched the included `config-example.yaml` to more closely align with FreeBSD hier(7). 3. Install this patched config to the path described in number 1 to provide a basic minimal configuration out of the box. 4. Integrate with rc(8) to support basic service enable/disable.
Comment on attachment 234759 [details] improvements to security/headscale Applied your patch portlint -A runs fine poudriere testport without errors poudriere bulk builds fine pkg, alls things in place. Thx!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=46a10c9786832983ef9b6afeebc030f8f4879bf2 commit 46a10c9786832983ef9b6afeebc030f8f4879bf2 Author: Christian McDonald <cmcdonald@netgate.com> AuthorDate: 2022-06-17 20:41:33 +0000 Commit: Ben Woods <woodsb02@FreeBSD.org> CommitDate: 2022-07-18 14:43:39 +0000 security/headscale: add rc script and minimal working config - Include rc script to enable/disable headscale service - Follow heir(7) with regards to headscale db, cache, config locations - Include a minimal configuration out of the box PR: 264744 Approved by: Michael Muenz <m.muenz@gmail.com> security/headscale/Makefile | 24 +++++++++++++++-- security/headscale/files/headscale.in (new) | 41 +++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-)
Committed - thanks Christian and Michael!