public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Yixun Lan" <dlan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/headscale/
Date: Thu, 13 Mar 2025 06:15:21 +0000 (UTC)	[thread overview]
Message-ID: <1741846466.ed0f1d8e1940210d041b0bd07d7429ad29be08de.dlan@gentoo> (raw)

commit:     ed0f1d8e1940210d041b0bd07d7429ad29be08de
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 13 06:10:59 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Thu Mar 13 06:14:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed0f1d8e

net-vpn/headscale: add 0.25.1

Closes: https://bugs.gentoo.org/951233
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 net-vpn/headscale/Manifest                |  2 ++
 net-vpn/headscale/headscale-0.25.1.ebuild | 48 +++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/net-vpn/headscale/Manifest b/net-vpn/headscale/Manifest
index 3d4f3d80371f..628ac69da16c 100644
--- a/net-vpn/headscale/Manifest
+++ b/net-vpn/headscale/Manifest
@@ -1,2 +1,4 @@
 DIST headscale-0.22.3-deps.tar.xz 210358828 BLAKE2B d9c1afb1f32084a5ed062de2d9857fc6fe1a901d0a46f9966c714a7578160308461125f42c26a5c4522a0b9ee9e8f4e29e9bf4eaa34dbbea29f61ed093528301 SHA512 4643772ab7e742effba2a66aaa3cf8a155efb90e1a0b9fe5406b7feb4f224c26367bcfb15b98af69ce0f950c26cf102302a519ae770f0d4b7775464900abc737
 DIST headscale-0.22.3.tar.gz 589745 BLAKE2B a7f6798b2cb32518818e92c8f1d190e83c7e2681d812a40a75dc4cef4941970d8a27caf3cf8bc60d0e3dac963145154231f845e75640d60cf09de71e3a36c94a SHA512 c3ce7ae023dd0bd5c52e00ec2564b68eb87074a804a9982a3eb6f1e64335621a312cbb650d79571e89bef3f0d8e6d602b732156aa8851b67dfd455ac1156b311
+DIST headscale-0.25.1-deps.tar.xz 287804688 BLAKE2B 3f472a6d74323548222aba02bfcb907284efe217ccd4b6d0aad2120fcab9dc310a9abfcdca852466c009c210b16e8ac961b5318c72632570f897f2a503469cb7 SHA512 e9a0b1989f01b2d6c9974a36bbfebf06c55d3f7a74b40960a6611d0de973e0e6665782012618a688523f3a11754e8499e16aeef8f90c2eca6d4ff0b4fc7858fa
+DIST headscale-0.25.1.tar.gz 611465 BLAKE2B cec2bdb7e7559ef378c46cc2296295bed85861bb58984741a7bafea30d0ead2e370453e59f2f4d1174b1bdac2bd509dca6ad8db24486c3783d152d95325d28ce SHA512 79240533d9735ebeeb42f47668426956529784c77223c6fe4380280c9538cfc53b27cd205a989bf91a4b2bfc2f680b3fdb77f0c9f547de0900cc6cb5568c85bd

diff --git a/net-vpn/headscale/headscale-0.25.1.ebuild b/net-vpn/headscale/headscale-0.25.1.ebuild
new file mode 100644
index 000000000000..e49266a82772
--- /dev/null
+++ b/net-vpn/headscale/headscale-0.25.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="An open source, self-hosted implementation of the Tailscale control server"
+HOMEPAGE="https://github.com/juanfont/headscale"
+DEPS_URIS=( "https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" )
+SRC_URI="https://github.com/juanfont/headscale/archive/v${PV}.tar.gz -> ${P}.tar.gz
+	${DEPS_URIS[*]}"
+
+LICENSE="BSD Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+
+DEPEND="
+	acct-group/headscale
+	acct-user/headscale
+"
+RDEPEND="
+	${DEPEND}
+	net-firewall/iptables
+"
+
+src_compile() {
+	export -n GOCACHE XDG_CACHE_HOME
+	go build -o "./bin/${PN}" "./cmd/${PN}" || die
+}
+
+src_install() {
+	dobin bin/headscale
+	dodoc -r config-example.yaml derp-example.yaml
+	keepdir /etc/headscale /var/lib/headscale
+	systemd_dounit "${FILESDIR}"/headscale.service
+	newconfd "${FILESDIR}"/headscale.confd headscale
+	newinitd "${FILESDIR}"/headscale.initd headscale
+	fowners -R "${PN}":"${PN}" /etc/headscale /var/lib/headscale
+}
+
+pkg_postinst() {
+	[[ -f "${EROOT}"/etc/headscale/config.yaml ]] && return
+	elog "Please create ${EROOT}/etc/headscale/config.yaml before starting the service"
+	elog "An example is in ${EROOT}/usr/share/doc/${P}/config-example.yaml.bz2"
+	ewarn ">=headscale-0.19.0 has a DB structs breaking, please BACKUP your database before upgrading!"
+	ewarn "see also: https://github.com/juanfont/headscale/pull/1171 and https://github.com/juanfont/headscale/pull/1144"
+}


             reply	other threads:[~2025-03-13  6:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13  6:15 Yixun Lan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-13  6:15 [gentoo-commits] repo/gentoo:master commit in: net-vpn/headscale/ Yixun Lan
2023-09-15 13:02 Yixun Lan
2023-08-10  7:05 Yixun Lan
2023-04-03 17:18 Jakov Smolić
2023-03-16  9:52 Yixun Lan
2022-08-18 13:54 Yixun Lan
2022-08-15  8:30 Yixun Lan
2022-08-15  7:30 Yixun Lan

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=1741846466.ed0f1d8e1940210d041b0bd07d7429ad29be08de.dlan@gentoo \
    --to=dlan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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