git: 51f61ceaa8b0 - main - net-mgmt/py-gstat_exporter: add gstat_exporter_args

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Mon, 21 Jul 2025 20:58:15 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=51f61ceaa8b00c24671dfee4be3280d3f46199b5

commit 51f61ceaa8b00c24671dfee4be3280d3f46199b5
Author:     Seyed Pouria Mousavizadeh Tehrani <p.mousavizadeh@protonmail.com>
AuthorDate: 2025-07-21 20:53:37 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-07-21 20:57:39 +0000

    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)
---
 net-mgmt/py-gstat_exporter/Makefile                | 3 ++-
 net-mgmt/py-gstat_exporter/files/gstat_exporter.in | 4 +++-
 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"