From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 22 12:30:16 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7216616A412 for ; Wed, 22 Nov 2006 12:30:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id A15FF43D5A for ; Wed, 22 Nov 2006 12:29:45 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAMCUDha053069 for ; Wed, 22 Nov 2006 12:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAMCUD5R053066; Wed, 22 Nov 2006 12:30:13 GMT (envelope-from gnats) Resent-Date: Wed, 22 Nov 2006 12:30:13 GMT Resent-Message-Id: <200611221230.kAMCUD5R053066@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, Sten Spans Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DB98316A40F for ; Wed, 22 Nov 2006 12:22:52 +0000 (UTC) (envelope-from sten@mx0.blinkenlights.nl) Received: from mx0.blinkenlights.nl (mx0.blinkenlights.nl [89.188.0.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C39043D58 for ; Wed, 22 Nov 2006 12:22:24 +0000 (GMT) (envelope-from sten@mx0.blinkenlights.nl) Received: by mx0.blinkenlights.nl (Postfix, from userid 101) id 2CFEB73027; Wed, 22 Nov 2006 13:22:51 +0100 (CET) Message-Id: <20061122122251.2CFEB73027@mx0.blinkenlights.nl> Date: Wed, 22 Nov 2006 13:22:51 +0100 (CET) From: Sten Spans To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/105743: [patch] ports/www/varnish add rc-ng script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sten Spans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2006 12:30:16 -0000 >Number: 105743 >Category: ports >Synopsis: [patch] ports/www/varnish add rc-ng script >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Nov 22 12:30:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Sten Spans >Release: FreeBSD 6.1-RELEASE-p7 i386 >Organization: >Environment: System: FreeBSD earth.blinkenlights.nl 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Sun Sep 24 14:42:21 CEST 2006 root@earth.blinkenlights.nl:/usr/obj/usr/src/sys/1650 i386 >Description: the varnish port currently doesn't include a startup-script, which makes controling the daemon somewhat awkward. >How-To-Repeat: >Fix: the following diff adds an rc-ng script and bumps portrevision. --- Makefile.orig Wed Nov 15 04:11:56 2006 +++ Makefile Wed Nov 22 13:02:09 2006 @@ -7,7 +7,7 @@ PORTNAME= varnish PORTVERSION= 1.0.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -23,6 +23,7 @@ MAN1= varnishd.1 varnishhist.1 varnishlog.1 varnishncsa.1 \ varnishstat.1 varnishtop.1 MAN7= vcl.7 +USE_RC_SUBR+= varnishd .include --- files/varnishd.in Thu Jan 1 01:00:00 1970 +++ files/varnishd.in Wed Nov 22 13:00:27 2006 @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $$ +# + +# PROVIDE: varnishd +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable varnishd: +# +#varnishd_enable="YES" +# +# See varnishd(1) for flags. +# + +. %%RC_SUBR%% + +name=varnishd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/varnishd + +# set defaults + +varnishd_enable=${varnishd_enable:-"NO"} +varnishd_flags=${varnishd_flags:-""} + +load_rc_config ${name} + +run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted: