summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeyed Pouria Mousavizadeh Tehrani <p.mousavizadeh@protonmail.com>2025-07-22 05:53:37 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2025-07-22 05:57:39 +0900
commit51f61ceaa8b00c24671dfee4be3280d3f46199b5 (patch)
treeaee861c4a85f560d1f1c269d17269f12b3c8145a
parentnet/eternalterminal: Update to 6.2.10 (diff)
net-mgmt/py-gstat_exporter: add gstat_exporter_args
PR: 278041 Reported by: Seyed Pouria Mousavizadeh Tehrani <p.mousavizadeh@protonmail.com> Reviewed by: Lapo Luchini <lapo@lapo.it> (maintainer) Approved by: Lapo Luchini <lapo@lapo.it> (maintainer)
-rw-r--r--net-mgmt/py-gstat_exporter/Makefile3
-rw-r--r--net-mgmt/py-gstat_exporter/files/gstat_exporter.in4
2 files changed, 5 insertions, 2 deletions
diff --git a/net-mgmt/py-gstat_exporter/Makefile b/net-mgmt/py-gstat_exporter/Makefile
index 0690baafef49..9e32f448177e 100644
--- a/net-mgmt/py-gstat_exporter/Makefile
+++ b/net-mgmt/py-gstat_exporter/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gstat_exporter
DISTVERSION= 0.2.0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-mgmt python
MASTER_SITES= PYPI
@@ -17,8 +18,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7.1:net-mgmt/py-prometh
USES= python
USE_RC_SUBR= gstat_exporter
-NO_BUILD= yes
NO_ARCH= yes
+NO_BUILD= yes
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
diff --git a/net-mgmt/py-gstat_exporter/files/gstat_exporter.in b/net-mgmt/py-gstat_exporter/files/gstat_exporter.in
index 42afc2e24d2c..cec6d3663104 100644
--- a/net-mgmt/py-gstat_exporter/files/gstat_exporter.in
+++ b/net-mgmt/py-gstat_exporter/files/gstat_exporter.in
@@ -8,6 +8,8 @@
#
# gstat_exporter_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable gstat_exporter_enable.
+# gstat_exporter_args (string): Set to "" by default.
+# Set additional command line arguments
. /etc/rc.subr
@@ -22,6 +24,6 @@ load_rc_config ${name}
pidfile="/var/run/${name}.pid"
command_interpreter=%%PYTHON_CMD%%
command=%%PREFIX%%/bin/${name}.py
-start_cmd="/usr/sbin/daemon -f -p ${pidfile} $command_interpreter $command"
+start_cmd="/usr/sbin/daemon -f -p ${pidfile} $command_interpreter $command ${gstat_exporter_args}"
run_rc_command "$1"