aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBratishkaErik <bratishkaerik@getgoogleoff.me>2022-03-26 21:16:46 +0600
committerBratishkaErik <bratishkaerik@getgoogleoff.me>2022-03-26 21:16:59 +0600
commit40f13ae4f10bc4508d0dd21b4f88b502a4e433f1 (patch)
tree041659f69f840c25f8a8b8b3ec9169fc4f06ae25 /net-p2p/yggdrasil-go
parentnet-p2p/yggdrasil-go: remove old versions (diff)
downloadguru-40f13ae4f10bc4508d0dd21b4f88b502a4e433f1.tar.gz
guru-40f13ae4f10bc4508d0dd21b4f88b502a4e433f1.tar.bz2
guru-40f13ae4f10bc4508d0dd21b4f88b502a4e433f1.zip
net-p2p/yggdrasil-go: add new version
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me>
Diffstat (limited to 'net-p2p/yggdrasil-go')
-rw-r--r--net-p2p/yggdrasil-go/Manifest2
-rw-r--r--net-p2p/yggdrasil-go/yggdrasil-go-0.3.15.ebuild4
-rw-r--r--net-p2p/yggdrasil-go/yggdrasil-go-0.4.3.ebuild49
3 files changed, 53 insertions, 2 deletions
diff --git a/net-p2p/yggdrasil-go/Manifest b/net-p2p/yggdrasil-go/Manifest
index db9d1a6f9..45d7d4c92 100644
--- a/net-p2p/yggdrasil-go/Manifest
+++ b/net-p2p/yggdrasil-go/Manifest
@@ -63,3 +63,5 @@ DIST golang.zx2c4.com%2Fwireguard%2F@v%2Fv0.0.20200320.zip 146832 BLAKE2B 99a9b5
DIST golang.zx2c4.com%2Fwireguard%2Fwindows%2F@v%2Fv0.1.0.mod 677 BLAKE2B 8d6dcae94321a2495f9ef9be5eadf503c7e53de3fececaaa35fa2cd462f4d3286168c2606de103cf9d4e8e43895f81a18aa843d093db0a728510c2804bc59e15 SHA512 b00baab7efde4ba31f3cac2e4ba14c8e7678b1273538dd1d19951e3b6cd380a31b1f49518be57d4048a3101a18aa21887701c942274aa58217884d713bc7f812
DIST golang.zx2c4.com%2Fwireguard%2Fwindows%2F@v%2Fv0.1.0.zip 257029 BLAKE2B ca5e6b076624bf9cb12252f3b8736ffa81d1f2e969793ceed16f250ca26711e264c11a109f91276c3ce35444ef72953231b16e402d2dbb8197e35235723bbd44 SHA512 a7ecec8842fced40ecda8acd303725c16c90f45d3c0568d4efb0075d99a7f0281bbc9900ebd506083bf1c10859afafc9b7e38bef778decd846c1b93b67c4d7df
DIST yggdrasil-go-0.3.15.tar.gz 166072 BLAKE2B 8375a6f731ec175b98d68155c1cabb3af7bc3dd6efee93701bd74acbc5ef2a6a724284abb99792ecb65e423b66a47d6f291f19f287e220435000115689b3fcd7 SHA512 1b59fecfa210a3d8d41776e4cb4b5399121e820389a64f4f1df893a9c537b67b1a26ca68c735fcae3208f24163ac809fa278f2ee2a1102c88145fdb6ac4c9db4
+DIST yggdrasil-go-0.4.3-deps.tar.bz2 50002287 BLAKE2B 3c26a9cbc5056388c1877427f941c97a70f4d5f8765de7c8046f85fce799d16c3c611006a0aac36429a72241d4b9b607de62e5a110910c544a13353cd7693756 SHA512 6b283a5dbb47827f4fa5e056e1453f33097d345497b688482402b46e22fa4eb8bc7dcf019b82963a4070d4d245985452ca67d19c9910554b76698d15713ac145
+DIST yggdrasil-go-0.4.3.tar.gz 96364 BLAKE2B 8474f52771d7a34027a56de83f74c3ed0f66127b5bcdf498c5820713079e2da1c9ac0c44b0e19903b15ae32fd47d79f8b4cbbe9607dff1951c5ea74ff1af409d SHA512 00ba6e611c6073e150db0d402edfcd4d548021b30c7afcc11507dfb2ac2e730433bd9f39438331e9d9de6d8a36fc57dc9f01b0d1cbad4927ffbf60906042aac3
diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.3.15.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.3.15.ebuild
index 7a09e6f2d..662d0e025 100644
--- a/net-p2p/yggdrasil-go/yggdrasil-go-0.3.15.ebuild
+++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.3.15.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit go-module linux-info systemd
diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.4.3.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.3.ebuild
new file mode 100644
index 000000000..e6c2f03ed
--- /dev/null
+++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module linux-info systemd
+
+DESCRIPTION="An experiment in scalable routing as an encrypted IPv6 overlay network"
+HOMEPAGE="https://yggdrasil-network.github.io/"
+SRC_URI="
+ https://github.com/yggdrasil-network/yggdrasil-go/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://gitea.minecast.xyz/BratishkaErik/distfiles/media/branch/master/${P}-deps.tar.bz2
+"
+
+LICENSE="LGPL-3 MIT Apache-2.0 BSD ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="mirror"
+
+DEPEND="
+ acct-user/yggdrasil
+ acct-group/yggdrasil
+"
+
+BDEPEND=">=dev-lang/go-1.16.0"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! linux_config_exists; then
+ eerror "Unable to check your kernel for TUN support"
+ else
+ CONFIG_CHECK="~TUN"
+ ERROR_TUN="Your kernel lacks TUN support."
+ fi
+}
+
+src_compile() {
+ PKGNAME="${PN}" PKGVER="${PV}" \
+ GOFLAGS="-trimpath -buildmode=pie -mod=readonly" \
+ ./build -l "-linkmode external -extldflags \"${LDFLAGS}\""
+}
+
+src_install() {
+ dobin {yggdrasil,yggdrasilctl}
+ systemd_dounit "contrib/systemd/yggdrasil.service"
+ systemd_dounit "contrib/systemd/yggdrasil-default-config.service"
+ doinitd "contrib/openrc/yggdrasil"
+ einstalldocs
+}