* [gentoo-commits] repo/gentoo:master commit in: app-metrics/nftables-exporter/
@ 2023-09-07 22:23 William Hubbs
0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2023-09-07 22:23 UTC (permalink / raw
To: gentoo-commits
commit: cc5b3b9f134a070c548faa4e3de17d615497d0b3
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 7 22:21:32 2023 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Sep 7 22:23:47 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc5b3b9f
app-metrics/nftables-exporter: require >= go-1.21 to build
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
app-metrics/nftables-exporter/nftables-exporter-0.2.7.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/app-metrics/nftables-exporter/nftables-exporter-0.2.7.ebuild b/app-metrics/nftables-exporter/nftables-exporter-0.2.7.ebuild
index 77090f32f70d..2714026e1004 100644
--- a/app-metrics/nftables-exporter/nftables-exporter-0.2.7.ebuild
+++ b/app-metrics/nftables-exporter/nftables-exporter-0.2.7.ebuild
@@ -19,6 +19,7 @@ SLOT="0"
KEYWORDS="~amd64"
RDEPEND="net-firewall/nftables"
+BDEPEND=">=dev-lang/go-1.21"
src_prepare() {
default
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-metrics/nftables-exporter/
@ 2025-01-27 5:43 William Hubbs
0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2025-01-27 5:43 UTC (permalink / raw
To: gentoo-commits
commit: 497b43d175c669882c200270e142359ce93defc9
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 27 05:42:35 2025 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jan 27 05:43:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=497b43d1
app-metrics/nftables-exporter: add 0.3.1
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
app-metrics/nftables-exporter/Manifest | 2 +
.../nftables-exporter-0.3.1.ebuild | 43 ++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/app-metrics/nftables-exporter/Manifest b/app-metrics/nftables-exporter/Manifest
index 3b35b188deb9..e69eaa7d6e04 100644
--- a/app-metrics/nftables-exporter/Manifest
+++ b/app-metrics/nftables-exporter/Manifest
@@ -1,2 +1,4 @@
DIST nftables-exporter-0.2.7-deps.tar.xz 6611016 BLAKE2B c6d5593bcf29f846044fd11602eb38f7296f46394cb61c04c7877b0d100d4f33f5bbccbcb374d267fa87da600c2afe00b1c0f6acb494d078c2cb8f2fe73baa6d SHA512 0039135b52e0f77316a68f482094620531be1a7ef1cbd713905f140fea09627fde4544b0c25ed964950682be905a758f22384e0159bbcf8ee2a9f57c3a7f5f43
DIST nftables-exporter-0.2.7.tar.gz 22061 BLAKE2B 142c834a77b563d6c57b72a5ec45c88e0542121d334c0b02a6acc18fea7902efad8080e0b3b01a2a519a4cd376938da58fc4b7b3fc2260300a5bc64469c993ee SHA512 69192df420b294b4c3b345999505111f149c00a5d68773b6f958d16b39505c937377075fe4e299688b97f5c12f0bbdac59bdb9bd0447b62f6d76c0bc55caa318
+DIST nftables-exporter-0.3.1-deps.tar.xz 34701580 BLAKE2B 0cabca1e6e1ac758d987cfd9549d45df1cf8852a09a4026343efa61cc2b7162ee398f6cfa6127235c99009d70b5a95586f093bbd8aff50779d8c4be48ad5cdc6 SHA512 1a98852089ea8c0b5a862b01163c4ef3243190e8111617d14d8e4cb8ac83dafb016a685419eb578695708bee33feb92a9087de7f96bf3511e247eb5e769a36c2
+DIST nftables-exporter-0.3.1.tar.gz 22518 BLAKE2B 3c186d26397718a82368e1e18dabd5c2a148cbc350c949b265d1645e2dcc49f10ab35dc307411210521ba27605bba5b6b816b1833d3bf0ea72ef92fba5b3c43d SHA512 3edb32c425fd6f3028a5a9ff2be52120e8ba9b995c8e6861d9e5c925d439941fb50e69e3090b3e4ffa4b433d24b5607c4811c6d5c8176ea9d3a992c69f8095fb
diff --git a/app-metrics/nftables-exporter/nftables-exporter-0.3.1.ebuild b/app-metrics/nftables-exporter/nftables-exporter-0.3.1.ebuild
new file mode 100644
index 000000000000..5c64528b9900
--- /dev/null
+++ b/app-metrics/nftables-exporter/nftables-exporter-0.3.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+# make sure these are updated based on the Makefile in every bump.
+SHA=a8497830
+GITVERSION=tags/v0.3.1-0-ga849783
+
+DESCRIPTION="prometheus exporter for nftables metrics"
+HOMEPAGE="https://github.com/metal-stack/nftables-exporter"
+SRC_URI="https://github.com/metal-stack/nftables-exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="net-firewall/nftables"
+
+src_prepare() {
+ default
+ sed -i -e '/strip bin\//d' -e '/sha256sum/d' Makefile
+}
+
+src_compile() {
+ emake \
+ SHA=${SHA} \
+ GITVERSION=${GITVERSION} \
+ VERSION=v${PV} \
+ build
+}
+
+src_install() {
+ newbin bin/${P}-* ${PN}
+ insinto etc
+ doins nftables_exporter.yaml
+ systemd_dounit systemd/nftables-exporter.service
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ keepdir /var/log/${PN}
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-27 5:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-27 5:43 [gentoo-commits] repo/gentoo:master commit in: app-metrics/nftables-exporter/ William Hubbs
-- strict thread matches above, loose matches on Subject: below --
2023-09-07 22:23 William Hubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox