From d01922f399832b9cc83e9372eaadf3e7b4987053 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 31 Jan 2025 00:08:12 +0000 Subject: [PATCH] chore: update dependencies --- net-vpn/tailscale/Manifest | 4 +- net-vpn/tailscale/tailscale-1.80.0.ebuild | 60 +++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 net-vpn/tailscale/tailscale-1.80.0.ebuild diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest index 223dd9b..7325040 100644 --- a/net-vpn/tailscale/Manifest +++ b/net-vpn/tailscale/Manifest @@ -1,2 +1,4 @@ -DIST tailscale-1.78.3-deps.tar.xz 414019440 BLAKE2B 980e8e483f81682fc12eac0c1aa51f649a19482aa424c093b7641ac05bec2d2e43b85f9cf888ddae8a87784f3fe630504223365bb82b92245891ece1ed4f1ca7 SHA512 7a81ae997f0a0db613a6154d191c7e8c401977647bb15765e30f207b390a5fd0e0a96253b4bb7a2cf78bcb76775af3edb0b2bae212569bec37e1d14a22dfe787 +DIST tailscale-1.78.3-deps.tar.xz 265496184 BLAKE2B de585f36dfcb0cca5234df06b7395de7e7f84f74b31c14ded548bbd7202865697646e6108c820f55b7d76758ca284a8c461c1fd715140262208b864608c1ab1b SHA512 c67a62081fba3cb4c61e0eec22915d6bd535173d2936e3214b63af93109dcb38293d0bcc4649f7382772f65d6c5d35fde7b4fb5b9eff28e114f091b858c10175 DIST tailscale-1.78.3.tar.gz 3378578 BLAKE2B d36d549875e2a20fcff0112636d0dce1a206c66e9f06498959072a4fb5f97bf3b63841f27ebe89aad14d403eb3ac0f3d3835da2d6a4c17dc4d2bfd369d868875 SHA512 555de6801c10cc3d5b61eae3bf01d14f9e7b80f39adc2ab35dc70adea11fecc396ade52423028d584d0a13cfac01f23aea39be641f63a6621bcc4ef11077391c +DIST tailscale-1.80.0-deps.tar.xz 405005904 BLAKE2B 1799ef7572bafa592fe84ccee409d5e0eeb3a23316859f5cee0997cbfdb647323c1e86c806b8a44b1e63c0c95220ffd3ec7cd54f78fccc6559a5c36991e4596c SHA512 72de5c0a369e00920b33eb124135bca5ab8c44376d3e2866c6f39893a3d711aeed37afd7753f227d42fdc893269cd03ec79eec84811eae483e4304a0cf085b1b +DIST tailscale-1.80.0.tar.gz 3528237 BLAKE2B d3ee44d5e3d365d650132fce31dbbfad1b1e25c01006df3d7672e259906dd8117f68be73e181693c539b8c55834cedbc1ec5daf3008f5413c0ccdce0198cb648 SHA512 17ba3a9866cb274b3cec197f676f2062eb8c662fbc2e0ec51da12e0123446eb3fdf8c871ae6ae9f99e46e54b95512b20be5bffccfb934742b574571c87d002d3 diff --git a/net-vpn/tailscale/tailscale-1.80.0.ebuild b/net-vpn/tailscale/tailscale-1.80.0.ebuild new file mode 100644 index 0000000..a8f3d22 --- /dev/null +++ b/net-vpn/tailscale/tailscale-1.80.0.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="80" +VERSION_SHORT="1.80.0" +VERSION_LONG="1.80.0-t649a71f8a" +VERSION_GIT_HASH="649a71f8acaad5b91f9cd5a4c1fa164c780bac7e" + +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 +}