From ab3430708b5e0ee63073b89434805eb0dc05b1c1 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 27 Feb 2022 01:46:11 -0600 Subject: net-vpn/tailscale: 1.22.0 bump Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: William Hubbs --- net-vpn/tailscale/Manifest | 2 ++ net-vpn/tailscale/tailscale-1.22.0.ebuild | 57 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 net-vpn/tailscale/tailscale-1.22.0.ebuild (limited to 'net-vpn') diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest index 9805948e19b0..eb7beedb0bfd 100644 --- a/net-vpn/tailscale/Manifest +++ b/net-vpn/tailscale/Manifest @@ -1993,3 +1993,5 @@ DIST software.sslmate.com%2Fsrc%2Fgo-pkcs12%2F@v%2Fv0.0.0-20210415151418-c5206de DIST software.sslmate.com%2Fsrc%2Fgo-pkcs12%2F@v%2Fv0.0.0-20210415151418-c5206de65a78.zip 36856 BLAKE2B 0565abd7a27c8bc892389386ffa888b6a369153b8961f9966e801d40b87b5cb37d4735f803b53913821d0f73e1642ddf00f5181d29cae17dc75e8177f427368b SHA512 c7c1933ff5a41f35466f308c85f9e32964d99fb1c7a2b25e094864e49186cdde4bed567fe61a513521ce1666fd3b0a0d57de2d1fc883d6bb178709e4cee6d507 DIST tailscale-1.18.1.tar.gz 891341 BLAKE2B acefe5108f0fca360afd48f2a4acb72fc92c29b778b7df44f80b5d54acbe5580234436c83580e78443561b29221734afd9d4d0e912378f53be778961f32b8438 SHA512 27ddbb5e41c360e3455984ba085f18dd6a46d9da2a1ca66ba4ed901ecba63009b96de11a88335bc25f36ea7f6c164c9ce40bb881d3408424f77692aac4374958 DIST tailscale-1.20.3.tar.gz 976671 BLAKE2B 11ff33dfd67d0bc902f965a28c8916d3b813dda57658806f702e664b8ade29e6dcb75ffdaf4b0bf1a80ad79fcf7876a1ddf1e8e031697bf990d40256ec63b6e4 SHA512 f99185ee4d0c2d688992fae1c734d8d8793ff1868f47089d3e850477ad274fa00a1bc0e5afb26455de34bba1c4a592b9532e278ba651f26ecc97248c912ed713 +DIST tailscale-1.22.0-vendor.tar.xz 5861668 BLAKE2B 0ccc953e7fa20fd13a6582e10864ff15dee15bc8991ad27439a771d05a13d4be7c11e2bdde6a4c19ad745fdf7d2bbf31c3e44513df1cf634c5a0842e243221db SHA512 7e7a8027aa8c17f74ec6c7ccdc6b79113820a9a106c23c8d8fbb5da17fe97ef9abd70dd66363d6abc0619f26f2fb889066fd8dd1cef18295c4dbc34072e08c3d +DIST tailscale-1.22.0.tar.gz 1018528 BLAKE2B 1ae5a4d76f6f097d85789f875624bae10d146c1503d6d96dc20f85b190ec5586c25c78d5503fb1ac839f6d547379a8ad934bffe0a1a7f76843b643d596aac24f SHA512 d5476d5bac50c0789d0718f39ffee1fb7299f74e6d2682e61fd7856bb63811f2f245c1e10c7befae34b075231210d79fdbde53d24ceba77ed106f8040aab4bcc diff --git a/net-vpn/tailscale/tailscale-1.22.0.ebuild b/net-vpn/tailscale/tailscale-1.22.0.ebuild new file mode 100644 index 000000000000..bcb9cf17c05e --- /dev/null +++ b/net-vpn/tailscale/tailscale-1.22.0.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 and substituting ${PV} appropriately. +VERSION_MINOR="1.22" +VERSION_SHORT="${PV}" +VERSION_LONG="${PV}-t4e0b00ad8" +VERSION_GIT_HASH="4e0b00ad830e656b1d76f1c5194520469ab0ff92" + +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}-vendor.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~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 +} -- cgit v1.2.3-65-gdbad