net-vpn/tailscale: add 1.92.1

Closes: https://bugs.gentoo.org/966271
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs 2025-12-12 10:50:18 -06:00
parent 7033f1d5f3
commit 22b5879220
No known key found for this signature in database
GPG Key ID: DFDDE1809F0F9344
2 changed files with 65 additions and 0 deletions

View File

@ -6,3 +6,5 @@ DIST tailscale-1.86.5-deps.tar.xz 264951596 BLAKE2B 23e02afb1602b988bc3258c740f5
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
DIST tailscale-1.92.1-deps.tar.xz 261683924 BLAKE2B 328d6fbe8e5d0fd5fb7df1f661474b4357ea4e1e9f811fdf1d847303d607fd6b8dde3489f6e1089be9d54c44cfd4700ee40b6aa09e797330bafe438184a39efd SHA512 82d187419719bb7d60dc6c4c92abc97c8d4cc278fec017c1eb7ba18819b924395a027f5e3cb0a982ea1e3903abd16ec10df226b05a4b2f50d75f15a1c3838de4
DIST tailscale-1.92.1.tar.gz 4376520 BLAKE2B 3df1d1ba988480e68546f043012863201ff4f36f0d14c5b67dcfab6efbfc35b838e9589a0beb006272ac804e82b60c421b719da54621ff9b45b7c5ba80781a98 SHA512 e8d064a952c3a11b0ece52a99f974fce6a83615cfb06f92445b88f42c885edf1259cf1eadfdd8a363cb8560517292701ec5f8a8c7df668b8014ec1cff32b3729

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="92"
VERSION_SHORT="1.92.1"
VERSION_LONG="1.92.1-t2078eb56f"
VERSION_GIT_HASH="2078eb56f3ca310821aae3fa140aa3b0d3bda2dc"
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.25.5"
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
}