summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2023-01-09 10:39:07 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2023-01-09 10:40:21 +0000
commit16d2120cda74e4f87c236be43384aa5949a40e94 (patch)
treef0a5e9ffc10f5962b12d7a06ada4da980c90891e
parentdevel/rubygem-deep_merge: Update 1.2.1 -> 1.2.2 (diff)
devel/fossil: add support for --errorlog and document RC variables
Reported by: Will Senn <will.senn@gmail.com>
-rw-r--r--devel/fossil/Makefile2
-rw-r--r--devel/fossil/files/fossil.in25
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}"