From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 11 03:50:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23BFD16A421 for ; Fri, 11 Jan 2008 03:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0F2B013C45B for ; Fri, 11 Jan 2008 03:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0B3o1gV069711 for ; Fri, 11 Jan 2008 03:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0B3o1ge069710; Fri, 11 Jan 2008 03:50:01 GMT (envelope-from gnats) Resent-Date: Fri, 11 Jan 2008 03:50:01 GMT Resent-Message-Id: <200801110350.m0B3o1ge069710@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oleg Pudeyev Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82AB016A419 for ; Fri, 11 Jan 2008 03:47:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8F513C457 for ; Fri, 11 Jan 2008 03:47:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0B3kN9t013576 for ; Fri, 11 Jan 2008 03:46:23 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0B3kNJP013575; Fri, 11 Jan 2008 03:46:23 GMT (envelope-from nobody) Message-Id: <200801110346.m0B3kNJP013575@www.freebsd.org> Date: Fri, 11 Jan 2008 03:46:23 GMT From: Oleg Pudeyev To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/119553: www/bozohttpd: Add rc.subr script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2008 03:50:02 -0000 >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@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 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: