diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2011-04-15 06:00:05 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2011-04-15 06:00:05 +0000 |
commit | 192e5915c9fa27fa2b9e11c75bfda2b8bab8e12a (patch) | |
tree | 765a918802eb0c47af4c0b2f3652f95e84c5415b /www/mohawk/files/mohawk.in | |
parent | b9158754d48b76c3833787eb36b82169117bc2f2 (diff) | |
download | ports-192e5915c9fa27fa2b9e11c75bfda2b8bab8e12a.tar.gz ports-192e5915c9fa27fa2b9e11c75bfda2b8bab8e12a.zip |
Simple and lightweight HTTP daemon.
It provides the following features:
- Basic support for CGI,
- ipv6, authentication,
- virtual host,
- basic authentication
- basic url mapping system.
WWW: http://git.etoilebsd.net/mohawk
Notes
Notes:
svn path=/head/; revision=272739
Diffstat (limited to 'www/mohawk/files/mohawk.in')
-rw-r--r-- | www/mohawk/files/mohawk.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/www/mohawk/files/mohawk.in b/www/mohawk/files/mohawk.in new file mode 100644 index 000000000000..01ce79c2e958 --- /dev/null +++ b/www/mohawk/files/mohawk.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# PROVIDE: mohawk +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable mohawk: +# +# mohawk_enable (bool): Set it to "YES" to enable mohawk +# Default is "NO". +# mohawk_conf (path): Set full path to config file. +# Default is "%%PREFIX%%/etc/mohawk.conf". + +. /etc/rc.subr + +name="mohawk" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${mohawk_enable="NO"} +: ${mohawk_conf="%%PREFIX%%/etc/mohawk.conf"} + +command=%%PREFIX%%/sbin/mohawk +command_args="-c ${mohawk_conf}" +required_files=${mohawk_conf} + +run_rc_command "$1" |