From e92c0820544ad3d24825ddf4173f426a8ad281aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 00:09:15 +0000 Subject: [PATCH] chore: update dependencies --- net-vpn/tailscale/Manifest | 2 + net-vpn/tailscale/tailscale-1.76.3.ebuild | 60 +++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 net-vpn/tailscale/tailscale-1.76.3.ebuild diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest index 542d69e..2c64f65 100644 --- a/net-vpn/tailscale/Manifest +++ b/net-vpn/tailscale/Manifest @@ -4,3 +4,5 @@ DIST tailscale-1.76.0-deps.tar.xz 412614532 BLAKE2B 51f7b8211072fc7d73dbcff3ccf5 DIST tailscale-1.76.0.tar.gz 3282238 BLAKE2B 343858793733691aacd14abead4c0a86f8a44ef5494546130da5a208095e894c16d66b282ca6c61ddf68823b09ef87cbcff6d2447d1c459aec74cbca8d3b935c SHA512 cfae501c42f67ca1c51b11ee6ac3c1715e224daf38ec35d2ad4be34da1f1f6aa62cd187dd4741214e4cabf6f356e05b32826033d21c15e4acbadbbbfd23dcdcf DIST tailscale-1.76.1-deps.tar.xz 412640268 BLAKE2B 99f90dfd334f3431f58cdd2449edae7b67bb9e5b53ec23baf0364234a768a3f3c3b4125e7f588e4dcb96b7017bf626c3e64a211165bfa3775682530236afc5ab SHA512 30344f84ad4f1d6d8e65056ba94cd602fbbe30761c474c2be661bc8aea7d74b42f089c127a53d383e71b25cd0a5eb0ac3940be7fe3b1afacce16e44e94ebddcd DIST tailscale-1.76.1.tar.gz 3283666 BLAKE2B a3f2c6334190259f519a5720a5bced7168478047805d53f1b55132f8f3e8d0a061383da74eb2a758eb493329e3bfa66315c935cfadc013286ef3960a2eb7b23b SHA512 effd3a175b0ebff89ebc388bc77b705eae2ea83f4f60d3f277714431ae91930c5f914a7ecc2974e8df98d78175aca63284c4b2cd2142b85480d82c09a00d9513 +DIST tailscale-1.76.3-deps.tar.xz 412601620 BLAKE2B 7783fff92e3ee0a843ee8a1c8549134509a255f336bbbf48cc4eb4db9c7aa280cfc0f09cb4981a5a28a9224a92af4ffcdb8c56a170db44506225c79f6a1d6c99 SHA512 b279751e4f5b46035089c56cbd7262b8fac90a9eae6384e195a70f23a5b3361624b8149ec267540d0434dfee7bfdbcab1cb16f7a0fda2e2c37b1a03be429bcd9 +DIST tailscale-1.76.3.tar.gz 3283713 BLAKE2B 7ebdbb32b5ddac68e9d8de9d16d608f7a3d8843d484e2529b39f3c0700d0336ebb17beb68d53bbd1ed9352dc62d6ae8b6eb28e589933e2fa070df1314bbca084 SHA512 8254987e8d8ad80fdb94ae3b82e558ec011461ef4fe4c2434e0ab3ac93f5913f214e7a41c284f8d774fc6941223334fbef6d0b1eb75030aaa8dee6519df88e1c diff --git a/net-vpn/tailscale/tailscale-1.76.3.ebuild b/net-vpn/tailscale/tailscale-1.76.3.ebuild new file mode 100644 index 0000000..de23f4f --- /dev/null +++ b/net-vpn/tailscale/tailscale-1.76.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd tmpfiles + +# These settings are obtained by running ./build_dist.sh shellvars in +# the upstream repo. +VERSION_MINOR="76" +VERSION_SHORT="1.76.3" +VERSION_LONG="1.76.3-t02acaa00e" +VERSION_GIT_HASH="02acaa00eebb5146f7d41885aa3ed190cc107df6" + +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://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" + +RDEPEND="net-firewall/iptables" +BDEPEND=">=dev-lang/go-1.23" + +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.Long=${VERSION_LONG} + -X tailscale.com/version.Short=${VERSION_SHORT} + -X tailscale.com/version.GitCommit=${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 +}