1 |
commit: 3e4be71aa43961da1c2b85c79221a8f9fd0e9467 |
2 |
Author: Chris Su <chris <AT> lesscrowds <DOT> org> |
3 |
AuthorDate: Thu Feb 16 14:51:56 2023 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 16 09:49:00 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e4be71a |
7 |
|
8 |
net-vpn/headscale: 0.20.0 version bump |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/29617 |
11 |
Signed-off-by: Chris Su <chris <AT> lesscrowds.org> |
12 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
13 |
|
14 |
net-vpn/headscale/Manifest | 2 ++ |
15 |
net-vpn/headscale/headscale-0.20.0.ebuild | 48 +++++++++++++++++++++++++++++++ |
16 |
net-vpn/headscale/metadata.xml | 3 ++ |
17 |
3 files changed, 53 insertions(+) |
18 |
|
19 |
diff --git a/net-vpn/headscale/Manifest b/net-vpn/headscale/Manifest |
20 |
index 52c778b6f3eb..90ab2fca7de4 100644 |
21 |
--- a/net-vpn/headscale/Manifest |
22 |
+++ b/net-vpn/headscale/Manifest |
23 |
@@ -1,2 +1,4 @@ |
24 |
DIST headscale-0.16.2-deps.tar.xz 246778024 BLAKE2B 7c2beff2b18ca87aa4d496332d6b521f31d7b496227950204d9efe35f8259fdf1f3519fce951827f3698b5c166148db3ef69225acf16ce2e659b70017ac9e0f2 SHA512 5bc9b1b6bf1c3c70a7e033c2820c9fc05df45d19855e8050687072f0394920d77416640eb9af100027a96646df285b5a3d09bab4c959d4475e8b2b304f01a4ef |
25 |
DIST headscale-0.16.2.tar.gz 391683 BLAKE2B c75835e7f15847236b357988cdb66c65c3e2cb6ac2328e4fb5cb07da9c132b664afe69fcaf3fa9f6a70951e76a91ddf8fda2ea74c1af9055daca30f3efb593ab SHA512 bad885866855211d43b45dcc7b958595967241af4c2a1b370532fef7c751b85002138cd3742e4046603af383c123b66afd7de9aba59e8eee600d7ffdd70ff12c |
26 |
+DIST headscale-0.20.0-deps.tar.xz 199890824 BLAKE2B 4b96f22d2cd1c4156bb730cc476dbf65b969b64b857cbdc0d91714b031ca8df4993327a2e31bf8dec51b5309790bf8e606117b7c49a96654914551a9081df3cf SHA512 2394e5e995d8fae72b9561e98c1d2576309a37583441a42eee1d74fd123340dba8615c78beb581633aea15b234d213cbfcd97701c8cbf6dc85381d7dca4252a7 |
27 |
+DIST headscale-0.20.0.tar.gz 581431 BLAKE2B 07def2a4e6509759a1b7a18c8faa426e420a17b42290e3162540c8115316012cc83a5cbd9e8918940244591ebfca4a9225e5a0475554e52f54bd791904d6407e SHA512 e201c63f3646501229b114b48c3603945272b79390f4ab8d3f9bc557cdf02b1c404cd18ba85aaf1a5038ec41361746177278a51d6075db5944d3edf1efdcc4be |
28 |
|
29 |
diff --git a/net-vpn/headscale/headscale-0.20.0.ebuild b/net-vpn/headscale/headscale-0.20.0.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..12d3cfd3a6af |
32 |
--- /dev/null |
33 |
+++ b/net-vpn/headscale/headscale-0.20.0.ebuild |
34 |
@@ -0,0 +1,48 @@ |
35 |
+# Copyright 2023 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+inherit go-module systemd |
41 |
+ |
42 |
+DESCRIPTION="An open source, self-hosted implementation of the Tailscale control server" |
43 |
+HOMEPAGE="https://github.com/juanfont/headscale" |
44 |
+DEPS_URIS=( https://github.com/slchris/gentoo-go-deps/releases/download/headscale-0.20.0/${P}-deps.tar.xz ) |
45 |
+SRC_URI="https://github.com/juanfont/headscale/archive/v${PV}.tar.gz -> ${P}.tar.gz |
46 |
+ ${DEPS_URIS}" |
47 |
+ |
48 |
+LICENSE="BSD Apache-2.0 MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~riscv" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ acct-group/headscale |
54 |
+ acct-user/headscale |
55 |
+" |
56 |
+RDEPEND=" |
57 |
+ ${DEPEND} |
58 |
+ net-firewall/iptables |
59 |
+" |
60 |
+ |
61 |
+src_compile() { |
62 |
+ export -n GOCACHE XDG_CACHE_HOME |
63 |
+ go build -o ./bin/${PN} ./cmd/${PN} || die |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ dobin bin/headscale |
68 |
+ dodoc -r config-example.yaml derp-example.yaml |
69 |
+ keepdir /etc/headscale /var/lib/headscale |
70 |
+ systemd_dounit "${FILESDIR}"/headscale.service |
71 |
+ newconfd "${FILESDIR}"/headscale.confd headscale |
72 |
+ newinitd "${FILESDIR}"/headscale.initd headscale |
73 |
+ fowners -R ${PN}:${PN} /etc/headscale /var/lib/headscale |
74 |
+} |
75 |
+ |
76 |
+pkg_postinst() { |
77 |
+ [[ -f "${EROOT}"/etc/headscale/config.yaml ]] && return |
78 |
+ elog "Please create ${EROOT}/etc/headscale/config.yaml before starting the service" |
79 |
+ elog "An example is in ${EROOT}/usr/share/doc/${P}/config-example.yaml.bz2" |
80 |
+ ewarn ">=headscale-0.19.0 has a DB structs breaking, please BACKUP your database before upgrading!" |
81 |
+ ewarn "see also: https://github.com/juanfont/headscale/pull/1171 and https://github.com/juanfont/headscale/pull/1144" |
82 |
+} |
83 |
|
84 |
diff --git a/net-vpn/headscale/metadata.xml b/net-vpn/headscale/metadata.xml |
85 |
index 73d345656db7..f02e9a5a66e4 100644 |
86 |
--- a/net-vpn/headscale/metadata.xml |
87 |
+++ b/net-vpn/headscale/metadata.xml |
88 |
@@ -13,4 +13,7 @@ |
89 |
<email>jsmolic@g.o</email> |
90 |
<name>Jakov Smolić</name> |
91 |
</maintainer> |
92 |
+ <upstream> |
93 |
+ <remote-id type="github">juanfont/headscale</remote-id> |
94 |
+ </upstream> |
95 |
</pkgmetadata> |