pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/netbsd_exporter



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.

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@localhost
+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



Home | Main Index | Thread Index | Old Index