net-vpn/tailscale: add 1.90.6

Closes: https://bugs.gentoo.org/964623
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs
2025-11-07 08:01:55 -06:00
parent 6a429cd2e4
commit c90d5a73ee
2 changed files with 65 additions and 0 deletions

View File

@@ -4,3 +4,5 @@ DIST tailscale-1.84.3-deps.tar.xz 265133640 BLAKE2B 4c041513f2c9c86f58e1ec449a67
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
DIST tailscale-1.90.6-deps.tar.xz 261853716 BLAKE2B 0ed8c38bd7c6e6b7960475764cae0d61e057f472067c0113f00fcf22a31fb175ff2ab761301e8da2f23a3bdacb489b8f0a9229d7325426dfd7f4c41f2cd74c8b SHA512 2ea79c29d559855537115a8d1cea1956cb4a34e785c366ea932318398b0e6a280496f5876345923cf8ce4a5e554cd61e659d8462ca82aec723c0b7393c5219e6
DIST tailscale-1.90.6.tar.gz 4310216 BLAKE2B 265579794c9115f82b896c9cea379159f416597c8c0ee5d681d022279c0e7ead2c4d81f260e011f1414416411001094156dc9a21b9655f0c403611bd1c750df8 SHA512 74078b5fe2ecc06528b1ec54496d49ff701c97f792f7c8dbd08203646e88819ef65260357d0fac09e3319ce17749f8b7b5da95ed02f2b2e9a6e2b6196b483e47

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="90"
VERSION_SHORT="1.90.6"
VERSION_LONG="1.90.6-t28f6c2dbf"
VERSION_GIT_HASH="28f6c2dbfc5d3f7dde8d566a9214f6e0f55a9d17"
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
}