summaryrefslogtreecommitdiff
path: root/net-mgmt/py-gstat_exporter
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/py-gstat_exporter')
-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"