commit:     7a7842118b10d0de793eba2de9e0a342a94b8690
Author:     BratishkaErik <bratishkaerik <AT> getgoogleoff <DOT> me>
AuthorDate: Wed Mar 23 17:42:27 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Wed Mar 23 17:42:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7a784211

net-p2p/popura: Add new package

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: BratishkaErik <bratishkaerik <AT> getgoogleoff.me>

 net-p2p/popura/Manifest            |  2 ++
 net-p2p/popura/metadata.xml        | 13 ++++++++++
 net-p2p/popura/popura-0.4.3.ebuild | 53 ++++++++++++++++++++++++++++++++++++++
 net-p2p/popura/popura-9999.ebuild  | 52 +++++++++++++++++++++++++++++++++++++
 4 files changed, 120 insertions(+)

diff --git a/net-p2p/popura/Manifest b/net-p2p/popura/Manifest
new file mode 100644
index 000000000..342cb6300
--- /dev/null
+++ b/net-p2p/popura/Manifest
@@ -0,0 +1,2 @@
+DIST popura-0.4.3+popura1-deps.tar.bz2 52737816 BLAKE2B 
9bb9d8d14e9c968a86af950cc876937f7984541b87aaf9aa991d04edb0d264ffa80ccafb34ff5e56aba33d0980aa9aeed47e6deadf1bbdc2d7f1fbd419052f11
 SHA512 
def5d9a37dfb93fbd6329e78610b61d39aa00ddf8e4db04cbe553fb2f13ca61dd6331e2773333ad4e082812793818481576fe4f62674638432e9258a0f89e1a0
+DIST popura-0.4.3+popura1.tar.gz 46530 BLAKE2B 
192600801d120b85c11566090c7ce6e72d32a96d9600531c1669693e34063b1d7530be1e28a1b9d5859a31fc68fb4cb341acf9e8ff561f2609c554f9331b1dd3
 SHA512 
a6a1d40df4db94bc4a497530e4fcd67c34a598d02e1708a7f934f84c87105ce74fdfc70fd2745b7ad88198759a7d0fa5c7963dc41b96086020205a5411fda344

diff --git a/net-p2p/popura/metadata.xml b/net-p2p/popura/metadata.xml
new file mode 100644
index 000000000..2641f35f4
--- /dev/null
+++ b/net-p2p/popura/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>BratishkaErik</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">popura-network/Popura</remote-id>
+               
<bugs-to>https://github.com/popura-network/Popura/issues</bugs-to>
+               <doc 
lang="en">https://github.com/popura-network/Popura/wiki</doc>
+       </upstream>
+</pkgmetadata>

diff --git a/net-p2p/popura/popura-0.4.3.ebuild 
b/net-p2p/popura/popura-0.4.3.ebuild
new file mode 100644
index 000000000..26435abcd
--- /dev/null
+++ b/net-p2p/popura/popura-0.4.3.ebuild
@@ -0,0 +1,53 @@
+# 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="Popura: alternative Yggdrasil network client"
+HOMEPAGE="https://github.com/popura-network/Popura/";
+DOCS=( README.md )
+
+KEYWORDS="~amd64"
+SRC_URI="
+       https://github.com/popura-network/Popura/archive/v${PV}+popura1.tar.gz 
-> ${P}+popura1.tar.gz
+       
https://gitea.minecast.xyz/BratishkaErik/distfiles/media/branch/master/${P}+popura1-deps.tar.bz2
+"
+
+S="${WORKDIR}/Popura-${PV}-popura1"
+
+LICENSE="LGPL-3 MPL-2.0 MIT Apache-2.0 BSD ZLIB"
+SLOT="0"
+
+DEPEND="
+       acct-user/yggdrasil
+       acct-group/yggdrasil
+"
+
+RDEPEND="!!net-p2p/yggdrasil-go"
+
+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}+popura1" \
+       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"
+}

diff --git a/net-p2p/popura/popura-9999.ebuild 
b/net-p2p/popura/popura-9999.ebuild
new file mode 100644
index 000000000..5b58d7b27
--- /dev/null
+++ b/net-p2p/popura/popura-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module linux-info systemd git-r3
+
+EGIT_REPO_URI="https://github.com/popura-network/Popura";
+
+DESCRIPTION="Popura: alternative Yggdrasil network client"
+HOMEPAGE="https://github.com/popura-network/Popura";
+DOCS=( README.md )
+
+LICENSE="LGPL-3 MPL-2.0 MIT Apache-2.0 BSD ZLIB"
+SLOT="0"
+KEYWORDS=""
+
+DEPEND="
+       acct-user/yggdrasil
+       acct-group/yggdrasil
+"
+
+RDEPEND="!!net-p2p/yggdrasil-go"
+
+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_unpack() {
+       git-r3_src_unpack
+       go-module_live_vendor
+}
+
+src_compile() {
+       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"
+}

Reply via email to