git: 16d2120cda74 - main - devel/fossil: add support for --errorlog and document RC variables

From: Pietro Cerutti <gahr_at_FreeBSD.org>
Date: Mon, 09 Jan 2023 10:40:41 UTC
The branch main has been updated by gahr:

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

commit 16d2120cda74e4f87c236be43384aa5949a40e94
Author:     Pietro Cerutti <gahr@FreeBSD.org>
AuthorDate: 2023-01-09 10:39:07 +0000
Commit:     Pietro Cerutti <gahr@FreeBSD.org>
CommitDate: 2023-01-09 10:40:21 +0000

    devel/fossil: add support for --errorlog and document RC variables
    
    Reported by:    Will Senn <will.senn@gmail.com>
---
 devel/fossil/Makefile        |  2 +-
 devel/fossil/files/fossil.in | 25 ++++++++++++++++---------
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/devel/fossil/Makefile b/devel/fossil/Makefile
index dfc64c3603b7..088eae8d682b 100644
--- a/devel/fossil/Makefile
+++ b/devel/fossil/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	fossil
 PORTVERSION=	2.20
 DISTVERSIONPREFIX=	src-
-PORTREVISION=	0
+PORTREVISION=	1
 PORTEPOCH=	2
 CATEGORIES=	devel www
 MASTER_SITES=	https://fossil-scm.org/home/tarball/version-${PORTVERSION}/
diff --git a/devel/fossil/files/fossil.in b/devel/fossil/files/fossil.in
index 317bf2fcdc86..aa77458e1d3b 100644
--- a/devel/fossil/files/fossil.in
+++ b/devel/fossil/files/fossil.in
@@ -11,15 +11,21 @@
 # fossil_enable="YES"
 #
 # You can fine tune others variables too:
-# fossil_port="8080"
-# fossil_directory="/nonexistent"
-# fossil_baseurl=""
-# fossil_proto="http"
-# fossil_listenall=""
-# fossil_https="" # force the HTTPS CGI parameter to "on"
-# fossil_files="" # comma separated globing patterns of files to serve
-# fossil_notfound="" # URI to redirect to in case of 404
-# Use fossil_user to run fossil as user
+#
+# variable           default        description
+# =============================================
+# fossil_port        8080           TCP port to listen to
+# fossil_directory   /nonexistent   directory to serve
+# fossil_repolist    ""             if non-empty, fossil will list the repositories in the fossil_directory when visiting /
+# fossil_baseurl     ""             the server URL, for reverse proxies
+# fossil_proto       http           spawn an http or scgi server
+# fossil_listenall   ""             if empty, only listen on 127.0.0.1
+# fossil_https       ""             if non-empty, force the HTTPS CGI parameter to "on"
+# fossil_files       ""             if non-empty, comma separated glob patterns of files to serve
+# fossil_notfound    ""             if non-empty, URI to redirect to in case of 404
+# fossil_errorlog    ""             if non-empty, path to log file for errors
+# fossil_user        nobody         user to run fossil as
+
 
 . /etc/rc.subr
 
@@ -59,6 +65,7 @@ esac
 [ -n "${fossil_files}"     ] && fossil_args="${fossil_args} --files '${fossil_files}'"
 [ -n "${fossil_notfound}"  ] && fossil_args="${fossil_args} --notfound \"${fossil_notfound}\""
 [ -n "${fossil_repolist}"  ] && fossil_args="${fossil_args} --repolist"
+[ -n "${fossil_errorlog}"  ] && fossil_args="${fossil_args} --errorlog \"${fossil_errorlog}\""
 
 command_args="-S -T ${name} -p ${pidfile} ${procname} server -P ${fossil_port} ${fossil_args} ${fossil_directory}"