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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5857D159C9B for ; Wed, 31 Jul 2024 22:49:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4D3F2BC033; Wed, 31 Jul 2024 22:49:08 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 B1A1E2BC037 for ; Wed, 31 Jul 2024 22:49:08 +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 CCEA6340DE6 for ; Wed, 31 Jul 2024 22:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78BD81E93 for ; Wed, 31 Jul 2024 22:49:05 +0000 (UTC) From: "Lucio Sauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" Message-ID: <1722455935.f4e89c5a87714b8ad2bddb1388719857a607c134.watermanpaint@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.6.ebuild X-VCS-Directories: net-p2p/yggdrasil-go/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: f4e89c5a87714b8ad2bddb1388719857a607c134 X-VCS-Branch: master Date: Wed, 31 Jul 2024 22:49:05 +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: cf04ab26-0f57-4718-8177-c4d8d1bcc3c3 X-Archives-Hash: 59c3d958829323231ff622c394342fe6 commit: f4e89c5a87714b8ad2bddb1388719857a607c134 Author: Eric Joldasov landless-city net> AuthorDate: Wed Jul 31 19:58:48 2024 +0000 Commit: Lucio Sauer posteo net> CommitDate: Wed Jul 31 19:58:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f4e89c5a net-p2p/yggdrasil-go: add 0.5.6 Signed-off-by: Eric Joldasov landless-city.net> net-p2p/yggdrasil-go/Manifest | 2 + net-p2p/yggdrasil-go/yggdrasil-go-0.5.6.ebuild | 60 ++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/net-p2p/yggdrasil-go/Manifest b/net-p2p/yggdrasil-go/Manifest index a7e45d23a..2bafeb936 100644 --- a/net-p2p/yggdrasil-go/Manifest +++ b/net-p2p/yggdrasil-go/Manifest @@ -1,2 +1,4 @@ DIST yggdrasil-go-0.5.5-vendor.tar.xz 1443888 BLAKE2B 712bcb42a38b10c950ac8c6ce9301dbbaf4a77026bcc2c6d78321c7423ef3dc0fcba5bf94c0cd674af3e911eda476ae8c7d7bb7c782328c5201e91efe2958d1d SHA512 10be1cd6dd5b4fb11b70c48e9cdeb26f4534424dbb0dcd93d0a3d8de3b63d0849dcc55b3394ba3ab74c19e15592d26c2be7e9f4e89a8dccb6c17da572907b5ba DIST yggdrasil-go-0.5.5.tar.gz 105482 BLAKE2B 7afbde70e2aec71f47ba32730611d22b87fa23ff4d488a33ca82124cb4ec211c654e780b3c8c703100eb065c05c54561ca36136765050c96e297f30a5656bc61 SHA512 13ee5c719335d7a599019d004cd8d82883c7a2beb707de968a0934982364a0f70982f14157bd9aaabda9595f194594901a9158cfeb272491a71b5392abd79dc4 +DIST yggdrasil-go-0.5.6-vendor.tar.xz 1434944 BLAKE2B 7abeea0b8a50ec2d2a9dd99842e50912d0e9d4f327dbf5c66c69d2848d219264bef068183e5e80e400f3b187d733cbe708fbc3493f27af1e1922a078f31e1202 SHA512 de555d765155f20e47c742b5dba330ab2659c0a414cbe6c7a3103328f21c8d6a45bb35755c9a1b7c190d4c0aeb2495ca8e1f0ea350b55bec7de405f7b35ecc86 +DIST yggdrasil-go-0.5.6.tar.gz 106181 BLAKE2B 01302cb2a4e08f84bcc33b01e86315a948d0bf6900c2e592edc6cc618ef8d09ea20793ea41ae1ed61ef094a9266a2ff3df840a8ca59c0ba496a03519b8869497 SHA512 1c6f8767000a41d4b4f62c3e6df1e562289b3e699542a2fa99781b74eed2eda7e3c5968f50d068360d72b9308e8e27dfd14f42fd7ff2c63982dd48cc5afd85c2 diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.5.6.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.6.ebuild new file mode 100644 index 000000000..9b6af0f47 --- /dev/null +++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.6.ebuild @@ -0,0 +1,60 @@ +# 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/" +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 +" + +LICENSE="LGPL-3 MIT Apache-2.0 BSD ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +RESTRICT="mirror" + +DEPEND=" + acct-user/yggdrasil + acct-group/yggdrasil +" + +BDEPEND=">=dev-lang/go-1.21" + +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_compile() { + local ver_config="github.com/yggdrasil-network/yggdrasil-go/src/version" + + local version_disable_detect_flags="-X ${ver_config}.buildName=${PN}" + version_disable_detect_flags+=" -X ${ver_config}.buildVersion=v${PV}" + + GOFLAGS+=" -mod=vendor -trimpath" + + local GO_LDFLAGS + GO_LDFLAGS="-s -linkmode external -extldflags \"${LDFLAGS}\" ${version_disable_detect_flags}" + + local cmd + 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" +}