net-vpn/tailscale: add 1.86.5

Closes: https://bugs.gentoo.org/962551
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs
2025-09-10 12:40:13 -05:00
parent da8f47a385
commit 55edb9e23a
2 changed files with 65 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST tailscale-1.82.5-deps.tar.xz 265161016 BLAKE2B eb50d34ecda207f623efe213c81f
DIST tailscale-1.82.5.tar.gz 3793962 BLAKE2B 49ea1f878ce2ff6198d6ced1e4f49e557e7b1b9e2a2dd65079d5343aa46e57eee23b9d24561771c06af28d28cde4139d445e05e5d5c24f715ffc54b07c905050 SHA512 bed02f09c4905cba13fd3de3d45e027511420d76ece211312e153b6e50d8a10d2fb968a09ec1121f2150d414a74ca128430740173c16c0bef2696d141496849a
DIST tailscale-1.84.3-deps.tar.xz 265133640 BLAKE2B 4c041513f2c9c86f58e1ec449a67eaed6bff1cba0ee5d615eae45a65b751caf5c0a65843d6547d62c34b7bd766d871db78e9eb688159e6324ec93783f073fec1 SHA512 cc61248ebd49cba634bde39278f4eb9574d2e958a6751b0b956cb4f453cb2506895f3b9f70c6795f1aaf13401794edd1800611b7487de9f5dd219c7992b4adac
DIST tailscale-1.84.3.tar.gz 3963497 BLAKE2B 2dadfffa203883a0aaa7e0148d9925be93954eda8bb0638224cefe4bf24a50112ee08fd71e5d0d5caf19bd2fe963e8bb796a3033796e576b63a954a6ae26f057 SHA512 23e185ae2b7ced0d93632b891f3150d31a5b053d69a30c8cdc361fc9fab0d4bab54b730caa4cdd04cd5d82fef48a46ee509a1b4b590e6beae29ab1da6660cbc0
DIST tailscale-1.86.5-deps.tar.xz 264951596 BLAKE2B 23e02afb1602b988bc3258c740f5740a0f97124e58e307ba9936f7e2b56c86f88860ea08bbf3211b518b85bac06014b9b365f9dd0beff9d2932e7611c25f13cb SHA512 1b2407b5830a768da4a1c4cb330b31edd236798cdcd2a66b786e7efdf844caa875c6cb859f80fa641cf0f03fea3528826f08ce21ea3d9c9c3ee5db1bea58b34a
DIST tailscale-1.86.5.tar.gz 4143149 BLAKE2B 16b961f04397544102b71a7cb11596d2b6770c6fd88e11252018a2d7160b22585b50fa878b6a9923779ce8bff92e315b33553289d3648cbeb0a8ae017aeeb0b4 SHA512 aece289dd7c0ac1ddc866dcb08234bddbe0611bf7e539cfdd2244d4ac87e8f578462b3765bae8c48025eaef0b880b204e5bcced1db20166af0dc50b836eacf08

View File

@@ -0,0 +1,63 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module linux-info systemd tmpfiles
# These settings are obtained by running ./build_dist.sh shellvars` in
# the upstream repo.
# They should be updated on every bump.
VERSION_MINOR="86"
VERSION_SHORT="1.86.5"
VERSION_LONG="1.86.5-tdb392aed3"
VERSION_GIT_HASH="db392aed39630023f969e1961fcbced785d09358"
DESCRIPTION="Tailscale vpn client"
HOMEPAGE="https://tailscale.com"
SRC_URI="https://github.com/tailscale/tailscale/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
CONFIG_CHECK="~TUN"
RDEPEND="|| ( net-firewall/iptables net-firewall/nftables )"
BDEPEND=">=dev-lang/go-1.24"
RESTRICT="test"
# This translates the build command from upstream's build_dist.sh to an
# ebuild equivalent.
build_dist() {
ego build -tags xversion -ldflags "
-X tailscale.com/version.longStamp=${VERSION_LONG}
-X tailscale.com/version.shortStamp=${VERSION_SHORT}
-X tailscale.com/version.gitCommitStamp=${VERSION_GIT_HASH}" "$@"
}
src_compile() {
build_dist ./cmd/tailscale
build_dist ./cmd/tailscaled
}
src_install() {
dosbin tailscaled
dobin tailscale
systemd_dounit cmd/tailscaled/tailscaled.service
insinto /etc/default
newins cmd/tailscaled/tailscaled.defaults tailscaled
keepdir /var/lib/${PN}
fperms 0750 /var/lib/${PN}
newtmpfiles "${FILESDIR}/${PN}.tmpfiles" ${PN}.conf
newinitd "${FILESDIR}/${PN}d.initd" ${PN}
newconfd "${FILESDIR}/${PN}d.confd" ${PN}
}
pkg_postinst() {
tmpfiles_process ${PN}.conf
}