net-vpn/tailscale: add 1.102.5

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-10-01 21:38:10 +03:00
parent e608b46043
commit 2c12ab7d7a
2 changed files with 71 additions and 0 deletions
+2
View File
@@ -4,3 +4,5 @@ DIST tailscale-1.102.0-vendor.tar.xz 60980804 BLAKE2B 99b7ff3469db14c264d7130dfd
DIST tailscale-1.102.0.tar.gz 5255551 BLAKE2B 279e7f8eeb947282836cb272ffca9b22efd66b773a30fc7db7df0691751581d499023a0fdb75b6d5cf5b0230f999e6e83ea178edc2d5873136d0fbd481e90e0d SHA512 db718a1e0fe38fbb8ec03a5dc83f5218d5b3905a825cd9dc46df909c0c0500ad64138e440600303ff0ca9d8f129ca8f16345153c19b948eb81bb772889775c4e
DIST tailscale-1.102.2-vendor.tar.xz 61023896 BLAKE2B 084b572bdb2252d0c5f0061208012d4c32cecd56d0aa965bdca6070ee97ed62971981562e72ffb60aa3511c2efcd7243bfce8248df9110a2e6e90f57499cda00 SHA512 077b06efd359157302628870edf044912a2859a69855727de0c7638f26fa47b76fbee0fb8c410178ce4f1cbdb478d5416a7fb4326d175f8ea94769217bed5ff2
DIST tailscale-1.102.2.tar.gz 5282022 BLAKE2B 17c8cfc6378c0129250a139ac5d57aa2f34fad9f855cc80e026435e8d9281607766a4473471ed0f3addcb7eb0156f84c1da8e8c66ee9fa83c5833638963f7e5e SHA512 9f102c94eac91e75a8740f72a211f04a66ee9ba1248d6b84a34bd9b7cd342ebc26ea152e5bfdc4fd5c3b0841e19c58ddbb4401f93a45dd6e2ee24ee142219e4d
DIST tailscale-1.102.5-vendor.tar.xz 60998860 BLAKE2B a9b6f13dcb9eb2c856e2df3ea4ee3eb06bdfa9e9762e8c0f16d8fd34597820887dc02b230fdde8a41fb26965ae449b98d2f1d178b29d8539108365f774549586 SHA512 e169fdbd7ac4c9465fcf7cd11f7837859899848ae45026a74ef24bb9fe5715abf86cd1dc7247877992d70f25b739e422ad5aede051f2f4ca9872ca7504242a88
DIST tailscale-1.102.5.tar.gz 5305367 BLAKE2B b72ec7dd58051923b576099f7b5855713186db15674bbed628ea709cc7c8122d2cb435ac5675dac20564a23830969b3e93310537b57788366d6f442ee486e84a SHA512 b4afe44625248f7028486c0b534c825140ef99623532dcff0c16777433d00bbe90b71630d7ae0ec6734df3c14e06d3852e3daf40aa42e4a1a23766113c8e8df2
@@ -0,0 +1,69 @@
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module linux-info shell-completion systemd sysroot tmpfiles
# They should be updated on every bump.
VERSION_GIT_HASH="5fb2a81b065b0a0bbbfc67ab20a0d9c6a1108115"
VERSION_MINOR=$(ver_cut 2)
VERSION_SHORT=${PV}
VERSION_LONG=${PV}-t${VERSION_GIT_HASH::9}
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://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"
LICENSE="MIT"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
RESTRICT="test"
CONFIG_CHECK="~TUN"
RDEPEND="|| ( net-firewall/iptables net-firewall/nftables )"
BDEPEND=">=dev-lang/go-1.26.5"
src_compile() {
# This translates the build command from upstream's build_dist.sh to an
# ebuild equivalent.
local go_ldflags=(
-X tailscale.com/version.longStamp=${VERSION_LONG}
-X tailscale.com/version.shortStamp=${VERSION_SHORT}
-X tailscale.com/version.gitCommitStamp=${VERSION_GIT_HASH}
)
ego build -tags xversion -ldflags "${go_ldflags[*]}" -o bin/ ./cmd/tailscale ./cmd/tailscaled
einfo "generating shell completion files"
sysroot_try_run_prefixed ./bin/tailscale completion bash > ${PN}.bash || die
sysroot_try_run_prefixed ./bin/tailscale completion zsh > ${PN}.zsh || die
sysroot_try_run_prefixed ./bin/tailscale completion fish > ${PN}.fish || die
}
src_install() {
dosbin bin/tailscaled
dobin bin/tailscale
systemd_dounit cmd/tailscaled/{tailscaled.service,tailscale-online.target,tailscale-wait-online.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}
[[ -s ${PN}.bash ]] && newbashcomp ${PN}.bash ${PN}
[[ -s ${PN}.zsh ]] && newzshcomp ${PN}.zsh _${PN}
[[ -s ${PN}.fish ]] && dofishcomp ${PN}.fish
}
pkg_postinst() {
tmpfiles_process ${PN}.conf
}