[Midnightbsd-cvs] mports: www/bozohttpd: Add rc.d script, license
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Feb 14 21:03:03 EST 2008
Log Message:
-----------
Add rc.d script, license
Modified Files:
--------------
mports/www/bozohttpd:
Makefile (r1.2 -> r1.3)
Added Files:
-----------
mports/www/bozohttpd/files:
bozohttpd.in (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/www/bozohttpd/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -L www/bozohttpd/Makefile -L www/bozohttpd/Makefile -u -r1.2 -r1.3
--- www/bozohttpd/Makefile
+++ www/bozohttpd/Makefile
@@ -8,16 +8,18 @@
PORTNAME= bozohttpd
PORTVERSION= 20060517
-PORTREVISON= 1
+PORTREVISON= 2
CATEGORIES= www ipv6
MASTER_SITES= http://www.eterna.com.au/bozohttpd/ \
${MASTER_SITE_NETBSD}
MAINTAINER= ports at MidnightBSD.org
COMMENT= The bozotic HTTP server
+LICENSE= bsd3
FAKE_OPTS= trueprefix
USE_BZIP2= YES
+USE_RC_SUBR= bozohttpd
.if defined(WITH_HTPASSWD_SUPPORT)
CFLAGS+= -DDO_HTPASSWD
--- /dev/null
+++ www/bozohttpd/files/bozohttpd.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# 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"
More information about the Midnightbsd-cvs
mailing list