Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4CFD885289 for ; Fri, 29 Dec 2023 20:55:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id mdFtSSZMDZ_5 for ; Fri, 29 Dec 2023 20:55:02 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9AD8F84D45 for ; Fri, 29 Dec 2023 20:55:02 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8D090FA42; Fri, 29 Dec 2023 20:55:02 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1703883302247690" MIME-Version: 1.0 Date: Fri, 29 Dec 2023 20:55:02 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/sysutils/netbsd_exporter To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20231229205502.8D090FA42@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_1703883302247690 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Fri Dec 29 20:55:02 UTC 2023 Added Files: pkgsrc/sysutils/netbsd_exporter: DESCR Makefile PLIST distinfo pkgsrc/sysutils/netbsd_exporter/patches: patch-Makefile Log Message: sysutils/netbsd_exporter: import netbsd_exporter-0.9.3 The netbsd_exporter retrieves system metrics such as disk I/O, network I/O, RAM and filesystem usage, as well as CPU load from the running system and exposes them in the format of Prometheus metrics. It is designed to be integrated into inetd, providing a lightweight, NetBSD-focused alternative to the node_exporter. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/netbsd_exporter/DESCR \ pkgsrc/sysutils/netbsd_exporter/Makefile \ pkgsrc/sysutils/netbsd_exporter/PLIST \ pkgsrc/sysutils/netbsd_exporter/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/netbsd_exporter/patches/patch-Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1703883302247690 Content-Disposition: inline Content-Length: 3390 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/sysutils/netbsd_exporter/DESCR diff -u /dev/null pkgsrc/sysutils/netbsd_exporter/DESCR:1.1 --- /dev/null Fri Dec 29 20:55:02 2023 +++ pkgsrc/sysutils/netbsd_exporter/DESCR Fri Dec 29 20:55:02 2023 @@ -0,0 +1,5 @@ +The netbsd_exporter retrieves system metrics such as disk I/O, +network I/O, RAM and filesystem usage, as well as CPU load from +the running system and exposes them in the format of Prometheus +metrics. It is designed to be integrated into inetd, providing a +lightweight, NetBSD-focused alternative to the node_exporter. Index: pkgsrc/sysutils/netbsd_exporter/Makefile diff -u /dev/null pkgsrc/sysutils/netbsd_exporter/Makefile:1.1 --- /dev/null Fri Dec 29 20:55:02 2023 +++ pkgsrc/sysutils/netbsd_exporter/Makefile Fri Dec 29 20:55:02 2023 @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2023/12/29 20:55:02 wiz Exp $ + +DISTNAME= 0.9.3 +PKGNAME= netbsd_exporter-${DISTNAME} +CATEGORIES= sysutils +MASTER_SITES= https://forge.petermann-it.de/mpeterma/netbsd_exporter/archive/ +DIST_SUBDIR= netbsd_exporter + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://www.petermann-it.de/en/blog/netbsd_exporter/ +COMMENT= Prometheus exporter for NetBSD +LICENSE= 2-clause-bsd + +WRKSRC= ${WRKDIR}/netbsd_exporter + +ONLY_FOR_PLATFORM= NetBSD-* + +INSTALL_MAKE_FLAGS+= MANDIR=${PKGMANDIR} + +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/sysutils/netbsd_exporter/PLIST diff -u /dev/null pkgsrc/sysutils/netbsd_exporter/PLIST:1.1 --- /dev/null Fri Dec 29 20:55:02 2023 +++ pkgsrc/sysutils/netbsd_exporter/PLIST Fri Dec 29 20:55:02 2023 @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2023/12/29 20:55:02 wiz Exp $ +libexec/netbsd_exporter +man/man8/netbsd_exporter.8 Index: pkgsrc/sysutils/netbsd_exporter/distinfo diff -u /dev/null pkgsrc/sysutils/netbsd_exporter/distinfo:1.1 --- /dev/null Fri Dec 29 20:55:02 2023 +++ pkgsrc/sysutils/netbsd_exporter/distinfo Fri Dec 29 20:55:02 2023 @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2023/12/29 20:55:02 wiz Exp $ + +BLAKE2s (netbsd_exporter/0.9.3.tar.gz) = d7238b830d6b70b560b2d71d132356b62960a095286b27663136ef6f350600a2 +SHA512 (netbsd_exporter/0.9.3.tar.gz) = 25e1799638a9649b5230f49e794db6be4117f4348ba3b5457892c958216b4d603c0e1c42d7db4098bba1459d5d89c885dc344750355bfa975480d918716ab48f +Size (netbsd_exporter/0.9.3.tar.gz) = 4921 bytes +SHA1 (patch-Makefile) = 4a1714436a125ec03485a24424f41476798fcfde Index: pkgsrc/sysutils/netbsd_exporter/patches/patch-Makefile diff -u /dev/null pkgsrc/sysutils/netbsd_exporter/patches/patch-Makefile:1.1 --- /dev/null Fri Dec 29 20:55:02 2023 +++ pkgsrc/sysutils/netbsd_exporter/patches/patch-Makefile Fri Dec 29 20:55:02 2023 @@ -0,0 +1,27 @@ +$NetBSD: patch-Makefile,v 1.1 2023/12/29 20:55:02 wiz Exp $ + +Allow overriding installation paths. + +--- Makefile.orig 2023-12-27 17:56:57.000000000 +0000 ++++ Makefile +@@ -2,6 +2,8 @@ CC=cc + CFLAGS=-Wall -Wextra + TARGET=netbsd_exporter + ++PREFIX?=/usr ++MANDIR?=share/man + PACKAGE=$(TARGET)-$(VERSION).tar.gz + + all: $(TARGET) +@@ -21,7 +23,9 @@ dist: $(TARGET) + (cd dist;tar -cvf ../$(PACKAGE) .) + + install: $(TARGET) +- cp $(TARGET) /usr/libexec +- cp $(TARGET).8 /usr/share/man/man8 ++ install -d $(DESTDIR)$(PREFIX)/libexec ++ cp $(TARGET) $(DESTDIR)$(PREFIX)/libexec ++ install -d $(DESTDIR)$(PREFIX)/$(MANDIR)/man8 ++ cp $(TARGET).8 $(DESTDIR)$(PREFIX)/$(MANDIR)/man8 + + .PHONY: all clean install --_----------=_1703883302247690--