View | Details | Raw Unified | Return to bug 229200 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	fossil
3
PORTNAME=	fossil
4
PORTVERSION=	2.6
4
PORTVERSION=	2.6
5
PORTREVISION=	0
5
PORTREVISION=	1
6
DISTVERSIONPREFIX=	src-
6
DISTVERSIONPREFIX=	src-
7
PORTEPOCH=	2
7
PORTEPOCH=	2
8
CATEGORIES=	devel www
8
CATEGORIES=	devel www
(-)files/fossil.in (-8 / +13 lines)
Lines 18-23 Link Here
18
# fossil_baseurl=""
18
# fossil_baseurl=""
19
# fossil_proto="http"
19
# fossil_proto="http"
20
# fossil_listenall=""
20
# fossil_listenall=""
21
# fossil_https="" # force the HTTPS CGI parameter to "on"
21
# fossil_files="" # comma separated globing patterns of files to serve
22
# fossil_files="" # comma separated globing patterns of files to serve
22
# fossil_notfound="" # URI to redirect to in case of 404
23
# fossil_notfound="" # URI to redirect to in case of 404
23
# Use fossil_user to run fossil as user
24
# Use fossil_user to run fossil as user
Lines 42-61 Link Here
42
fossil_directory=${fossil_directory:-"/nonexistent"}
43
fossil_directory=${fossil_directory:-"/nonexistent"}
43
44
44
case "${fossil_proto}" in
45
case "${fossil_proto}" in
45
http);;
46
http)
46
scgi) fossil_args="--scgi" ;;
47
	# http is the default
47
*) 
48
	;;
49
scgi)
50
	fossil_args="--scgi"
51
	;;
52
*)
48
	echo "unsupported protocol: ${fossil_proto}, only scgi and http are supported" >&2
53
	echo "unsupported protocol: ${fossil_proto}, only scgi and http are supported" >&2
49
50
	exit 1
54
	exit 1
51
	;;
55
	;;
52
esac
56
esac
53
57
54
[ -n "${fossil_baseurl}" ] && fossil_args="${fossil_args} --baseurl ${fossil_baseurl}"
58
[ -n "${fossil_baseurl}"   ] && fossil_args="${fossil_args} --baseurl ${fossil_baseurl}"
55
[ -z "${fossil_listenall}" ] && fossil_args="${fossil_args} --localhost"
59
[ -z "${fossil_listenall}" ] && fossil_args="${fossil_args} --localhost"
56
[ -n "${fossil_files}" ] && fossil_args="${fossil_args} --files '${fossil_files}'"
60
[ -z "${fossil_https}"     ] && fossil_args="${fossil_args} --https"
57
[ -n "${fossil_notfound}" ] && fossil_args="${fossil_args} --notfound \"${fossil_notfound}\""
61
[ -n "${fossil_files}"     ] && fossil_args="${fossil_args} --files '${fossil_files}'"
58
[ -n "${fossil_repolist}" ] && fossil_args="${fossil_args} --repolist"
62
[ -n "${fossil_notfound}"  ] && fossil_args="${fossil_args} --notfound \"${fossil_notfound}\""
63
[ -n "${fossil_repolist}"  ] && fossil_args="${fossil_args} --repolist"
59
64
60
command_args="-f -p ${pidfile} ${procname} server -P ${fossil_port} ${fossil_args} ${fossil_directory}"
65
command_args="-f -p ${pidfile} ${procname} server -P ${fossil_port} ${fossil_args} ${fossil_directory}"
61
66

Return to bug 229200