git: dcdc145cdd33 - main - www/py-gunicorn: Allow rc override

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 03 Sep 2025 16:53:17 UTC
The branch main has been updated by bofh:

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

commit dcdc145cdd336b2ba5da0b3ba4fa33436012a285
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-09-03 16:52:19 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-09-03 16:53:03 +0000

    www/py-gunicorn: Allow rc override
---
 www/py-gunicorn/Makefile          |  2 +-
 www/py-gunicorn/files/gunicorn.in | 15 ++++++++++-----
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/www/py-gunicorn/Makefile b/www/py-gunicorn/Makefile
index 3fe09753c57d..29a2828b1fe3 100644
--- a/www/py-gunicorn/Makefile
+++ b/www/py-gunicorn/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gunicorn
 DISTVERSION=	23.0.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-gunicorn/files/gunicorn.in b/www/py-gunicorn/files/gunicorn.in
index 62e1fb68f56d..cb2c8dabaa8e 100644
--- a/www/py-gunicorn/files/gunicorn.in
+++ b/www/py-gunicorn/files/gunicorn.in
@@ -6,9 +6,14 @@
 # KEYWORD: shutdown
 #
 # Add the following lines to /etc/rc.conf to enable gunicorn:
-#  gunicorn_enable (bool):    Set to "NO" by default.
-#                       Set it to "YES" to enable gunicorn.
+#  gunicorn_enable (bool):  Set to "NO" by default.
+#			    Set it to "YES" to enable gunicorn.
 #
+# gunicorn_config (str):    Path to gunicorn config file.
+#
+# gunicorn_user (str):      User to run gunicorn as.
+#
+# gunicorn_group (str):     Group to run gunicorn as.
 
 . /etc/rc.subr
 
@@ -20,9 +25,9 @@ rcvar=gunicorn_enable
 load_rc_config $name
 
 : ${gunicorn_enable:=NO}
-: ${gunicorn_config=%%PREFIX%%/etc/gunicorn/gunicorn.conf.py}
-: ${gunicorn_user=%%USERS%%}
-: ${gunicorn_group=%%GROUPS%%}
+: ${gunicorn_config:=%%PREFIX%%/etc/gunicorn/gunicorn.conf.py}
+: ${gunicorn_user:=%%USERS%%}
+: ${gunicorn_group:=%%GROUPS%%}
 
 pidfile="/var/run/${name}.pid"
 cpidfile="/var/run/${name}-worker.pid"