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 D1DD515808B for ; Sat, 26 Mar 2022 15:28:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B6D8E0858; Sat, 26 Mar 2022 15:28:39 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB10CE0858 for ; Sat, 26 Mar 2022 15:28:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 728C33433BB for ; Sat, 26 Mar 2022 15:28:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1DB6290 for ; Sat, 26 Mar 2022 15:28:35 +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: <1648308499.3b818583939050b64fa2c995ee795ef85fbfa779.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/yggdrasil-go-9999.ebuild X-VCS-Directories: net-p2p/yggdrasil-go/ X-VCS-Committer: bratishkaerik X-VCS-Committer-Name: Eric Joldasov X-VCS-Revision: 3b818583939050b64fa2c995ee795ef85fbfa779 X-VCS-Branch: dev Date: Sat, 26 Mar 2022 15:28:35 +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: dc8310ae-4cb4-480b-a5cd-70a1d78e046c X-Archives-Hash: af742595253d2181260197e2ee7e3bbf commit: 3b818583939050b64fa2c995ee795ef85fbfa779 Author: BratishkaErik getgoogleoff me> AuthorDate: Sat Mar 26 15:28:19 2022 +0000 Commit: Eric Joldasov getgoogleoff me> CommitDate: Sat Mar 26 15:28:19 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3b818583 net-p2p/yggdrasil-go: add 9999 version Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik getgoogleoff.me> net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild new file mode 100644 index 000000000..d803f16d4 --- /dev/null +++ b/net-p2p/yggdrasil-go/yggdrasil-go-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module linux-info systemd git-r3 + +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" +KEYWORDS="" + +DEPEND=" + acct-user/yggdrasil + acct-group/yggdrasil +" + +BDEPEND=">=dev-lang/go-1.16.0" + +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_unpack() { + git-r3_src_unpack + go-module_live_vendor +} + +src_compile() { + GOFLAGS="-trimpath -buildmode=pie -mod=readonly" \ + ./build -l "-linkmode external -extldflags \"${LDFLAGS}\"" +} + +src_install() { + dobin {yggdrasil,yggdrasilctl} + systemd_dounit "contrib/systemd/yggdrasil.service" + systemd_dounit "contrib/systemd/yggdrasil-default-config.service" + doinitd "contrib/openrc/yggdrasil" +}