summaryrefslogtreecommitdiff
path: root/net-analyzer/netdata-go-plugin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-05 14:04:26 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-05 14:04:26 +0000
commit8fd9d385e5bc3c01115ec2ddcb2227607eb90861 (patch)
treeaba1e6ef6b95e94172c009394cd1fcbc383e7d6e /net-analyzer/netdata-go-plugin
parent1ddcee0bd115d2f843f82061cb0d1741bf90151d (diff)
gentoo auto-resync : 05:01:2024 - 14:04:25
Diffstat (limited to 'net-analyzer/netdata-go-plugin')
-rw-r--r--net-analyzer/netdata-go-plugin/Manifest4
-rw-r--r--net-analyzer/netdata-go-plugin/metadata.xml11
-rw-r--r--net-analyzer/netdata-go-plugin/netdata-go-plugin-0.58.0.ebuild51
3 files changed, 66 insertions, 0 deletions
diff --git a/net-analyzer/netdata-go-plugin/Manifest b/net-analyzer/netdata-go-plugin/Manifest
new file mode 100644
index 000000000000..eb4c01172f18
--- /dev/null
+++ b/net-analyzer/netdata-go-plugin/Manifest
@@ -0,0 +1,4 @@
+DIST go.d.plugin-0.58.0-vendor.tar.gz 11168253 BLAKE2B ac2a612a77410e1495700c99808a24a4a65aa0889c95258f74a64aabf38f3f16f3f719f4a3e5122026245bcf9ccc928298430c7e6d428def9c2bdd5b31717e30 SHA512 81520995e8417f0cb160dc740d9012eb19896786c702b86385525a07ebe84f3cff412c9fb40461fa7223bb2ab408f578362bf9f50623e4fea5219c93b0933d49
+DIST go.d.plugin-0.58.0.tar.gz 1600927 BLAKE2B e0fc2b4dd2652114c428cdeba3ab3a2c62094520ef35c7aa29ef3fa5e3c579e19fcea52e6b0a906872671679bbf84a9238f89af9b0d2c7e214c1495c9609903c SHA512 cab04ea45008b668a6103a6d147e4f96e55a132f13e5ca3054b5ea6cff263dba048a9f7f52f4781495425f9a9cbb9e43786047188b0165ca1071c7c216486e12
+EBUILD netdata-go-plugin-0.58.0.ebuild 1158 BLAKE2B e1f6b189667ddd89dc37c23b861ebbaf0e30fcfdad39abd4809516028df25a3bc588031fbec5c61ac706e488023c6fe14f5569401a7c9cbf051529f81da65592 SHA512 319d2c1304eda1779cad75529abc5f7c7601e6bd78b44bd1fce8889e4676b7f3051ab930cc2f1a76aaca078edb048787e50b9a299e68e694367c276bbae2ec4b
+MISC metadata.xml 330 BLAKE2B 01e6fc74fec6646f2f5d12deae7e9ce876030a6013aa0af991679e43b4b84c4d5e7b2ac1ea6087eb8c9d2bce8f915260959daf182f439b2891739ceac4b39d7b SHA512 5c82fe3eddb030df79eb8df1cef84f28bcc8049b59dfa74b9202c84f6875e959d99923ac8c6292e034a0cba7e524585ea194a2766c21b10b066d80df98e401d6
diff --git a/net-analyzer/netdata-go-plugin/metadata.xml b/net-analyzer/netdata-go-plugin/metadata.xml
new file mode 100644
index 000000000000..282de65d53a2
--- /dev/null
+++ b/net-analyzer/netdata-go-plugin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arkamar@gentoo.org</email>
+ <name>Petr Vaněk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">netdata/go.d.plugin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-analyzer/netdata-go-plugin/netdata-go-plugin-0.58.0.ebuild b/net-analyzer/netdata-go-plugin/netdata-go-plugin-0.58.0.ebuild
new file mode 100644
index 000000000000..70f99d0fda15
--- /dev/null
+++ b/net-analyzer/netdata-go-plugin/netdata-go-plugin-0.58.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps go-module
+
+MY_PN=go.d.plugin
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Netdata plugin for collectors written in Go"
+HOMEPAGE="https://github.com/netdata/go.d.plugin"
+SRC_URI="
+ https://github.com/netdata/go.d.plugin/archive/refs/tags/v${PV}.tar.gz
+ -> ${MY_P}.tar.gz
+ https://github.com/netdata/go.d.plugin/releases/download/v${PV}/${MY_PN}-vendor-v${PV}.tar.gz
+ -> ${MY_P}-vendor.tar.gz
+"
+S="${WORKDIR}/${MY_P}"
+
+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.21"
+
+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/go.d.plugin/cmd/godplugin"
+}
+
+src_test() {
+ ego test ./... -cover -covermode=atomic
+}
+
+src_install() {
+ einstalldocs
+
+ exeinto "/usr/libexec/netdata/plugins.d"
+ newexe godplugin go.d.plugin
+ insinto "/usr/$(get_libdir)/netdata/conf.d"
+ doins -r config/*
+}