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 CA47D15808B for ; Tue, 13 Feb 2024 17:35:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07A86E2A11; Tue, 13 Feb 2024 17:35:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF3C7E2A11 for ; Tue, 13 Feb 2024 17:35:23 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E03433EB78 for ; Tue, 13 Feb 2024 17:35:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1260CB1 for ; Tue, 13 Feb 2024 17:35:19 +0000 (UTC) From: "Eric Joldasov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eric Joldasov" Message-ID: <1707845717.01ac4f01b901583dd894edf62e50b48e6344de7e.bratishkaerik@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev 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.5.ebuild X-VCS-Directories: net-p2p/yggdrasil-go/ X-VCS-Committer: bratishkaerik X-VCS-Committer-Name: Eric Joldasov X-VCS-Revision: 01ac4f01b901583dd894edf62e50b48e6344de7e X-VCS-Branch: dev Date: Tue, 13 Feb 2024 17:35:19 +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: 06385d67-580e-4388-9c08-a8a041dd3bd1 X-Archives-Hash: 09d0ef5947de82c9dae7e117a6cc0ac4 commit: 01ac4f01b901583dd894edf62e50b48e6344de7e Author: Eric Joldasov getgoogleoff me> AuthorDate: Tue Feb 13 17:34:46 2024 +0000 Commit: Eric Joldasov getgoogleoff me> CommitDate: Tue Feb 13 17:35:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=01ac4f01 net-p2p/yggdrasil-go: add 0.5.5 Signed-off-by: Eric Joldasov getgoogleoff.me> net-p2p/yggdrasil-go/Manifest | 2 + net-p2p/yggdrasil-go/yggdrasil-go-0.5.5.ebuild | 59 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/net-p2p/yggdrasil-go/Manifest b/net-p2p/yggdrasil-go/Manifest index 6cd81246b1..41da47e2ac 100644 --- a/net-p2p/yggdrasil-go/Manifest +++ b/net-p2p/yggdrasil-go/Manifest @@ -1,2 +1,4 @@ DIST yggdrasil-go-0.5.4-vendor.tar.xz 1443664 BLAKE2B 7bd24e3b3701527f44ecff01f8ad596c273651b4a2d4d3ae51bf8ed5393a9b7e325e9a8777014b6abf55f7d51c9be674b043e3088c6bb9b32976e6c5831d914b SHA512 aaa76105ff408e465bee2c3272fcf33a8280db7ee30aa14d469671eea28b1b1dbc0b1beb8bf17aaf3bf78e24d794dbe4e95b653d0835fb66fedfbb626ea12aa0 DIST yggdrasil-go-0.5.4.tar.gz 104902 BLAKE2B c7a0836b22a71f091a2a245072f3468f12e74dd4397843cc71550a1d2328887aeb0cc1bc024a38f73c6a0bbe7cf6fb65c1a05fe7e71851a73b1042a4de14db2a SHA512 1fcdd321faff15e29ec12d61690a5cfd38737b19dc259159ef7342dfd37b76fad3f7601495ae32ecd18239c166bcea1c3ae9d6bcff4a2e402265a120e2986e89 +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 diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.5.5.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.5.ebuild new file mode 100644 index 0000000000..3df03c90dc --- /dev/null +++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.5.ebuild @@ -0,0 +1,59 @@ +# 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/${P}/vendor.tar.xz -> ${P}-vendor.tar.xz +" + +LICENSE="LGPL-3 MIT Apache-2.0 BSD ZLIB" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="mirror" + +DEPEND=" + acct-user/yggdrasil + acct-group/yggdrasil +" + +BDEPEND=">=dev-lang/go-1.20.0" + +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} + dodoc README.md + dodoc CHANGELOG.md + + systemd_dounit "contrib/systemd/yggdrasil.service" + systemd_dounit "contrib/systemd/yggdrasil-default-config.service" + doinitd "contrib/openrc/yggdrasil" +}