net-p2p/popura: treeclean

Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
Julien Roy
2024-03-25 12:17:14 -04:00
parent 43cf5f22df
commit f4620e9fbd
4 changed files with 0 additions and 128 deletions

View File

@@ -1,2 +0,0 @@
DIST popura-0.4.6-vendor.tar.xz 1075916 BLAKE2B af54506ea8ec27de78c2481ba47b1b8bb25ef20bb90a198492eec9b0b5e0e72b94f40e441ed0218032665bf3860dc060481ae217dc0d2a8149cd352fa8a4ea9e SHA512 f241ec372952fd9730b477d5cb72fc9f3efc4c98c5f0a65d4f03be98e90a76eb3090d21abbb46c72c74a282f33edc080b73ac1ed66cd31694fe81aca6aa7d061
DIST popura-0.4.6.tar.gz 45804 BLAKE2B 52da18837dfdc3350d339374b1a8903875d5bb60643aa337365d3f0ed741a228775b61191b6cfa6908f797fae0b8a387b41ed1474b6d694d5d044dd06317e549 SHA512 0ff3c00a844302b8b4d30d6bf5544b45b49b2a3db0d602038fae8f9ea75b2de3bd14a38f865df1a0f67196dc1781a0cb12fa0c85a3cd0469581c45106bc5b75b

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>bratishkaerik@getgoogleoff.me</email>
<name>Eric Joldasov</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>

View File

@@ -1,57 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module linux-info systemd fcaps
DESCRIPTION="Popura: alternative Yggdrasil network client"
HOMEPAGE="https://github.com/popura-network/Popura/"
SRC_URI="
https://github.com/popura-network/Popura/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/popura-network/Popura/releases/download/v${PV}/popura-${PV}-vendor.tar.xz
"
LICENSE="LGPL-3 MPL-2.0 MIT Apache-2.0 BSD ZLIB"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
acct-user/yggdrasil
acct-group/yggdrasil
"
BDEPEND=">=dev-lang/go-1.17.0"
RDEPEND="!net-p2p/yggdrasil-go"
S="${WORKDIR}/Popura-${PV}"
FILECAPS=(
cap_net_admin,cap_net_bind_service "usr/bin/yggdrasil"
)
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() {
local package="github.com/yggdrasil-network/yggdrasil-go/src/version"
for CMD in yggdrasil yggdrasilctl ; do
ego build -buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS}' -X ${package}.buildName=${PN} -X ${package}.buildVersion=v${PV}" -trimpath ./cmd/$CMD
done
}
src_install() {
dobin {yggdrasil,yggdrasilctl}
dodoc README.md
systemd_dounit "contrib/systemd/yggdrasil.service"
systemd_dounit "contrib/systemd/yggdrasil-default-config.service"
doinitd "contrib/openrc/yggdrasil"
}

View File

@@ -1,56 +0,0 @@
# 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 fcaps
DESCRIPTION="Popura: alternative Yggdrasil network client"
HOMEPAGE="https://github.com/popura-network/Popura"
EGIT_REPO_URI="https://github.com/popura-network/Popura"
LICENSE="LGPL-3 MPL-2.0 MIT Apache-2.0 BSD ZLIB"
SLOT="0"
DEPEND="
acct-user/yggdrasil
acct-group/yggdrasil
"
BDEPEND=">=dev-lang/go-1.16.0"
RDEPEND="!net-p2p/yggdrasil-go"
FILECAPS=(
cap_net_admin,cap_net_bind_service "usr/bin/yggdrasil"
)
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() {
local package="github.com/yggdrasil-network/yggdrasil-go/src/version"
for CMD in yggdrasil yggdrasilctl ; do
ego build -buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS}' -X ${package}.buildName=${PN} -X ${package}.buildVersion=v${PV}+popura1" -trimpath ./cmd/$CMD
done
}
src_install() {
dobin {yggdrasil,yggdrasilctl}
dodoc README.md
systemd_dounit "contrib/systemd/yggdrasil.service"
systemd_dounit "contrib/systemd/yggdrasil-default-config.service"
doinitd "contrib/openrc/yggdrasil"
}