commit:     29db0658ecdabde350f4edb7ad8ccddca85fdc50
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 16 14:56:25 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Thu Oct 16 14:57:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29db0658

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

Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

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

diff --git a/net-analyzer/netdata-go-plugin/Manifest 
b/net-analyzer/netdata-go-plugin/Manifest
index be51f3ab0498..8880ef0f9a90 100644
--- a/net-analyzer/netdata-go-plugin/Manifest
+++ b/net-analyzer/netdata-go-plugin/Manifest
@@ -1,2 +1,4 @@
 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
+DIST netdata-2.5.3-vendor.tar.xz 8472672 BLAKE2B 
25e1c5276922ab174b92b3d20a10141b3f23a622af47e6b43c358af1805f8d0f000e49fa8963300bac2db0e705263e95a8bbf77ab6037631a83dbb7f2e409751
 SHA512 
d9736386f7434c910c3da2612ee3afb406cf5e1e628d5d0b4b65ab0ffdb76a52b590a0c95cdea0e448afe3047e2bc85fbe83315a9a89fb6811cc2c5cb33c7eb9
+DIST netdata-2.5.3.tar.gz 31858932 BLAKE2B 
fe3f8f97f27e775aad75f57089623df1c1eb79addb46847ac2d282610651d26248a090e215e144978c4f27b9f8e428ed953987bf10bfdbe2a33ba4c34b672cd7
 SHA512 
9bf469aada9db631e9b8e6e8890de22eaed080f2b1b016503469ebe563a85a2cbcb6c4f0839a633178136e5dcf73fa952776106f99927d9cace610209d645b1e

diff --git a/net-analyzer/netdata-go-plugin/netdata-go-plugin-2.5.3.ebuild 
b/net-analyzer/netdata-go-plugin/netdata-go-plugin-2.5.3.ebuild
new file mode 100644
index 000000000000..7a08e6c88d4b
--- /dev/null
+++ b/net-analyzer/netdata-go-plugin/netdata-go-plugin-2.5.3.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.24"
+
+FILECAPS=(
+       cap_net_raw /usr/libexec/netdata/plugins.d/go.d.plugin
+)
+
+src_compile() {
+       LDFLAGS="-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 
'TestCollector_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