Github messages for voidlinux
 help / color / mirror / Atom feed
From: teldra <teldra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: headscale-0.16.4
Date: Wed, 12 Oct 2022 09:09:47 +0200	[thread overview]
Message-ID: <20221012070947.-5EISjdRwYjIjo-VMSALmSsuvNRvYXsc1GFPCGQsyHc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39864@inbox.vuxu.org>

[-- 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
+}

  parent reply	other threads:[~2022-10-12  7:09 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221012070947.-5EISjdRwYjIjo-VMSALmSsuvNRvYXsc1GFPCGQsyHc@z \
    --to=teldra@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).