From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7373D158042 for ; Tue, 29 Oct 2024 14:06:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01530E0866; Tue, 29 Oct 2024 14:06:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9015E085B for ; Tue, 29 Oct 2024 14:06:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 13FD33430AC for ; Tue, 29 Oct 2024 14:06:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 961322215 for ; Tue, 29 Oct 2024 14:06:40 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1730155664.7ffb78e153646faad3ba9e83362243b915e1773e.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-p2p/yggdrasil-go/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-p2p/yggdrasil-go/Manifest net-p2p/yggdrasil-go/yggdrasil-go-0.5.9.ebuild X-VCS-Directories: net-p2p/yggdrasil-go/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 7ffb78e153646faad3ba9e83362243b915e1773e X-VCS-Branch: master Date: Tue, 29 Oct 2024 14:06:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 813b7ed9-fa06-4f9b-b463-45f0b522a492 X-Archives-Hash: b16353279f2a9163107bb50267cbb049 commit: 7ffb78e153646faad3ba9e83362243b915e1773e Author: Eric Joldasov landless-city net> AuthorDate: Mon Oct 28 22:47:44 2024 +0000 Commit: David Roman gmail com> CommitDate: Mon Oct 28 22:47:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7ffb78e1 net-p2p/yggdrasil-go: add 0.5.9 Signed-off-by: Eric Joldasov landless-city.net> net-p2p/yggdrasil-go/Manifest | 2 + net-p2p/yggdrasil-go/yggdrasil-go-0.5.9.ebuild | 79 ++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/net-p2p/yggdrasil-go/Manifest b/net-p2p/yggdrasil-go/Manifest index 435e3f2d8..226ea99d6 100644 --- a/net-p2p/yggdrasil-go/Manifest +++ b/net-p2p/yggdrasil-go/Manifest @@ -1,2 +1,4 @@ DIST yggdrasil-go-0.5.7-vendor.tar.xz 1474632 BLAKE2B c10f72f6bc94f07a51af70e55ce693ad140b4b4a1e9a7336bd80e46d6aca759f69c3d339a883732371dc4862e2da6bc4618ba046afe1a1c2efd72b2f5859482d SHA512 64ab1b29686d2c555c7f4fc8a20ea1b4bb40f05e795b010c5536cee5173647c2bcd4fff3b03ff0d8e196b33ffb814a60bdbf7d315fda7d986fdaaa6255d356cb DIST yggdrasil-go-0.5.7.tar.gz 107794 BLAKE2B 2baf4689e1ec70362c292a62b67dc944880f6e2ece4f35725b665dc11341c9ccce93433dd085bd41351dd11562c93fd070001b1c83f6b626a5d0606c9ab8c61f SHA512 aeb6668a30043ed1ae695702d21a51faa4acd1dc4c93cbafaf5afd902fdca9a8196ed6e0e2e05b63eba4ea64906b6e43680c79a19f97be8837aa61f161fb48fa +DIST yggdrasil-go-0.5.9-vendor.tar.xz 1396864 BLAKE2B 41e6e0b2f79eca45d59f959385e32ca1059f96c292acfc97b65894b5ac304ddea99b5bf670f27c0431d079beb408ce41bc9a7bbce8591e69a202134e36b51dc0 SHA512 bcb2085845d851e47b566fb7eea77bacd315f2efc22dfc814624793404034f942e180441f42133eeceda6b9f6ba71654df47437c04aba9f25175bc3d88c72b67 +DIST yggdrasil-go-0.5.9.tar.gz 109883 BLAKE2B 2a210f5b6d51703e184f7ba48d33cc301c3dc392daf79ef56a42481c46b4d45c996d2c292f685e38bac832efae44dfab4d21a789f259f6c4a4b455850df82793 SHA512 88fb5d6303b1b4a2a611131f939560d08f9d83f3516bf8d1aec041b03cca5e7711e9e989ff14d6f4588e76898b61b3ad51e9f9701837a0bd2235cdaf60e95bb8 diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.5.9.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.9.ebuild new file mode 100644 index 000000000..285b8c048 --- /dev/null +++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.9.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps go-module linux-info systemd + +DESCRIPTION="An experiment in scalable routing as an encrypted IPv6 overlay network" +HOMEPAGE="https://yggdrasil-network.github.io/" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/yggdrasil-network/yggdrasil-go" + inherit git-r3 +else + SRC_URI=" + https://github.com/yggdrasil-network/yggdrasil-go/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://codeberg.org/BratishkaErik/distfiles/releases/download/yggdrasil-go-${PV}/yggdrasil-go-${PV}-vendor.tar.xz + " + KEYWORDS="~amd64 ~arm64" +fi + +LICENSE="LGPL-3 MIT Apache-2.0 BSD ZLIB" +SLOT="0" + +RESTRICT="mirror" + +BDEPEND=">=dev-lang/go-1.23" +DEPEND=" + acct-user/yggdrasil + acct-group/yggdrasil +" + +DOCS=( "README.md" "CHANGELOG.md" ) + +FILECAPS=( + cap_net_admin,cap_net_bind_service "usr/bin/yggdrasil" +) + +CONFIG_CHECK="~TUN" +ERROR_TUN="Your kernel lacks TUN support." + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + go-module_live_vendor + fi + go-module_src_unpack +} + +src_compile() { + GOFLAGS+=" -mod=vendor -trimpath" + + local src="github.com/yggdrasil-network/yggdrasil-go/src/version" + local name version + if [[ ${PV} == 9999 ]]; then + chmod +x ./contrib/semver/{name,version}.sh || die + name="$(./contrib/semver/name.sh || die)" + version="$(./contrib/semver/version.sh || die)" + else + name="yggdrasil" + version="v${PV}" + fi + local custom_name_version_flags="-X ${src}.buildName=${name} -X ${src}.buildVersion=${version}" + + local go_ldflags="-s -linkmode external -extldflags \"${LDFLAGS}\" ${custom_name_version_flags}" + + for cmd in yggdrasil{,ctl}; do + ego build ${GOFLAGS} -ldflags="${go_ldflags}" ./cmd/${cmd} + done +} + +src_install() { + dobin yggdrasil{,ctl} + einstalldocs + + systemd_dounit "contrib/systemd/yggdrasil.service" + systemd_dounit "contrib/systemd/yggdrasil-default-config.service" + doinitd "contrib/openrc/yggdrasil" +}