pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/node_exporter
Module Name: pkgsrc
Committed By: bsiegert
Date: Sun Dec 25 17:46:15 UTC 2022
Modified Files:
pkgsrc/sysutils/node_exporter: Makefile
Added Files:
pkgsrc/sysutils/node_exporter/files: node_exporter.sh
Log Message:
node_exporter: add rc.d file, bump revision
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 pkgsrc/sysutils/node_exporter/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/node_exporter/files/node_exporter.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/node_exporter/Makefile
diff -u pkgsrc/sysutils/node_exporter/Makefile:1.44 pkgsrc/sysutils/node_exporter/Makefile:1.45
--- pkgsrc/sysutils/node_exporter/Makefile:1.44 Thu Dec 8 16:14:22 2022
+++ pkgsrc/sysutils/node_exporter/Makefile Sun Dec 25 17:46:15 2022
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.44 2022/12/08 16:14:22 bsiegert Exp $
+# $NetBSD: Makefile,v 1.45 2022/12/25 17:46:15 bsiegert Exp $
DISTNAME= node_exporter-1.4.0
MASTER_SITES= ${MASTER_SITE_GITHUB:=prometheus/}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= sysutils
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -11,6 +11,8 @@ HOMEPAGE= https://github.com/prometheus/
COMMENT= Prometheus exporter for hardware and OS metrics
LICENSE= apache-2.0
+RCD_SCRIPTS= node_exporter
+
GO_BUILD_PATTERN+= -ldflags ' \
-X github.com/prometheus/common/version.Version=${PKGVERSION_NOREV} \
-X github.com/prometheus/common/version.Revision=${PKGREVISION} \
Added files:
Index: pkgsrc/sysutils/node_exporter/files/node_exporter.sh
diff -u /dev/null pkgsrc/sysutils/node_exporter/files/node_exporter.sh:1.1
--- /dev/null Sun Dec 25 17:46:15 2022
+++ pkgsrc/sysutils/node_exporter/files/node_exporter.sh Sun Dec 25 17:46:15 2022
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: node_exporter.sh,v 1.1 2022/12/25 17:46:15 bsiegert Exp $
+#
+# PROVIDE: node_exporter
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="node_exporter"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+command_args=" &"
+node_exporter_flags=${node_exporter_flags:-"--web.listen-address=:9100 --log.level=error"}
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index