From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1587301-garchives=archives.gentoo.org@lists.gentoo.org> 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 DEC1315803E for <garchives@archives.gentoo.org>; Fri, 5 Jan 2024 10:54:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AB442BC150; Fri, 5 Jan 2024 10:54:01 +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 06D752BC150 for <gentoo-commits@lists.gentoo.org>; Fri, 5 Jan 2024 10:54:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 17685343105 for <gentoo-commits@lists.gentoo.org>; Fri, 5 Jan 2024 10:54:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 36A9A1300 for <gentoo-commits@lists.gentoo.org>; Fri, 5 Jan 2024 10:53:58 +0000 (UTC) From: "Petr Vaněk" <arkamar@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petr Vaněk" <arkamar@gentoo.org> Message-ID: <1704452011.20498248615c62dd5c378526bf52e9785055226c.arkamar@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdata-go-plugin/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/netdata-go-plugin/Manifest net-analyzer/netdata-go-plugin/metadata.xml net-analyzer/netdata-go-plugin/netdata-go-plugin-0.58.0.ebuild X-VCS-Directories: net-analyzer/netdata-go-plugin/ X-VCS-Committer: arkamar X-VCS-Committer-Name: Petr Vaněk X-VCS-Revision: 20498248615c62dd5c378526bf52e9785055226c X-VCS-Branch: master Date: Fri, 5 Jan 2024 10:53:58 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 37cd5707-35d1-4ee7-a2f2-f06e3f6fc68e X-Archives-Hash: eb18623ccd1932e45a2c78289dbe6c0e commit: 20498248615c62dd5c378526bf52e9785055226c Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org> AuthorDate: Fri Jan 5 10:34:57 2024 +0000 Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org> CommitDate: Fri Jan 5 10:53:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20498248 net-analyzer/netdata-go-plugin: new package, add 0.58.0 Closes: https://bugs.gentoo.org/773112 Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org> net-analyzer/netdata-go-plugin/Manifest | 2 + net-analyzer/netdata-go-plugin/metadata.xml | 11 +++++ .../netdata-go-plugin-0.58.0.ebuild | 51 ++++++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/net-analyzer/netdata-go-plugin/Manifest b/net-analyzer/netdata-go-plugin/Manifest new file mode 100644 index 000000000000..a1f787ab71ce --- /dev/null +++ b/net-analyzer/netdata-go-plugin/Manifest @@ -0,0 +1,2 @@ +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 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/* +}