diff options
author | William Hubbs <williamh@gentoo.org> | 2022-07-18 12:50:09 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-07-18 12:50:23 -0500 |
commit | 202ef812b894bfc1d5a2ada206c3518719e46a1d (patch) | |
tree | 4c0d13a592d731823e82d604ab882f82ff0e2192 /net-vpn | |
parent | media-libs/libinsane: fix compilation with MUSL (diff) | |
download | gentoo-202ef812b894bfc1d5a2ada206c3518719e46a1d.tar.gz gentoo-202ef812b894bfc1d5a2ada206c3518719e46a1d.tar.bz2 gentoo-202ef812b894bfc1d5a2ada206c3518719e46a1d.zip |
net-vpn/tailscale: add 1.26.2
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/tailscale/Manifest | 2 | ||||
-rw-r--r-- | net-vpn/tailscale/tailscale-1.26.2.ebuild | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest index 3b790574de39..2be53562b1b3 100644 --- a/net-vpn/tailscale/Manifest +++ b/net-vpn/tailscale/Manifest @@ -4,3 +4,5 @@ DIST tailscale-1.22.2-deps.tar.xz 109072196 BLAKE2B 6cd0b6d1f81ae47815e6ba924da3 DIST tailscale-1.22.2.tar.gz 1019987 BLAKE2B 41911754239944a51e5da9f98392452ad0f28b223423cb2a1b76031cf4f6fb78c4bbcf11efd4b3b257625d66c8c14380cafafb532278a0f6bf306e072326839f SHA512 5aeb2d2881023d1e0cb62a02ac0f3cf931765d2e8674883ccc863c52da7eb3d2f08903556ea0a3679fa404519244a65c9b1df99066c4167402d7e688ca256035 DIST tailscale-1.24.2-deps.tar.xz 119558132 BLAKE2B 5ffa04b0f4675c5954e00af736274cb0e0c14bb66b18e61407e53b22c5f0687a4994776ab820b09861e79a67899dbcbfd4067503def28c684abc26ac2dad02f8 SHA512 d7c2f79dcafb64c9cba00827915d9c1f2a0d5ab910d5f23c28dc7b84282f94158592bafa0829ede3e051c0ea67232719585617174f5d6ba201922cf53b19152e DIST tailscale-1.24.2.tar.gz 1102880 BLAKE2B f72ea66cfa2c5888f2a99d44bc29b760e5dd1de7e0d8142f976b52400d8e63e117c254fdafab6718f747d3602782b74bdafea16c56a9176dcf5b446dcbba2d7c SHA512 cf20bbb56b303897e50071baae88a147e88909d1f01fb0a75688fb880909336b91921ed8331defb874e45c23874b2f4282dddc85b8f58146cab5e27efba063d3 +DIST tailscale-1.26.2-deps.tar.xz 134312708 BLAKE2B d7a2cafb7c806b01982970dbb1d44b0bebd34ab2b586f2efcc5a20580837604f8ff9355eed34c66c8ba695915b21c752f7ab577e474cc6c030f3adae56137e98 SHA512 cfffc7c83d94a3073834e60c257bf6e471a787f1206898928bd46674201c0ab26b8ea229239d0896a9ccd1f4dfa8a24a043b9f4755835b07dc2faff9b74e857c +DIST tailscale-1.26.2.tar.gz 1139290 BLAKE2B f9424d91e8a09874941b1a351b0a600e705d117afcf2d60787b1950a295cee5e9e4926034235804824e59c8fe09abd830e2cdfe2b6389134c37ac2f0be6eb82b SHA512 a0d235660b6266d73b415ff1701ba949a7d84cd6a204870f41b16bf66ae27aebf82ffb06a4ec4a695b18c5b3c63f45a990167dc41d617a4718e5e3511daf49a3 diff --git a/net-vpn/tailscale/tailscale-1.26.2.ebuild b/net-vpn/tailscale/tailscale-1.26.2.ebuild new file mode 100644 index 000000000000..e6aa1f578e04 --- /dev/null +++ b/net-vpn/tailscale/tailscale-1.26.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 2020-2022 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="1.26" +VERSION_SHORT="1.26.2" +VERSION_LONG="1.26.2-t5a60f1ffe" +VERSION_GIT_HASH="5a60f1ffe3741c55eb9637ddd2f20157d164f511" + +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 ~riscv ~x86" + +RDEPEND="net-firewall/iptables" + +# 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 +} |