net-vpn/tailscale: add 1.104.1

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-10-07 22:54:17 +03:00
parent d4ea2e6309
commit b8a63a65eb
2 changed files with 71 additions and 0 deletions
+2
View File
@@ -6,3 +6,5 @@ DIST tailscale-1.102.2-vendor.tar.xz 61023896 BLAKE2B 084b572bdb2252d0c5f0061208
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
DIST tailscale-1.104.1-vendor.tar.xz 62184364 BLAKE2B 3d730508592fcd7a060093a7a8e3f620e315b95d4e7f67564b2f75a591c4e8bc81634349f76249ccd5c3581806fb604629de6fecd6fd91bd6ef40412a2c1e9ce SHA512 a431dccce246591d3cc33155fc8ac30395e1f732c298e70e24c616d74aed2639a083c01f309a0263923e359ab5b4fc185f68ec01e2265cfc066a204501756a49
DIST tailscale-1.104.1.tar.gz 5699898 BLAKE2B 241a4a9c39275d2f79fc4545b6ed2991bc24e697cdc825e6bcabbcd1d9f40bde7ffc4cc7e456eb80a6c185b27d827a368fb542cba2d8411ad933063a691dfb83 SHA512 87328f77f0cebb0adc431e5c84db1946cf48982ae685ffede6ce62bdb2b3cbb351e3bd6c70f94cad68752ac8c6a34f9bcfe06863e5c98dc602dd6fa4c64b260f
@@ -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="9a522a9786c97eb7910c01ccb7bd66557b04c910"
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.27.1"
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
}