Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/tailscale/
Date: Sun, 27 Feb 2022 07:47:21
Message-Id: 1645948024.ab3430708b5e0ee63073b89434805eb0dc05b1c1.williamh@gentoo
1 commit: ab3430708b5e0ee63073b89434805eb0dc05b1c1
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 07:46:11 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 07:47:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab343070
7
8 net-vpn/tailscale: 1.22.0 bump
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
12
13 net-vpn/tailscale/Manifest | 2 ++
14 net-vpn/tailscale/tailscale-1.22.0.ebuild | 57 +++++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest
18 index 9805948e19b0..eb7beedb0bfd 100644
19 --- a/net-vpn/tailscale/Manifest
20 +++ b/net-vpn/tailscale/Manifest
21 @@ -1993,3 +1993,5 @@ DIST software.sslmate.com%2Fsrc%2Fgo-pkcs12%2F@v%2Fv0.0.0-20210415151418-c5206de
22 DIST software.sslmate.com%2Fsrc%2Fgo-pkcs12%2F@v%2Fv0.0.0-20210415151418-c5206de65a78.zip 36856 BLAKE2B 0565abd7a27c8bc892389386ffa888b6a369153b8961f9966e801d40b87b5cb37d4735f803b53913821d0f73e1642ddf00f5181d29cae17dc75e8177f427368b SHA512 c7c1933ff5a41f35466f308c85f9e32964d99fb1c7a2b25e094864e49186cdde4bed567fe61a513521ce1666fd3b0a0d57de2d1fc883d6bb178709e4cee6d507
23 DIST tailscale-1.18.1.tar.gz 891341 BLAKE2B acefe5108f0fca360afd48f2a4acb72fc92c29b778b7df44f80b5d54acbe5580234436c83580e78443561b29221734afd9d4d0e912378f53be778961f32b8438 SHA512 27ddbb5e41c360e3455984ba085f18dd6a46d9da2a1ca66ba4ed901ecba63009b96de11a88335bc25f36ea7f6c164c9ce40bb881d3408424f77692aac4374958
24 DIST tailscale-1.20.3.tar.gz 976671 BLAKE2B 11ff33dfd67d0bc902f965a28c8916d3b813dda57658806f702e664b8ade29e6dcb75ffdaf4b0bf1a80ad79fcf7876a1ddf1e8e031697bf990d40256ec63b6e4 SHA512 f99185ee4d0c2d688992fae1c734d8d8793ff1868f47089d3e850477ad274fa00a1bc0e5afb26455de34bba1c4a592b9532e278ba651f26ecc97248c912ed713
25 +DIST tailscale-1.22.0-vendor.tar.xz 5861668 BLAKE2B 0ccc953e7fa20fd13a6582e10864ff15dee15bc8991ad27439a771d05a13d4be7c11e2bdde6a4c19ad745fdf7d2bbf31c3e44513df1cf634c5a0842e243221db SHA512 7e7a8027aa8c17f74ec6c7ccdc6b79113820a9a106c23c8d8fbb5da17fe97ef9abd70dd66363d6abc0619f26f2fb889066fd8dd1cef18295c4dbc34072e08c3d
26 +DIST tailscale-1.22.0.tar.gz 1018528 BLAKE2B 1ae5a4d76f6f097d85789f875624bae10d146c1503d6d96dc20f85b190ec5586c25c78d5503fb1ac839f6d547379a8ad934bffe0a1a7f76843b643d596aac24f SHA512 d5476d5bac50c0789d0718f39ffee1fb7299f74e6d2682e61fd7856bb63811f2f245c1e10c7befae34b075231210d79fdbde53d24ceba77ed106f8040aab4bcc
27
28 diff --git a/net-vpn/tailscale/tailscale-1.22.0.ebuild b/net-vpn/tailscale/tailscale-1.22.0.ebuild
29 new file mode 100644
30 index 000000000000..bcb9cf17c05e
31 --- /dev/null
32 +++ b/net-vpn/tailscale/tailscale-1.22.0.ebuild
33 @@ -0,0 +1,57 @@
34 +# Copyright 2020-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +inherit go-module systemd tmpfiles
39 +
40 +# These settings are obtained by running ./build_dist.sh shellvars` in
41 +# the upstream repo and substituting ${PV} appropriately.
42 +VERSION_MINOR="1.22"
43 +VERSION_SHORT="${PV}"
44 +VERSION_LONG="${PV}-t4e0b00ad8"
45 +VERSION_GIT_HASH="4e0b00ad830e656b1d76f1c5194520469ab0ff92"
46 +
47 +DESCRIPTION="Tailscale vpn client"
48 +HOMEPAGE="https://tailscale.com"
49 +SRC_URI="https://github.com/tailscale/tailscale/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.xz"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
55 +
56 +RDEPEND="net-firewall/iptables"
57 +
58 +# This translates the build command from upstream's build_dist.sh to an
59 +# ebuild equivalent.
60 +build_dist() {
61 + ego build -tags xversion -ldflags "
62 + -X tailscale.com/version.Long=${VERSION_LONG}
63 + -X tailscale.com/version.Short=${VERSION_SHORT}
64 + -X tailscale.com/version.GitCommit=${VERSION_GIT_HASH}" "$@"
65 +}
66 +
67 +src_compile() {
68 + build_dist ./cmd/tailscale
69 + build_dist ./cmd/tailscaled
70 +}
71 +
72 +src_install() {
73 + dosbin tailscaled
74 + dobin tailscale
75 +
76 + systemd_dounit cmd/tailscaled/tailscaled.service
77 + insinto /etc/default
78 + newins cmd/tailscaled/tailscaled.defaults tailscaled
79 + keepdir /var/lib/${PN}
80 + fperms 0750 /var/lib/${PN}
81 +
82 + newtmpfiles "${FILESDIR}/${PN}.tmpfiles" ${PN}.conf
83 +
84 + newinitd "${FILESDIR}/${PN}d.initd" ${PN}
85 + newconfd "${FILESDIR}/${PN}d.confd" ${PN}
86 +}
87 +
88 +pkg_postinst() {
89 + tmpfiles_process ${PN}.conf
90 +}