Add an RC script.

PR:		ports/119553
Submitted by:	Oleg Pudeyev <oleg@bsdpower.com>
Approved by:	Mohacsi Janos (maintainer), garga (mentor)
This commit is contained in:
Wesley Shields 2008-01-24 23:29:53 +00:00
parent c5f8b48b3d
commit 7bfc8d0f68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=206152
2 changed files with 32 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= bozohttpd
PORTVERSION= 20060517
PORTREVISION= 1
CATEGORIES= www ipv6
MASTER_SITES= http://www.eterna.com.au/bozohttpd/ \
${MASTER_SITE_NETBSD}
@ -15,6 +16,7 @@ MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= The bozotic HTTP server
USE_BZIP2= YES
USE_RC_SUBR= bozohttpd
.if defined(WITH_HTPASSWD_SUPPORT)
CFLAGS+= -DDO_HTPASSWD

View file

@ -0,0 +1,30 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bozohttpd
# REQUIRE: DAEMON
#
#
# Add the following lines to /etc/rc.conf to enable bozohttpd:
#
# bozohttpd_enable (bool): Set it to "YES" to enable bozohttpd.
# Default is "NO".
# bozohttpd_flags (str): Options to pass to bozohttpd.
# Default is "-b -t /var/empty -U nobody /".
# The last argument, slashdir, is required.
#
. %%RC_SUBR%%
name="bozohttpd"
rcvar=`set_rcvar`
load_rc_config $name
: ${bozohttpd_enable="NO"}
: ${bozohttpd_flags="-b -t /var/empty -U nobody /"}
command=%%PREFIX%%/libexec/${name}
run_rc_command "$1"