pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/node_exporter node_exporter: add rc.d file, b...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b5bdccd52d25
branches: trunk
changeset: 390637:b5bdccd52d25
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sun Dec 25 17:46:15 2022 +0000
description:
node_exporter: add rc.d file, bump revision
diffstat:
sysutils/node_exporter/Makefile | 6 ++++--
sysutils/node_exporter/files/node_exporter.sh | 17 +++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r b197009214d8 -r b5bdccd52d25 sysutils/node_exporter/Makefile
--- a/sysutils/node_exporter/Makefile Sun Dec 25 17:32:52 2022 +0000
+++ b/sysutils/node_exporter/Makefile Sun Dec 25 17:46:15 2022 +0000
@@ -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 @@
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} \
diff -r b197009214d8 -r b5bdccd52d25 sysutils/node_exporter/files/node_exporter.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/node_exporter/files/node_exporter.sh Sun Dec 25 17:46:15 2022 +0000
@@ -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