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 5D899158089 for ; Thu, 9 Nov 2023 17:11:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88DC02BC018; Thu, 9 Nov 2023 17:11:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 711AF2BC018 for ; Thu, 9 Nov 2023 17:11:49 +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 34228335D1E for ; Thu, 9 Nov 2023 17:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7384C132A for ; Thu, 9 Nov 2023 17:11:46 +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: <1699549897.1880b2da7f6c21367f30acf3b3dbd124bfed39d8.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.2.ebuild X-VCS-Directories: net-p2p/yggdrasil-go/ X-VCS-Committer: bratishkaerik X-VCS-Committer-Name: Eric Joldasov X-VCS-Revision: 1880b2da7f6c21367f30acf3b3dbd124bfed39d8 X-VCS-Branch: dev Date: Thu, 9 Nov 2023 17:11:46 +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: 7fd2c594-2d43-4885-b3cb-a101b0a10a3d X-Archives-Hash: 360968bca9493b49c914d69587cc96ea commit: 1880b2da7f6c21367f30acf3b3dbd124bfed39d8 Author: Eric Joldasov getgoogleoff me> AuthorDate: Thu Nov 9 17:11:37 2023 +0000 Commit: Eric Joldasov getgoogleoff me> CommitDate: Thu Nov 9 17:11:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1880b2da net-p2p/yggdrasil-go: add 0.5.2 Signed-off-by: Eric Joldasov getgoogleoff.me> net-p2p/yggdrasil-go/Manifest | 2 + net-p2p/yggdrasil-go/yggdrasil-go-0.5.2.ebuild | 57 ++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/net-p2p/yggdrasil-go/Manifest b/net-p2p/yggdrasil-go/Manifest index 94f1c8dda8..575ef0cda4 100644 --- a/net-p2p/yggdrasil-go/Manifest +++ b/net-p2p/yggdrasil-go/Manifest @@ -2,3 +2,5 @@ DIST yggdrasil-go-0.4.7-vendor.tar.xz 958088 BLAKE2B 1e6412803a2428fbc3779115155 DIST yggdrasil-go-0.4.7.tar.gz 95223 BLAKE2B eb56702dc95a9bb3bc5a48073d3e2241eb076299262fbeb5e001f2af0da5407796f0978295ae3ecf7b347f2a322c45bfb8d623e0c9271f092288f79ab5ad1040 SHA512 954e511001b509ae95348f18e489aed98dfa9ac079c007e3c054d00163e224389fdb6ae293be507cba5ae5182612a466a9d8878e7e2d762289ad4429920246e8 DIST yggdrasil-go-0.5.1-vendor.tar.xz 1443912 BLAKE2B f62c2ddd09ff662e939f993bf850f862d2bb5cc5db34b4d38251e21aa8980729d1333196332d4f78b1b80b4f782102db9c8d286716d65d39cdfc6425e0e44510 SHA512 2f695542dbf642139be23227c432fc8e789fc8e3d4dedff9278ae0051db487bad642eda293ef39eab7d78bf578e474897517849badc123a980a0e9b66d8e9fd3 DIST yggdrasil-go-0.5.1.tar.gz 103689 BLAKE2B 4787f35acb6132d18c692dc727c0485025a25641cf09018e4fcc7cb1f7b4f7eb1418e2345cbde546b124b994cc615cc6f4ef9f13a40aefb55c8e89e04e5bf5d0 SHA512 2c7e3c4dee700328c651131dad8cc5e57de7a56d988062b130634679cf1e7af296fd1d11d80e7cf1e2ab389390a75c266b06d7179b9e5104ec150b71f6b3ebba +DIST yggdrasil-go-0.5.2-vendor.tar.xz 1443440 BLAKE2B a845f17657146b012274f8be0b5bfa0df50a161690b4dd27922ee56427b26fd0ea10426819bd1fea397ec44e48af907cdd3ff44b8786e66c03c31d8230878153 SHA512 cdd459fcf6b56135e034de2179153d54fbf0a882aad2e2b8734717ff49a94335d4161a5cb6cb54ac513174abbb4c49f936785ebc8cc47436a27d1ea223d1d7fc +DIST yggdrasil-go-0.5.2.tar.gz 104580 BLAKE2B b16483bffa7d9112d699d64e150b02bd3cac5a493d831daeb90a054d8baee284163ec50cf710a8e1a2af012900184e8e869ae35b66c29be1b8b884f7c968ca13 SHA512 a1bd4606d8d3d83f691ab04cdd7316a9e391f44aaddc4d67d7249623e6de02ab55ec670d7bb6885702e9e12de0f526eafae9ec36ca116b365f8aea4065345271 diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.5.2.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.2.ebuild new file mode 100644 index 0000000000..7d9f6dd88f --- /dev/null +++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.5.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/" +SRC_URI=" + https://github.com/yggdrasil-network/yggdrasil-go/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://codeberg.org/BratishkaErik/distfiles/media/branch/master/${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.17.0" + +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 + dodoc CHANGELOG.md + systemd_dounit "contrib/systemd/yggdrasil.service" + systemd_dounit "contrib/systemd/yggdrasil-default-config.service" + doinitd "contrib/openrc/yggdrasil" +}