ports/119553: www/bozohttpd: Add rc.subr script
Oleg Pudeyev
oleg at bsdpower.com
Fri Jan 11 03:50:02 UTC 2008
>Number: 119553
>Category: ports
>Synopsis: www/bozohttpd: Add rc.subr script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 11 03:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Oleg Pudeyev
>Release: 6.2-RELEASE
>Organization:
>Environment:
FreeBSD kappa.universe 6.2-RELEASE FreeBSD 6.2-RELEASE #2: Wed Jul 18 01:25:26 EDT 2007 root at kappa.universe:/build/src/sys/i386/compile/KAPPA i386
>Description:
Attached bozohttpd.in script and patch for Makefile will make bozohttpd easy to start and stop. I'm not sure how to properly submit several files/patches with one PR so if the Makefile patch below becomes garbled I'll email it to the PR as a followup once the PR exists.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/bozohttpd/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile 8 Jul 2006 05:16:35 -0000 1.12
+++ Makefile 11 Jan 2008 03:44:57 -0000
@@ -7,6 +7,7 @@
PORTNAME= bozohttpd
PORTVERSION= 20060517
+PORTREVISION= 1
CATEGORIES= www ipv6
MASTER_SITES= http://www.eterna.com.au/bozohttpd/ \
${MASTER_SITE_NETBSD}
@@ -37,5 +38,6 @@
MAN8= bozohttpd.8
MANCOMPRESSED= maybe
PLIST_FILES= libexec/bozohttpd
+USE_RC_SUBR= bozohttpd
.include <bsd.port.mk>
Patch attached with submission follows:
#!/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
eval "${rcvar}=\${${rcvar}:-'NO'}"
eval "${name}_flags=\${${name}_flags:-'-b -t /var/empty -U nobody /'}"
command=%%PREFIX%%/libexec/${name}
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list