From 075f458452509cdc846e11c43f3496a203a8a9bc Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Wed, 7 Dec 2022 08:37:48 +0600 Subject: net-p2p/yggdrasil-go: add 0.4.7, drop 0.4.6 Signed-off-by: Eric Joldasov --- net-p2p/yggdrasil-go/Manifest | 4 +- net-p2p/yggdrasil-go/yggdrasil-go-0.4.6.ebuild | 57 -------------------------- net-p2p/yggdrasil-go/yggdrasil-go-0.4.7.ebuild | 57 ++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 net-p2p/yggdrasil-go/yggdrasil-go-0.4.6.ebuild create mode 100644 net-p2p/yggdrasil-go/yggdrasil-go-0.4.7.ebuild diff --git a/net-p2p/yggdrasil-go/Manifest b/net-p2p/yggdrasil-go/Manifest index 97af406bb..970006506 100644 --- a/net-p2p/yggdrasil-go/Manifest +++ b/net-p2p/yggdrasil-go/Manifest @@ -1,2 +1,2 @@ -DIST yggdrasil-go-0.4.6-vendor.tar.xz 957992 BLAKE2B ad8e7560b294aa37c4fa985aa44fe3c3f485ebdc85d9ac297c8ca0a40daeac34244bb6fffc8d195b62b9e54f2783e1f04b26172e3a8dea654c07067cc4167350 SHA512 8de6c0e8dad41aa83dbb7dde1e9f1f400f59c8ccdaf73b00b7180485416ea538aa5595b9dcc9a51bb26ea461375f94ba077b4d02416311b1588c6cc661d460e1 -DIST yggdrasil-go-0.4.6.tar.gz 94167 BLAKE2B 8c27bf0c3faf8c2ed1804d4f77acb55f7e1ee9b1ab1ae04f5d2d670e53e6a67ff752c5260ae107602d2a34e89054ea697783635b80e8b3b0f725dd6dbd87ae34 SHA512 64c335c94507c899f13a6d00a3998802db48b27e024974ad639795075fea4456f58fd5147f4b5b4162a804f9e4e7ea173a6b9802cc1410dccc8be89804dbf871 +DIST yggdrasil-go-0.4.7-vendor.tar.xz 958088 BLAKE2B 1e6412803a2428fbc3779115155f7a5eb24e0f433c14083f79165da0b035c17ec083d1eb8a472d9edb7436f162c9a406fb67dce3f35be1f73d262ad1c048d728 SHA512 bd378cc24793d04969adc1318c08593115be2a0a8a7f83fdd773c10b16c7b0409867ea6e58994bdefaa8ad83730e2d4ee0526776beba170fd522b4fc46a0a36d +DIST yggdrasil-go-0.4.7.tar.gz 95223 BLAKE2B eb56702dc95a9bb3bc5a48073d3e2241eb076299262fbeb5e001f2af0da5407796f0978295ae3ecf7b347f2a322c45bfb8d623e0c9271f092288f79ab5ad1040 SHA512 954e511001b509ae95348f18e489aed98dfa9ac079c007e3c054d00163e224389fdb6ae293be507cba5ae5182612a466a9d8878e7e2d762289ad4429920246e8 diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.4.6.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.6.ebuild deleted file mode 100644 index 6c4a68eb8..000000000 --- a/net-p2p/yggdrasil-go/yggdrasil-go-0.4.6.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2022 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" -} diff --git a/net-p2p/yggdrasil-go/yggdrasil-go-0.4.7.ebuild b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.7.ebuild new file mode 100644 index 000000000..6c4a68eb8 --- /dev/null +++ b/net-p2p/yggdrasil-go/yggdrasil-go-0.4.7.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 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" +} -- cgit v1.2.3-65-gdbad