devel/fossil: add support for --errorlog and document RC variables
Reported by: Will Senn <will.senn@gmail.com>
This commit is contained in:
parent
86a190d98f
commit
16d2120cda
@ -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}/
|
||||
|
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user