1 |
commit: 3b818583939050b64fa2c995ee795ef85fbfa779 |
2 |
Author: BratishkaErik <bratishkaerik <AT> getgoogleoff <DOT> me> |
3 |
AuthorDate: Sat Mar 26 15:28:19 2022 +0000 |
4 |
Commit: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me> |
5 |
CommitDate: Sat Mar 26 15:28:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3b818583 |
7 |
|
8 |
net-p2p/yggdrasil-go: add 9999 version |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: BratishkaErik <bratishkaerik <AT> getgoogleoff.me> |
12 |
|
13 |
net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild | 50 +++++++++++++++++++++++++++ |
14 |
1 file changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..d803f16d4 |
19 |
--- /dev/null |
20 |
+++ b/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild |
21 |
@@ -0,0 +1,50 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit go-module linux-info systemd git-r3 |
28 |
+ |
29 |
+EGIT_REPO_URI="https://github.com/yggdrasil-network/yggdrasil-go" |
30 |
+ |
31 |
+DESCRIPTION="An experiment in scalable routing as an encrypted IPv6 overlay network" |
32 |
+HOMEPAGE="https://yggdrasil-network.github.io/" |
33 |
+DOCS=( README.md ) |
34 |
+ |
35 |
+LICENSE="LGPL-3 MIT Apache-2.0 BSD ZLIB" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="" |
38 |
+ |
39 |
+DEPEND=" |
40 |
+ acct-user/yggdrasil |
41 |
+ acct-group/yggdrasil |
42 |
+" |
43 |
+ |
44 |
+BDEPEND=">=dev-lang/go-1.16.0" |
45 |
+ |
46 |
+pkg_setup() { |
47 |
+ linux-info_pkg_setup |
48 |
+ if ! linux_config_exists; then |
49 |
+ eerror "Unable to check your kernel for TUN support" |
50 |
+ else |
51 |
+ CONFIG_CHECK="~TUN" |
52 |
+ ERROR_TUN="Your kernel lacks TUN support." |
53 |
+ fi |
54 |
+} |
55 |
+ |
56 |
+src_unpack() { |
57 |
+ git-r3_src_unpack |
58 |
+ go-module_live_vendor |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ GOFLAGS="-trimpath -buildmode=pie -mod=readonly" \ |
63 |
+ ./build -l "-linkmode external -extldflags \"${LDFLAGS}\"" |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ dobin {yggdrasil,yggdrasilctl} |
68 |
+ systemd_dounit "contrib/systemd/yggdrasil.service" |
69 |
+ systemd_dounit "contrib/systemd/yggdrasil-default-config.service" |
70 |
+ doinitd "contrib/openrc/yggdrasil" |
71 |
+} |