Skip to content

Commit

Permalink
devel/fossil: add support for --errorlog and document RC variables
Browse files Browse the repository at this point in the history
Reported by:	Will Senn <will.senn@gmail.com>
  • Loading branch information
gahr committed Jan 9, 2023
1 parent 86a190d commit 16d2120
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 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}/
Expand Down
25 changes: 16 additions & 9 deletions devel/fossil/files/fossil.in
Expand Up @@ -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

Expand Down Expand Up @@ -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}"

Expand Down

0 comments on commit 16d2120

Please sign in to comment.