aboutsummaryrefslogtreecommitdiff
path: root/devel/fossil
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2018-06-22 08:06:05 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2018-06-22 08:06:05 +0000
commit1eb9e73083c50b1805accdced385314a1174beea (patch)
tree4069272d0d2c8bfd6b355d65e53a7c5adcce0897 /devel/fossil
parentd7ec60f5a55093c0e18e6a9bc5deff6c14bfb129 (diff)
downloadports-1eb9e73083c50b1805accdced385314a1174beea.tar.gz
ports-1eb9e73083c50b1805accdced385314a1174beea.zip
Notes
Diffstat (limited to 'devel/fossil')
-rw-r--r--devel/fossil/Makefile2
-rw-r--r--devel/fossil/files/fossil.in21
2 files changed, 14 insertions, 9 deletions
diff --git a/devel/fossil/Makefile b/devel/fossil/Makefile
index 09de32f99e1a..c1339fd1f9f4 100644
--- a/devel/fossil/Makefile
+++ b/devel/fossil/Makefile
@@ -2,8 +2,8 @@
PORTNAME= fossil
PORTVERSION= 2.6
-PORTREVISION= 0
DISTVERSIONPREFIX= src-
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= devel www
MASTER_SITES= http://fossil-scm.org/index.html/uv/
diff --git a/devel/fossil/files/fossil.in b/devel/fossil/files/fossil.in
index 8615f65ba2f6..d6396d21960d 100644
--- a/devel/fossil/files/fossil.in
+++ b/devel/fossil/files/fossil.in
@@ -18,6 +18,7 @@
# 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
@@ -42,20 +43,24 @@ fossil_proto=${fossil_proto:-"http"}
fossil_directory=${fossil_directory:-"/nonexistent"}
case "${fossil_proto}" in
-http);;
-scgi) fossil_args="--scgi" ;;
-*)
+http)
+ # http is the default
+ ;;
+scgi)
+ fossil_args="--scgi"
+ ;;
+*)
echo "unsupported protocol: ${fossil_proto}, only scgi and http are supported" >&2
-
exit 1
;;
esac
-[ -n "${fossil_baseurl}" ] && fossil_args="${fossil_args} --baseurl ${fossil_baseurl}"
+[ -n "${fossil_baseurl}" ] && fossil_args="${fossil_args} --baseurl ${fossil_baseurl}"
[ -z "${fossil_listenall}" ] && fossil_args="${fossil_args} --localhost"
-[ -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_https}" ] && fossil_args="${fossil_args} --https"
+[ -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"
command_args="-f -p ${pidfile} ${procname} server -P ${fossil_port} ${fossil_args} ${fossil_directory}"