From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 27F3E15A7D9 for ; Thu, 16 Mar 2023 09:52:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69725E07B2; Thu, 16 Mar 2023 09:52:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F2C3E07B2 for ; Thu, 16 Mar 2023 09:52:47 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3E95233BEFE for ; Thu, 16 Mar 2023 09:52:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8EA607F9 for ; Thu, 16 Mar 2023 09:52:44 +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: <1678960140.3e4be71aa43961da1c2b85c79221a8f9fd0e9467.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.20.0.ebuild net-vpn/headscale/metadata.xml X-VCS-Directories: net-vpn/headscale/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 3e4be71aa43961da1c2b85c79221a8f9fd0e9467 X-VCS-Branch: master Date: Thu, 16 Mar 2023 09:52:44 +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: cd580ca7-a1da-45bf-b7d7-07295418814a X-Archives-Hash: 4e7f079ee55b16771ccaee3c3aea42d6 commit: 3e4be71aa43961da1c2b85c79221a8f9fd0e9467 Author: Chris Su lesscrowds org> AuthorDate: Thu Feb 16 14:51:56 2023 +0000 Commit: Yixun Lan gentoo org> CommitDate: Thu Mar 16 09:49:00 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e4be71a net-vpn/headscale: 0.20.0 version bump Closes: https://github.com/gentoo/gentoo/pull/29617 Signed-off-by: Chris Su lesscrowds.org> Signed-off-by: Yixun Lan gentoo.org> net-vpn/headscale/Manifest | 2 ++ net-vpn/headscale/headscale-0.20.0.ebuild | 48 +++++++++++++++++++++++++++++++ net-vpn/headscale/metadata.xml | 3 ++ 3 files changed, 53 insertions(+) diff --git a/net-vpn/headscale/Manifest b/net-vpn/headscale/Manifest index 52c778b6f3eb..90ab2fca7de4 100644 --- a/net-vpn/headscale/Manifest +++ b/net-vpn/headscale/Manifest @@ -1,2 +1,4 @@ DIST headscale-0.16.2-deps.tar.xz 246778024 BLAKE2B 7c2beff2b18ca87aa4d496332d6b521f31d7b496227950204d9efe35f8259fdf1f3519fce951827f3698b5c166148db3ef69225acf16ce2e659b70017ac9e0f2 SHA512 5bc9b1b6bf1c3c70a7e033c2820c9fc05df45d19855e8050687072f0394920d77416640eb9af100027a96646df285b5a3d09bab4c959d4475e8b2b304f01a4ef DIST headscale-0.16.2.tar.gz 391683 BLAKE2B c75835e7f15847236b357988cdb66c65c3e2cb6ac2328e4fb5cb07da9c132b664afe69fcaf3fa9f6a70951e76a91ddf8fda2ea74c1af9055daca30f3efb593ab SHA512 bad885866855211d43b45dcc7b958595967241af4c2a1b370532fef7c751b85002138cd3742e4046603af383c123b66afd7de9aba59e8eee600d7ffdd70ff12c +DIST headscale-0.20.0-deps.tar.xz 199890824 BLAKE2B 4b96f22d2cd1c4156bb730cc476dbf65b969b64b857cbdc0d91714b031ca8df4993327a2e31bf8dec51b5309790bf8e606117b7c49a96654914551a9081df3cf SHA512 2394e5e995d8fae72b9561e98c1d2576309a37583441a42eee1d74fd123340dba8615c78beb581633aea15b234d213cbfcd97701c8cbf6dc85381d7dca4252a7 +DIST headscale-0.20.0.tar.gz 581431 BLAKE2B 07def2a4e6509759a1b7a18c8faa426e420a17b42290e3162540c8115316012cc83a5cbd9e8918940244591ebfca4a9225e5a0475554e52f54bd791904d6407e SHA512 e201c63f3646501229b114b48c3603945272b79390f4ab8d3f9bc557cdf02b1c404cd18ba85aaf1a5038ec41361746177278a51d6075db5944d3edf1efdcc4be diff --git a/net-vpn/headscale/headscale-0.20.0.ebuild b/net-vpn/headscale/headscale-0.20.0.ebuild new file mode 100644 index 000000000000..12d3cfd3a6af --- /dev/null +++ b/net-vpn/headscale/headscale-0.20.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2023 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://github.com/slchris/gentoo-go-deps/releases/download/headscale-0.20.0/${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" +} diff --git a/net-vpn/headscale/metadata.xml b/net-vpn/headscale/metadata.xml index 73d345656db7..f02e9a5a66e4 100644 --- a/net-vpn/headscale/metadata.xml +++ b/net-vpn/headscale/metadata.xml @@ -13,4 +13,7 @@ jsmolic@gentoo.org Jakov Smolić + + juanfont/headscale +