git: fb7cd9ae233f - main - net-p2p/qbittorrent: Add the qbittorrent_flags setting for the daemon

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 16 Oct 2023 18:00:30 UTC
The branch main has been updated by yuri:

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

commit fb7cd9ae233f3d3d9777c1b787f25833412183ca
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-10-16 17:58:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-10-16 18:00:27 +0000

    net-p2p/qbittorrent: Add the qbittorrent_flags setting for the daemon
    
    This is only for the 'nox' flavor, to set WebUI settings.
---
 net-p2p/qbittorrent/Makefile             | 2 +-
 net-p2p/qbittorrent/files/qbittorrent.in | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-p2p/qbittorrent/Makefile b/net-p2p/qbittorrent/Makefile
index 744974b337f6..b5662a56dcaf 100644
--- a/net-p2p/qbittorrent/Makefile
+++ b/net-p2p/qbittorrent/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	qbittorrent
 DISTVERSION=	4.5.5
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	net-p2p
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
diff --git a/net-p2p/qbittorrent/files/qbittorrent.in b/net-p2p/qbittorrent/files/qbittorrent.in
index 943f55c643b2..147419c1f8c3 100644
--- a/net-p2p/qbittorrent/files/qbittorrent.in
+++ b/net-p2p/qbittorrent/files/qbittorrent.in
@@ -16,6 +16,8 @@
 #			     Default is 'qbittorrent'
 # qbittorrent_group:	     The group associated with username qbittorrent
 #			     daemon runs as. Default is 'qbittorrent'
+# qbittorrent_flags:	     Arguments that will be passed to qbittorrent.
+#			     For example, --webui-port={port}.
 #
 
 . /etc/rc.subr
@@ -30,6 +32,7 @@ load_rc_config $name
 : ${qbittorrent_download_dir="/var/db/qbittorrent/Downloads"}
 : ${qbittorrent_user=%%USER%%}
 : ${qbittorrent_group=%%GROUP%%}
+: ${qbittorrent_flags=""}
 
 command="%%PREFIX%%/bin/qbittorrent-nox"
 command_args="--daemon"