pkgsrc-WIP-changes archive

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

Update netbsd_exporter to v0.9.4



Module Name:	pkgsrc-wip
Committed By:	Matthias Petermann <mp%petermann-it.de@localhost>
Pushed By:	mp
Date:		Thu May 23 06:15:13 2024 +0200
Changeset:	4b24e60951e208f93c558eabb8d15122a5e4ce28

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

Log Message:
Update netbsd_exporter to v0.9.4

* the new version fixes an integer overflow occured on 32 bit systems
* the package was converted to use Github as its primary source

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4b24e60951e208f93c558eabb8d15122a5e4ce28

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

diffstat:
 netbsd_exporter/COMMIT_MSG             |  4 ++++
 netbsd_exporter/DESCR                  |  5 +++++
 netbsd_exporter/Makefile               | 20 ++++++++++++++++++++
 netbsd_exporter/PLIST                  |  3 +++
 netbsd_exporter/distinfo               |  6 ++++++
 netbsd_exporter/patches/patch-Makefile | 28 ++++++++++++++++++++++++++++
 6 files changed, 66 insertions(+)

diffs:
diff --git a/netbsd_exporter/COMMIT_MSG b/netbsd_exporter/COMMIT_MSG
new file mode 100644
index 0000000000..9f81c103c2
--- /dev/null
+++ b/netbsd_exporter/COMMIT_MSG
@@ -0,0 +1,4 @@
+Update netbsd_exporter to v0.9.4
+
+* the new version fixes an integer overflow occured on 32 bit systems
+* the package was converted to use Github as its primary source
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..de8ed38be1
--- /dev/null
+++ b/netbsd_exporter/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2023/12/29 20:55:02 wiz Exp $
+
+DISTNAME=	netbsd_exporter-0.9.4
+MASTER_SITES=	${MASTER_SITE_GITHUB:=MatthiasPetermann/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	sysutils
+DIST_SUBDIR=	${DISTNAME}
+
+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}/${DISTNAME}
+
+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..11a1900f90
--- /dev/null
+++ b/netbsd_exporter/PLIST
@@ -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
diff --git a/netbsd_exporter/distinfo b/netbsd_exporter/distinfo
new file mode 100644
index 0000000000..6f5db152de
--- /dev/null
+++ b/netbsd_exporter/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2023/12/29 20:55:02 wiz Exp $
+
+BLAKE2s (netbsd_exporter-0.9.4/netbsd_exporter-0.9.4.tar.gz) = bc33ad7771e1845ee29b2ab954a42b1ad4db622a58eadcc92aa13706e890e6fa
+SHA512 (netbsd_exporter-0.9.4/netbsd_exporter-0.9.4.tar.gz) = 1051cf9747a6c72fef728c0900cdb1e034cf7d3a524c2e6e3cec9127e46aa4106f3353f77b6fd0fca000f993f20a7cc85fef4897381664272cb4cb7bba41ed21
+Size (netbsd_exporter-0.9.4/netbsd_exporter-0.9.4.tar.gz) = 4918 bytes
+SHA1 (patch-Makefile) = d6b87c237b179917d2ff932443d66cf34824bcaa
diff --git a/netbsd_exporter/patches/patch-Makefile b/netbsd_exporter/patches/patch-Makefile
new file mode 100644
index 0000000000..8433cbfc33
--- /dev/null
+++ b/netbsd_exporter/patches/patch-Makefile
@@ -0,0 +1,28 @@
+$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,7 +2,9 @@ CC=cc
+ CFLAGS=-Wall -Wextra
+ TARGET=netbsd_exporter
+ VERSION=0.9.4
+ 
++PREFIX?=/usr
++MANDIR?=share/man
+ PACKAGE=$(TARGET)-$(VERSION).tar.gz
+ 
+ all: $(TARGET)
+@@ -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