1 |
commit: ed5ccfe9186aa2de7246799ed685595b666e3c84 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 31 02:58:34 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 31 02:58:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed5ccfe9 |
7 |
|
8 |
net-vpn/tailscale: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
12 |
|
13 |
net-vpn/tailscale/Manifest | 4 +++ |
14 |
net-vpn/tailscale/files/tailscale.tmpfiles | 2 ++ |
15 |
net-vpn/tailscale/files/tailscaled.confd | 6 ++++ |
16 |
net-vpn/tailscale/files/tailscaled.initd | 14 ++++++++ |
17 |
net-vpn/tailscale/metadata.xml | 8 +++++ |
18 |
net-vpn/tailscale/tailscale-0.97_p45.ebuild | 50 +++++++++++++++++++++++++++++ |
19 |
6 files changed, 84 insertions(+) |
20 |
|
21 |
diff --git a/net-vpn/tailscale/Manifest b/net-vpn/tailscale/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..23037eae22e |
24 |
--- /dev/null |
25 |
+++ b/net-vpn/tailscale/Manifest |
26 |
@@ -0,0 +1,4 @@ |
27 |
+DIST tailscale_0.97-45_386.tgz 11879684 BLAKE2B 690e707e499e6986bd9676875af818f9fc68a7b9a4f66b2384efab4efa0c0d95cabe1a4c816152a7e61d14f33b16f1da00a8e7f9c26950412c2ac971a0ba090b SHA512 c81ae265c20bc2f8e9528b78dd39fd53d74b7a90d354617673912632d6599c9c0b866156ff8032b6a92f8452ae95789fdd0be3db87cf13aca2bb6ecdb13edf28 |
28 |
+DIST tailscale_0.97-45_amd64.tgz 12233156 BLAKE2B 120781c003be7cd244dd8b3659e817aea6567d0c0d4e34f468f2fb584b62a34cadec4e37b5d96076e7b4c9ffc6611b4dd7d41375ce6e54812e89d974af70a558 SHA512 6ed0dc7d847c75b3597deff0febb5a72b07d027e8b4889151c00126d77dd1dc3fd878080a2d0d4737a3b9a5f3b11993e2ff6991fc7e5fde2eed7838239515338 |
29 |
+DIST tailscale_0.97-45_arm.tgz 11328113 BLAKE2B 1ca588dfd8bb2c6e2b79d323b39f919ad2aebbb4c1812330a2875752b102bc461a304fa9c9761bd090d6361a966e04a06128535885383cb5baca0a679013e5b4 SHA512 78d8f44a07365ebc226df9c0a808f8da2a3e1f102db7aae3c9612c5c7e6ed5a32fcf0d43b43f23c507bba7ca4049be7a33c52473cff53d3fd7e9f9ae6b4d84bb |
30 |
+DIST tailscale_0.97-45_arm64.tgz 11321460 BLAKE2B bdaadbb8c384cab4d098b9aabab299767744bc0ada5b31f7510505e5dd83b507b369010ba4d9e96935fbe8cdd9fafe3fd9308d3ccd5aaf829c3aa85887bc144e SHA512 e6a68fe36219024fa01ce0bc5b2ab56614197dade1cdc131ef8f966684fa513e0e51589fc4e7740812f08f05a2b08127a8679de3005b925a613a1bef8675a48f |
31 |
|
32 |
diff --git a/net-vpn/tailscale/files/tailscale.tmpfiles b/net-vpn/tailscale/files/tailscale.tmpfiles |
33 |
new file mode 100644 |
34 |
index 00000000000..f27c7783520 |
35 |
--- /dev/null |
36 |
+++ b/net-vpn/tailscale/files/tailscale.tmpfiles |
37 |
@@ -0,0 +1,2 @@ |
38 |
+#type path mode user group age argument |
39 |
+d /run/tailscale 0755 - - - - |
40 |
|
41 |
diff --git a/net-vpn/tailscale/files/tailscaled.confd b/net-vpn/tailscale/files/tailscaled.confd |
42 |
new file mode 100644 |
43 |
index 00000000000..d65c42925ec |
44 |
--- /dev/null |
45 |
+++ b/net-vpn/tailscale/files/tailscaled.confd |
46 |
@@ -0,0 +1,6 @@ |
47 |
+# /etc/conf.d/tailscaled |
48 |
+# the port for tailscaled to listen on |
49 |
+#tailscaled_port=41641 |
50 |
+ |
51 |
+# extra arguments passed to the daemon |
52 |
+#tailscaled_args="" |
53 |
|
54 |
diff --git a/net-vpn/tailscale/files/tailscaled.initd b/net-vpn/tailscale/files/tailscaled.initd |
55 |
new file mode 100644 |
56 |
index 00000000000..c7edf4a19f0 |
57 |
--- /dev/null |
58 |
+++ b/net-vpn/tailscale/files/tailscaled.initd |
59 |
@@ -0,0 +1,14 @@ |
60 |
+#!/sbin/openrc-run |
61 |
+# Copyright 2020 Gentoo Authors |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+name="tailscaled" |
65 |
+description="Tailscale node agent" |
66 |
+command=/usr/sbin/tailscaled |
67 |
+command_args="--state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port ${tailscaled_port:-41641} ${tailscaled_args}" |
68 |
+supervisor=supervise-daemon |
69 |
+ |
70 |
+depend() { |
71 |
+ need net |
72 |
+ use logger |
73 |
+} |
74 |
|
75 |
diff --git a/net-vpn/tailscale/metadata.xml b/net-vpn/tailscale/metadata.xml |
76 |
new file mode 100644 |
77 |
index 00000000000..126b9ca42a2 |
78 |
--- /dev/null |
79 |
+++ b/net-vpn/tailscale/metadata.xml |
80 |
@@ -0,0 +1,8 @@ |
81 |
+<?xml version="1.0" encoding="UTF-8"?> |
82 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
83 |
+<pkgmetadata> |
84 |
+ <maintainer type="person"> |
85 |
+ <name>Patrick McLean</name> |
86 |
+ <email>chutzpah@g.o</email> |
87 |
+ </maintainer> |
88 |
+</pkgmetadata> |
89 |
|
90 |
diff --git a/net-vpn/tailscale/tailscale-0.97_p45.ebuild b/net-vpn/tailscale/tailscale-0.97_p45.ebuild |
91 |
new file mode 100644 |
92 |
index 00000000000..42558405f11 |
93 |
--- /dev/null |
94 |
+++ b/net-vpn/tailscale/tailscale-0.97_p45.ebuild |
95 |
@@ -0,0 +1,50 @@ |
96 |
+# Copyright 2020 Gentoo Authors |
97 |
+# Distributed under the terms of the GNU General Public License v2 |
98 |
+ |
99 |
+EAPI=7 |
100 |
+ |
101 |
+inherit systemd tmpfiles |
102 |
+ |
103 |
+DESCRIPTION="Tailscale vpn client" |
104 |
+HOMEPAGE="https://tailscale.com" |
105 |
+ |
106 |
+MY_PV="${PV//_p/-}" |
107 |
+MY_P="${PN}_${MY_PV}" |
108 |
+SRC_URI=" |
109 |
+ amd64? ( https://pkgs.tailscale.com/stable/${MY_P}_amd64.tgz ) |
110 |
+ arm? ( https://pkgs.tailscale.com/stable/${MY_P}_arm.tgz ) |
111 |
+ arm64? ( https://pkgs.tailscale.com/stable/${MY_P}_arm64.tgz ) |
112 |
+ x86? ( https://pkgs.tailscale.com/stable/${MY_P}_386.tgz ) |
113 |
+" |
114 |
+ |
115 |
+LICENSE="MIT" |
116 |
+SLOT="0" |
117 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
118 |
+ |
119 |
+RDEPEND="net-firewall/iptables" |
120 |
+ |
121 |
+QA_PRECOMPILED="**" |
122 |
+ |
123 |
+src_unpack() { |
124 |
+ default |
125 |
+ use amd64 && S="${WORKDIR}/${MY_P}_amd64" |
126 |
+ use arm && S="${WORKDIR}/${MY_P}_arm" |
127 |
+ use arm64 && S="${WORKDIR}/${MY_P}_arm64" |
128 |
+ use x86 && S="${WORKDIR}/${MY_P}_386" |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ dosbin ${PN}d |
133 |
+ dobin ${PN} |
134 |
+ |
135 |
+ systemd_dounit systemd/*.service |
136 |
+ insinto /etc/default |
137 |
+ newins systemd/tailscaled.defaults ${PN} |
138 |
+ keepdir /var/lib/${PN} |
139 |
+ fperms 0750 /var/lib/${PN} |
140 |
+ |
141 |
+ newtmpfiles "${FILESDIR}/${PN}.tmpfiles" ${PN}.conf |
142 |
+ |
143 |
+ newinitd "${FILESDIR}/${PN}d.initd" ${PN} |
144 |
+ newconfd "${FILESDIR}/${PN}d.confd" ${PN} |
145 |
+} |