From 13a1291ea612db5011e9fb3ab88148215293eac2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jul 2024 00:08:59 +0000 Subject: [PATCH] chore: update dependencies --- net-vpn/tailscale/Manifest | 2 + net-vpn/tailscale/tailscale-1.70.0.ebuild | 60 +++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 net-vpn/tailscale/tailscale-1.70.0.ebuild diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest index c930f15..e27bdb1 100644 --- a/net-vpn/tailscale/Manifest +++ b/net-vpn/tailscale/Manifest @@ -4,3 +4,5 @@ DIST tailscale-1.68.1-deps.tar.xz 475973944 BLAKE2B 9cb7cf0e8d608eaec21dda674c37 DIST tailscale-1.68.1.tar.gz 2722164 BLAKE2B 36339615d1490db20c3d35ebdd6aa934516bc745e274860e5a25526a7517cffba4a2a75965cab7637c769c49db61f34ac49a012c5eae0b5c1d2b788137d7395e SHA512 b9177107fffc0768c4c682df916ecce27a80659876e628659bc73ce5ff7697a108982c4c49e47eeef1f84f02315443f1a29ff22d1afc07d6c1da699d84bbd2d9 DIST tailscale-1.68.2-deps.tar.xz 451318968 BLAKE2B 71d15db817f4424ccd2588773b02c820e3cccb2d2a4a0334e83abfe887d7e3cbe7b72fa26f9a7a67195cccc00bdaf3ded68b48a137e94ac4baa68d5f67923e30 SHA512 fd0eec083bf6d7e5e4b4e1dea465188a437a257507709171f66f704a916391a8ae36ba546c0f1336697f2a1195faa785281acc03c22378ab23d38e98fb87a2dc DIST tailscale-1.68.2.tar.gz 2724045 BLAKE2B 45e02c50a9edb106ee777fae0b00d099fc3a60ec1e794b6267c3e3fb285b2ed63b00bd62d260562c1f45b0c14f06080da9ff4696e9209b91cc8175d8728d2d56 SHA512 d512e051cc05507f75de07c75ffa9f91b5a6c340facf3c15797950668570319d2dbbc9fa078788cff261c964ef5da64d9a4b7c6d46591c07b63131c2f39f3add +DIST tailscale-1.70.0-deps.tar.xz 404440908 BLAKE2B 3ca0e3d3a4ca3c5935a48cc8a7ca3ba7f4122a52a38bf5bb78b8e190cca935207210f4bb7815aecee87e265397e46e1452bc75b78140bf554c54311cba2f1e1b SHA512 31012e30f25037761af7e9d2d566365053737b5b2384bb1921b20d8af6fecb7dc3c75b2f3eb5c7c5778b3a94cb175fa9a0b46d239939d8ced04915a48de81510 +DIST tailscale-1.70.0.tar.gz 2925859 BLAKE2B c31258b8f2b42fc662b4a753bfc6e261796f1d1e22fb77e906f97828b0875c49510824a381f0e8987f9ae31a55a6dd500cfa3ad91cff5a6cae35f2b23bfdf22a SHA512 49fb2fccce8cfa6bce3f21d839a72bd7a78d4c8f0d867167e8984275878ad5c0b57b0de66bbde999a092c6e17567f66ea7fd31642cde5844b606e9562848d129 diff --git a/net-vpn/tailscale/tailscale-1.70.0.ebuild b/net-vpn/tailscale/tailscale-1.70.0.ebuild new file mode 100644 index 0000000..63a87d7 --- /dev/null +++ b/net-vpn/tailscale/tailscale-1.70.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="70" +VERSION_SHORT="1.70.0" +VERSION_LONG="1.70.0-td601f16e1" +VERSION_GIT_HASH="d601f16e1b676b11902ee5d71e6042d95fb09252" + +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.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.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 +}