commit:     f2bba04cfda2ef0dafe4305549e2395564955fec
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  3 15:13:37 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Feb  4 10:08:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2bba04c

net-analyzer/netdata-go-plugin: add 1.47.5

Bug: https://bugs.gentoo.org/926032
Bug: https://bugs.gentoo.org/935872
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 net-analyzer/netdata-go-plugin/Manifest            |  2 +
 .../netdata-go-plugin-1.47.5.ebuild                | 49 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/net-analyzer/netdata-go-plugin/Manifest 
b/net-analyzer/netdata-go-plugin/Manifest
index a04419a89f6c..e26f0facf4b4 100644
--- a/net-analyzer/netdata-go-plugin/Manifest
+++ b/net-analyzer/netdata-go-plugin/Manifest
@@ -1,2 +1,4 @@
 DIST go.d.plugin-0.58.1-vendor.tar.gz 11165963 BLAKE2B 
43b74ae6120806ee02b9d1d9247cd7b5bb752ebbcb21e2bd5427cad186e0facc5f04cc4484c39994d7a5727ca673610ebaa6dd01d9dd8335e7d0ad39721fe2bc
 SHA512 
23134669204c9c68247077ec12f8789db39736158867587fb24006c2cebd9f1752553a786cc91b97f2ba8b73197987b19dbf69e4669a0f821eb1fb04db0f5034
 DIST go.d.plugin-0.58.1.tar.gz 1601702 BLAKE2B 
d87402542fdac8683dc8a505634f6ce1eb2ebddeedeee6664d250b8774b8d1a76c189020362b1b87477bf21faf9caff28f41e396032d7548d0ec16ad8b5742e0
 SHA512 
acbfd7ee4a72cee0587936bd2d4e27a2b58894ee72a2218b96643c1fe0866990f9d6bfe1f754cda5f5443bc75e1406a6511300ea265a81e4be89f7f97b17664c
+DIST netdata-1.47.5-vendor.tar.xz 7224632 BLAKE2B 
b0b843ca53ae432607e95301ae9103d97f0260ea509e101883d20d3f26c1ee9edce558d66a46e76243b2ec8ef921b4d9cf883832749b585c20ac39251fd3b0e1
 SHA512 
c58c9bd2b52c766799f91b49591129a0de97b96d7da1d573ebe191a176f58b1cc4f9f67b83cdac6048833ceec494afae3a681b9476722a97c782525621dfc5dd
+DIST netdata-1.47.5.tar.gz 51034758 BLAKE2B 
c7c86956080b1903cdcfad23e7e016d91e89ef394275ed6ace140e1a5adf98300d983847bb5f4ac09a7d2fdafeba9f2a32c9a5c5f28a24b387ce7231310799b7
 SHA512 
9350edd520c20e8d97919a5bad804f8855e39f98aaa2eb0b4f07cc6cf763714720518b7e4c81a9a48d368aedeeb6bbcebb7b9fdb7ab5f7a7e1b3a447904e4183

diff --git a/net-analyzer/netdata-go-plugin/netdata-go-plugin-1.47.5.ebuild 
b/net-analyzer/netdata-go-plugin/netdata-go-plugin-1.47.5.ebuild
new file mode 100644
index 000000000000..e7e75251c254
--- /dev/null
+++ b/net-analyzer/netdata-go-plugin/netdata-go-plugin-1.47.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module
+
+DESCRIPTION="Netdata plugin for collectors written in Go"
+HOMEPAGE="https://github.com/netdata/netdata";
+SRC_URI="
+       
https://github.com/netdata/netdata/releases/download/v${PV}/netdata-v${PV}.tar.gz
+               -> netdata-${PV}.tar.gz
+       https://dev.gentoo.org/~arkamar/distfiles/netdata-${PV}-vendor.tar.xz
+"
+S="${WORKDIR}/netdata-v${PV}/src/go"
+
+LICENSE="GPL-3+"
+# Dependent modules licenses
+LICENSE+="
+       Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0
+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="net-analyzer/netdata"
+BDEPEND=">=dev-lang/go-1.22"
+
+FILECAPS=(
+       cap_net_raw /usr/libexec/netdata/plugins.d/go.d.plugin
+)
+
+src_compile() {
+       LDFLAGS="-w -s -X main.version=${PV}-gentoo"
+       ego build -ldflags "${LDFLAGS}" 
"github.com/netdata/netdata/go/plugins/cmd/godplugin"
+}
+
+src_test() {
+       # skipped tests are sending udp packets to 192.0.2.1
+       ego test -skip 
'TestSNMP_Init/success_when_using_SNMPv[1-3]_with_valid_config' ./...
+}
+
+src_install() {
+       einstalldocs
+
+       exeinto "/usr/libexec/netdata/plugins.d"
+       newexe godplugin go.d.plugin
+       insinto "/usr/lib/netdata/conf.d"
+       doins -r plugin/go.d/config/*
+}

Reply via email to