commit:     97c8bc05cc501fa96332a894a6bde7e17c29d987
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 12 22:14:00 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Mar 12 22:19:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97c8bc05

net-vpn/tailscale: add 1.80.3

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 net-vpn/tailscale/Manifest                |  2 +
 net-vpn/tailscale/tailscale-1.80.3.ebuild | 63 +++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest
index 8fc7326613b0..1f707b4470ca 100644
--- a/net-vpn/tailscale/Manifest
+++ b/net-vpn/tailscale/Manifest
@@ -6,3 +6,5 @@ DIST tailscale-1.80.1-deps.tar.xz 259376152 BLAKE2B 
490864215ac90afc42471e42a17b
 DIST tailscale-1.80.1.tar.gz 3528371 BLAKE2B 
44a6c8bf3d8a87b21de962410ea2243d4f8c05c9aff36d65e15f33bab935b3ca1e2395ba06c7fc3e724fdc6e924a84e1be80e553a8a694f79d6a9e2c673b4f44
 SHA512 
e80c9528a0656f707eb48d7aad68e52ce22ee8421cdfb2d64975492b056654837e00cb1ef5d36a099ace2500c79995714346d8c92e8d25038f20d091fe0143ed
 DIST tailscale-1.80.2-deps.tar.xz 259596316 BLAKE2B 
678a3e4662e1912e609dcf5e5bfb99b494e78f03e6f42f5890bd95dd40392a91d1d707cf5f6cd53aea056b4e0db93fe07698320e735f0d634848ab7bd44f83ab
 SHA512 
d39d0dc5c7edcb09b319923dc5d7471cf8964830e1b0c3e5f6e30402f8f5038a1ffcf504b7c8b895ddb2be09f2b03f65a220c7488a13796d658953c831274294
 DIST tailscale-1.80.2.tar.gz 3528364 BLAKE2B 
fa1431b01eb5f9b3e5f4b158d60c5ce51a782269dc56332b5244cb4a04c19f73b2c89fbac44d995a623e0bdc578780b359de23175675919257dd5a973352d2cb
 SHA512 
feb9e61ffe6726c1b6e0529660e484edd4e40c5be2fa841682f8522ba1594886a5c12ca88754a048ae9b9cf04fc0c877406f1fb804a99151fa853eaba4ba8339
+DIST tailscale-1.80.3-deps.tar.xz 259571740 BLAKE2B 
5e9c3cd9d57f416acd008a910760fcf130b32f9d81935c5c7f32822d37cd703ba07f58720bae0c67cbf85a87e93f06002edbce13efd7376eaf40bcd68fb38ba1
 SHA512 
f8484e9bb3329891b46282ef7e2879bf73cd3485925729ed319e76f1aca32946a56519fffaf644d504b1df4ec01ab8ee7a7a6cb30d3126b20ee5506fe65cf51a
+DIST tailscale-1.80.3.tar.gz 3528273 BLAKE2B 
3f9450a24a370146dc0e32f715ffa4eba8e6a7b31c65f20b1e9b40f4bf45fb1f0f27392d2c36870fa2bf2984fb556d72347057a010f18bda2d649242d058b5b2
 SHA512 
2553642e9ec8adf7754cf869ec986399de22af01b66c1a4d20bff3c1305f62e175e39e70eb2a6e9723e8352421d9ad6590bbcfa42e78a4c88838bd8bb8aa6e80

diff --git a/net-vpn/tailscale/tailscale-1.80.3.ebuild 
b/net-vpn/tailscale/tailscale-1.80.3.ebuild
new file mode 100644
index 000000000000..110481c0c8c8
--- /dev/null
+++ b/net-vpn/tailscale/tailscale-1.80.3.ebuild
@@ -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="80"
+VERSION_SHORT="1.80.3"
+VERSION_LONG="1.80.3-tbd762b827"
+VERSION_GIT_HASH="bd762b8274a957fe11c4416c6278ba0682124931"
+
+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.22"
+
+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
+}

Reply via email to