From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-p2p/yggdrasil-go/
Date: Thu, 11 Aug 2022 13:45:11 +0000 (UTC) [thread overview]
Message-ID: <1660076718.93cfd952aceadb153940160f01c56888fb5b59cd.andrewammerlaan@gentoo> (raw)
commit: 93cfd952aceadb153940160f01c56888fb5b59cd
Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
AuthorDate: Tue Aug 9 20:25:18 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Aug 9 20:25:18 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=93cfd952
net-p2p/yggdrasil-go: install docs, set file capabilities
Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me>
net-p2p/yggdrasil-go/yggdrasil-go-0.4.4.ebuild | 18 +++++++++++++-----
net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild | 18 +++++++++++++-----
2 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.4.4.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.4.ebuild
index 726c54483..f8bfdf265 100644
--- a/net-p2p/yggdrasil-go/yggdrasil-go-0.4.4.ebuild
+++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.4.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit go-module linux-info systemd
+inherit go-module linux-info systemd fcaps
DESCRIPTION="An experiment in scalable routing as an encrypted IPv6 overlay network"
HOMEPAGE="https://yggdrasil-network.github.io/"
@@ -24,6 +24,10 @@ DEPEND="
BDEPEND=">=dev-lang/go-1.17.0"
+FILECAPS=(
+ cap_net_admin,cap_net_bind_service "usr/bin/yggdrasil"
+)
+
pkg_setup() {
linux-info_pkg_setup
if ! linux_config_exists; then
@@ -35,15 +39,19 @@ pkg_setup() {
}
src_compile() {
- PKGNAME="${PN}" PKGVER="${PV}" \
- GOFLAGS="-trimpath -buildmode=pie -mod=readonly" \
- ./build -l "-linkmode external -extldflags \"${LDFLAGS}\""
+ 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
+ dodoc CHANGELOG.md
systemd_dounit "contrib/systemd/yggdrasil.service"
systemd_dounit "contrib/systemd/yggdrasil-default-config.service"
doinitd "contrib/openrc/yggdrasil"
- einstalldocs
}
diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild
index d803f16d4..20419a673 100644
--- a/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild
+++ b/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild
@@ -3,13 +3,12 @@
EAPI=8
-inherit go-module linux-info systemd git-r3
+inherit go-module linux-info systemd git-r3 fcaps
EGIT_REPO_URI="https://github.com/yggdrasil-network/yggdrasil-go"
DESCRIPTION="An experiment in scalable routing as an encrypted IPv6 overlay network"
HOMEPAGE="https://yggdrasil-network.github.io/"
-DOCS=( README.md )
LICENSE="LGPL-3 MIT Apache-2.0 BSD ZLIB"
SLOT="0"
@@ -20,7 +19,11 @@ DEPEND="
acct-group/yggdrasil
"
-BDEPEND=">=dev-lang/go-1.16.0"
+BDEPEND=">=dev-lang/go-1.17.0"
+
+FILECAPS=(
+ cap_net_admin,cap_net_bind_service "usr/bin/yggdrasil"
+)
pkg_setup() {
linux-info_pkg_setup
@@ -38,12 +41,17 @@ src_unpack() {
}
src_compile() {
- GOFLAGS="-trimpath -buildmode=pie -mod=readonly" \
- ./build -l "-linkmode external -extldflags \"${LDFLAGS}\""
+ 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
+ dodoc CHANGELOG.md
systemd_dounit "contrib/systemd/yggdrasil.service"
systemd_dounit "contrib/systemd/yggdrasil-default-config.service"
doinitd "contrib/openrc/yggdrasil"
next reply other threads:[~2022-08-11 13:45 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-11 13:45 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-06 15:49 [gentoo-commits] repo/proj/guru:master commit in: net-p2p/yggdrasil-go/ David Roman
2025-02-06 9:25 David Roman
2025-02-06 9:25 David Roman
2024-10-29 14:06 David Roman
2024-10-29 14:06 David Roman
2024-10-29 14:06 David Roman
2024-08-10 20:34 Lucio Sauer
2024-08-10 20:34 Lucio Sauer
2024-08-01 21:51 Lucio Sauer
2024-07-31 22:49 Lucio Sauer
2024-04-08 21:32 Julien Roy
2024-02-20 8:48 Haelwenn Monnier
2024-02-14 16:01 Andrew Ammerlaan
2024-02-14 16:01 Andrew Ammerlaan
2023-11-30 10:44 Andrew Ammerlaan
2023-11-18 9:53 Andrew Ammerlaan
2023-11-10 20:18 David Roman
2023-11-01 23:27 Haelwenn Monnier
2022-12-07 19:50 Ronny Gutbrod
2022-11-16 10:19 Florian Schmaus
2022-11-16 10:19 Florian Schmaus
2022-10-29 5:54 Arthur Zamarin
2022-08-11 13:45 Andrew Ammerlaan
2022-07-11 6:54 Andrew Ammerlaan
2021-09-25 17:14 Arthur Zamarin
2021-09-25 17:14 Arthur Zamarin
2020-12-27 12:48 Andrew Ammerlaan
2020-04-27 7:02 Andrew Ammerlaan
2020-04-03 21:37 Haelwenn Monnier
2020-03-24 16:37 Michał Górny
2020-03-15 20:21 Andrew Ammerlaan
2020-03-15 20:20 Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1660076718.93cfd952aceadb153940160f01c56888fb5b59cd.andrewammerlaan@gentoo \
--to=andrewammerlaan@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox