From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F27A41584F2 for ; Thu, 13 Mar 2025 06:15:26 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id D9C64343150 for ; Thu, 13 Mar 2025 06:15:26 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 19DF211037F; Thu, 13 Mar 2025 06:15:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 0C0D911037F for ; Thu, 13 Mar 2025 06:15:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B1EE9342FDE for ; Thu, 13 Mar 2025 06:15:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D5662610 for ; Thu, 13 Mar 2025 06:15:21 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1741846466.ed0f1d8e1940210d041b0bd07d7429ad29be08de.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/headscale/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-vpn/headscale/Manifest net-vpn/headscale/headscale-0.25.1.ebuild X-VCS-Directories: net-vpn/headscale/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: ed0f1d8e1940210d041b0bd07d7429ad29be08de X-VCS-Branch: master Date: Thu, 13 Mar 2025 06:15:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 452bd903-8356-493b-aaf8-c23827527fb5 X-Archives-Hash: 422ff144faa5eecacde3a84955887f5f commit: ed0f1d8e1940210d041b0bd07d7429ad29be08de Author: Yixun Lan gentoo org> AuthorDate: Thu Mar 13 06:10:59 2025 +0000 Commit: Yixun Lan gentoo 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 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" +}