Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: acct-group/yggdrasil/, net-p2p/yggdrasil-go/, acct-user/yggdrasil/
Date: Sat, 25 Sep 2021 17:14:55
Message-Id: 1632494636.d90a692a689e91b6105537010ba987c9b2d26c07.arthurzam@gentoo
1 commit: d90a692a689e91b6105537010ba987c9b2d26c07
2 Author: Aleksandr Tkachenko <tk.alexander <AT> yandex <DOT> ru>
3 AuthorDate: Fri Sep 24 14:42:32 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 24 14:43:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d90a692a
7
8 net-p2p/yggdrasil-go: add 0.4.0
9
10 Signed-off-by: Aleksandr Tkachenko <tk.alexander <AT> yandex.ru>
11
12 acct-group/yggdrasil/yggdrasil-1.ebuild | 8 ++
13 acct-user/yggdrasil/yggdrasil-1.ebuild | 12 +++
14 net-p2p/yggdrasil-go/yggdrasil-go-0.4.0.ebuild | 136 +++++++++++++++++++++++++
15 3 files changed, 156 insertions(+)
16
17 diff --git a/acct-group/yggdrasil/yggdrasil-1.ebuild b/acct-group/yggdrasil/yggdrasil-1.ebuild
18 new file mode 100644
19 index 000000000..e7f909014
20 --- /dev/null
21 +++ b/acct-group/yggdrasil/yggdrasil-1.ebuild
22 @@ -0,0 +1,8 @@
23 +# Copyright 2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +inherit acct-group
29 +
30 +ACCT_GROUP_ID=-1
31
32 diff --git a/acct-user/yggdrasil/yggdrasil-1.ebuild b/acct-user/yggdrasil/yggdrasil-1.ebuild
33 new file mode 100644
34 index 000000000..962e860c7
35 --- /dev/null
36 +++ b/acct-user/yggdrasil/yggdrasil-1.ebuild
37 @@ -0,0 +1,12 @@
38 +# Copyright 2021 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +inherit acct-user
44 +
45 +DESCRIPTION="Yggdrasil user"
46 +ACCT_USER_ID=-1
47 +ACCT_USER_GROUPS=( yggdrasil )
48 +
49 +acct-user_add_deps
50
51 diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.4.0.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.0.ebuild
52 new file mode 100644
53 index 000000000..4a540aecb
54 --- /dev/null
55 +++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.0.ebuild
56 @@ -0,0 +1,136 @@
57 +# Copyright 1999-2020 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=7
61 +
62 +inherit go-module linux-info systemd
63 +
64 +EGO_SUM=(
65 +"github.com/Arceliar/ironwood v0.0.0-20210619124114-6ad55cae5031"
66 +"github.com/Arceliar/ironwood v0.0.0-20210619124114-6ad55cae5031/go.mod"
67 +"github.com/Arceliar/phony v0.0.0-20210209235338-dde1a8dca979"
68 +"github.com/Arceliar/phony v0.0.0-20210209235338-dde1a8dca979/go.mod"
69 +"github.com/VividCortex/ewma v1.1.1/go.mod"
70 +"github.com/VividCortex/ewma v1.2.0"
71 +"github.com/VividCortex/ewma v1.2.0/go.mod"
72 +"github.com/cheggaaa/pb/v3 v3.0.8"
73 +"github.com/cheggaaa/pb/v3 v3.0.8/go.mod"
74 +"github.com/fatih/color v1.10.0/go.mod"
75 +"github.com/fatih/color v1.12.0"
76 +"github.com/fatih/color v1.12.0/go.mod"
77 +"github.com/gologme/log v1.2.0"
78 +"github.com/gologme/log v1.2.0/go.mod"
79 +"github.com/hashicorp/go-syslog v1.0.0"
80 +"github.com/hashicorp/go-syslog v1.0.0/go.mod"
81 +"github.com/hjson/hjson-go v3.1.0+incompatible"
82 +"github.com/hjson/hjson-go v3.1.0+incompatible/go.mod"
83 +"github.com/kardianos/minwinsvc v1.0.0"
84 +"github.com/kardianos/minwinsvc v1.0.0/go.mod"
85 +"github.com/lxn/walk v0.0.0-20210112085537-c389da54e794/go.mod"
86 +"github.com/lxn/win v0.0.0-20210218163916-a377121e959e/go.mod"
87 +"github.com/mattn/go-colorable v0.1.8"
88 +"github.com/mattn/go-colorable v0.1.8/go.mod"
89 +"github.com/mattn/go-isatty v0.0.12/go.mod"
90 +"github.com/mattn/go-isatty v0.0.13"
91 +"github.com/mattn/go-isatty v0.0.13/go.mod"
92 +"github.com/mattn/go-runewidth v0.0.12/go.mod"
93 +"github.com/mattn/go-runewidth v0.0.13"
94 +"github.com/mattn/go-runewidth v0.0.13/go.mod"
95 +"github.com/mitchellh/mapstructure v1.4.1"
96 +"github.com/mitchellh/mapstructure v1.4.1/go.mod"
97 +"github.com/rivo/uniseg v0.1.0/go.mod"
98 +"github.com/rivo/uniseg v0.2.0"
99 +"github.com/rivo/uniseg v0.2.0/go.mod"
100 +"github.com/vishvananda/netlink v1.1.0"
101 +"github.com/vishvananda/netlink v1.1.0/go.mod"
102 +"github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod"
103 +"github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f"
104 +"github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f/go.mod"
105 +"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
106 +"golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod"
107 +"golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod"
108 +"golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod"
109 +"golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a"
110 +"golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod"
111 +"golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
112 +"golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod"
113 +"golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod"
114 +"golang.org/x/net v0.0.0-20210610132358-84b48f89b13b"
115 +"golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod"
116 +"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
117 +"golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod"
118 +"golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod"
119 +"golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod"
120 +"golang.org/x/sys v0.0.0-20200217220822-9197077df867/go.mod"
121 +"golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod"
122 +"golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod"
123 +"golang.org/x/sys v0.0.0-20201018230417-eeed37f84f13/go.mod"
124 +"golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
125 +"golang.org/x/sys v0.0.0-20210309040221-94ec62e08169/go.mod"
126 +"golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod"
127 +"golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod"
128 +"golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod"
129 +"golang.org/x/sys v0.0.0-20210611083646-a4fc73990273"
130 +"golang.org/x/sys v0.0.0-20210611083646-a4fc73990273/go.mod"
131 +"golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod"
132 +"golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod"
133 +"golang.org/x/text v0.3.0/go.mod"
134 +"golang.org/x/text v0.3.3/go.mod"
135 +"golang.org/x/text v0.3.6/go.mod"
136 +"golang.org/x/text v0.3.7-0.20210503195748-5c7c50ebbd4f"
137 +"golang.org/x/text v0.3.7-0.20210503195748-5c7c50ebbd4f/go.mod"
138 +"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
139 +"golang.zx2c4.com/wireguard v0.0.0-20210510202332-9844c74f67ec/go.mod"
140 +"golang.zx2c4.com/wireguard v0.0.0-20210604143328-f9b48a961cd2"
141 +"golang.zx2c4.com/wireguard v0.0.0-20210604143328-f9b48a961cd2/go.mod"
142 +"golang.zx2c4.com/wireguard/windows v0.3.14"
143 +"golang.zx2c4.com/wireguard/windows v0.3.14/go.mod"
144 +)
145 +
146 +go-module_set_globals
147 +
148 +DESCRIPTION="An experiment in scalable routing as an encrypted IPv6 overlay network"
149 +HOMEPAGE="https://yggdrasil-network.github.io/"
150 +SRC_URI="
151 + https://github.com/yggdrasil-network/yggdrasil-go/archive/v${PV}.tar.gz -> ${P}.tar.gz
152 + ${EGO_SUM_SRC_URI}
153 +"
154 +
155 +LICENSE="LGPL-3 MIT Apache-2.0 BSD ZLIB"
156 +SLOT="0"
157 +KEYWORDS="~amd64"
158 +RESTRICT="mirror"
159 +
160 +DEPEND="
161 + acct-user/yggdrasil
162 + acct-group/yggdrasil
163 +"
164 +RDEPEND=">=dev-vcs/git-1.7.3"
165 +BDEPEND=">=dev-lang/go-1.16"
166 +
167 +pkg_setup() {
168 + linux-info_pkg_setup
169 + if ! linux_config_exists; then
170 + eerror "Unable to check your kernel for TUN support"
171 + else
172 + CONFIG_CHECK="~TUN"
173 + ERROR_TUN="Your kernel lacks TUN support."
174 + fi
175 +}
176 +
177 +src_compile() {
178 + local PKGSRC="github.com/yggdrasil-network/yggdrasil-go/src/version"
179 + local PKGNAME="${PN}-${PV}"
180 + local PKGVER="v${PV}"
181 + local LDGOFLAGS="-X ${PKGSRC}.buildName=${PKGNAME} -X ${PKGSRC}.buildVersion=${PKGVER}"
182 + for CMD in yggdrasil yggdrasilctl ; do
183 + go build -v -x -ldflags="${LDGOFLAGS}" -o ${CMD} ./cmd/${CMD}
184 + done
185 +}
186 +
187 +src_install() {
188 + dobin {yggdrasil,yggdrasilctl}
189 + systemd_dounit "contrib/systemd/yggdrasil.service"
190 + doinitd "contrib/openrc/yggdrasil"
191 + einstalldocs
192 +}