pkgsrc-WIP-changes archive

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

netbsd_exporter: finished package, waiting for freeze to end



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Wed Dec 27 00:39:10 2023 +0100
Changeset:	ae55e54286e650a50e5ac269afff1b0afe3ef24b

Modified Files:
	Makefile
Added Files:
	netbsd_exporter/DESCR
	netbsd_exporter/Makefile
	netbsd_exporter/PLIST
	netbsd_exporter/distinfo
	netbsd_exporter/patches/patch-Makefile

Log Message:
netbsd_exporter: finished package, waiting for freeze to end

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 see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ae55e54286e650a50e5ac269afff1b0afe3ef24b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                               |  2 ++
 netbsd_exporter/DESCR                  |  5 +++++
 netbsd_exporter/Makefile               | 20 ++++++++++++++++++++
 netbsd_exporter/PLIST                  |  3 +++
 netbsd_exporter/distinfo               |  6 ++++++
 netbsd_exporter/patches/patch-Makefile | 27 +++++++++++++++++++++++++++
 6 files changed, 63 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 825fac20c7..0977ae2805 100644
--- a/Makefile
+++ b/Makefile
@@ -836,6 +836,7 @@ SUBDIR+=	facedetect
 SUBDIR+=	fairymax
 SUBDIR+=	fakenes
 SUBDIR+=	fala
+SUBDIR+=	falcons-eye2
 SUBDIR+=	fallout1-ce
 SUBDIR+=	fallout2-ce
 SUBDIR+=	famsa
@@ -2405,6 +2406,7 @@ SUBDIR+=	netbsd-light-desktop-default-settings
 SUBDIR+=	netbsd-make
 SUBDIR+=	netbsd-pf
 SUBDIR+=	netbsd-x11-i386
+SUBDIR+=	netbsd_exporter
 SUBDIR+=	netclasses
 SUBDIR+=	netdata-git
 SUBDIR+=	netkit-base
diff --git a/netbsd_exporter/DESCR b/netbsd_exporter/DESCR
new file mode 100644
index 0000000000..37aa654ea8
--- /dev/null
+++ b/netbsd_exporter/DESCR
@@ -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.
diff --git a/netbsd_exporter/Makefile b/netbsd_exporter/Makefile
new file mode 100644
index 0000000000..ecfe932239
--- /dev/null
+++ b/netbsd_exporter/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	0.9.1
+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"
diff --git a/netbsd_exporter/PLIST b/netbsd_exporter/PLIST
new file mode 100644
index 0000000000..74051e3a13
--- /dev/null
+++ b/netbsd_exporter/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+libexec/netbsd_exporter
+man/man8/netbsd_exporter.8
diff --git a/netbsd_exporter/distinfo b/netbsd_exporter/distinfo
new file mode 100644
index 0000000000..4f1ed4a3a0
--- /dev/null
+++ b/netbsd_exporter/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (netbsd_exporter/0.9.1.tar.gz) = b45ce4560ab3125040c7fd6f8106864877948b69510812b017acb17389d626f6
+SHA512 (netbsd_exporter/0.9.1.tar.gz) = c5944a16665d636d3367b4b474caf9302aae9d6086530538510b1e3d3537897cc3b3c80035b7733e1b45af34d84375c5adbf661acf3c9bbaa69d25680042fe9a
+Size (netbsd_exporter/0.9.1.tar.gz) = 4882 bytes
+SHA1 (patch-Makefile) = 9fbce6d6ad41cff2655024b6efb4b0defa3d00db
diff --git a/netbsd_exporter/patches/patch-Makefile b/netbsd_exporter/patches/patch-Makefile
new file mode 100644
index 0000000000..8053addcc2
--- /dev/null
+++ b/netbsd_exporter/patches/patch-Makefile
@@ -0,0 +1,27 @@
+$NetBSD$
+
+Allow overriding installation paths.
+
+--- Makefile.orig	2023-12-26 23:36:07.919447859 +0000
++++ Makefile
+@@ -2,6 +2,8 @@ CC=cc
+ CFLAGS=-Wall -Wextra
+ TARGET=netbsd_exporter
+ VERSION=0.9.1
++PREFIX?=/usr
++MANDIR?=share/man
+ 
+ PACKAGE=$(TARGET)-$(VERSION).tar.gz
+ 
+@@ -22,7 +24,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