mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
net-vpn/headscale: add 0.26.1
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
parent
a1745a1421
commit
7193826388
@ -1,2 +1,4 @@
|
||||
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
|
||||
DIST headscale-0.26.1-deps.tar.xz 317685808 BLAKE2B f19f2e6f37fb7d1b95f556dfeb8abbbc1387fab24e7a92aeed1ff2ca8a343ce82fb21445da65deb0ca4876b4fa5b4736cf35dbabb14b3c759f291a5d107e78e7 SHA512 3cebdc100cc6b732b0a72f043463372d12402d156756221822cfcb6a9c346b8595a7974a64ccc83a94b1417c6ece2b9ae7d8b9e596870b96ff20e0042c289faa
|
||||
DIST headscale-0.26.1.tar.gz 647514 BLAKE2B eb203404222cb08894835c9a7b1574903077472c3710d956e276742e1ea349004a2dc7e851f589a23560f41960eeb2d33670bdf75458dd613933d0c6e03b584a SHA512 b388ec44f4df3eaea2014673ac9f9fa9a70db9f5f9267b57b65f27180f6a54fc2039f4a5ffbb9b4a4c630eec10083d8e1c6b3dd67d44fb0c4c4c15f95a4db6bb
|
||||
|
||||
48
net-vpn/headscale/headscale-0.26.1.ebuild
Normal file
48
net-vpn/headscale/headscale-0.26.1.ebuild
Normal file
@ -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://github.com/dlan17/gentoo-go-deps/releases/download/${P}/${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"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user