From owner-freebsd-ports@FreeBSD.ORG Mon Feb 23 01:04:20 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D35AE16A4CE for ; Mon, 23 Feb 2004 01:04:20 -0800 (PST) Received: from postman.arcor.de (postman2.arcor-online.net [151.189.0.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49D2543D1D for ; Mon, 23 Feb 2004 01:04:20 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from fillmore.dyndns.org (port-212-202-51-138.reverse.qsc.de [212.202.51.138]) (authenticated bits=0)i1N94Af5026512 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 23 Feb 2004 10:04:19 +0100 (MET) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.30; FreeBSD) id 1AvC0W-000EHc-59; Mon, 23 Feb 2004 10:04:08 +0100 Message-ID: <4039C206.9020804@fillmore-labs.com> Date: Mon, 23 Feb 2004 10:04:06 +0100 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Freddie Cash References: <2107.24.71.130.94.1077515696.squirrel@mailtest.sd73.bc.ca> <50589.24.71.131.139.1077518340.squirrel@mailtest.sd73.bc.ca> In-Reply-To: <50589.24.71.131.139.1077518340.squirrel@mailtest.sd73.bc.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ports@freebsd.org Subject: Re: OPTIONS, LATEST_LINK, and RCng X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 09:04:20 -0000 Freddie Cash wrote: > While updating the www/dansguardian* ports to use the new OPTIONS and > LATEST_LINK variables, I noticed that the www/squid port now uses RCng > for the startup script. This is good news, because it means I can > rename the dansguardian startup script back to dansguardian.sh and > just use RCng to make sure it's started after squid. This will work only if you move your start/stop scripts to /etc/rc.d, see PR 56736: > One quick question: Should "squid" be added to the REQUIRE line, or > is that only for system services? Since you have a RUN_DEPENDS of squid, yes. > unset rcNG > [...] > if [ -f /etc/rc.subr ]; then > . /etc/rc.subr && rcNG="yes" > else > if [ -f /usr/local/etc/rc.subr ]; then > . /usr/local/etc/rc.subr && rcNG="yes" > fi > fi You should just USE_RC_SUBR=yes with post-build: ${SED} -e 's,%%RC_SUBR%%,${RC_SUBR},g' ${FILESDIR}/dansguardian.sh \ >${WRKDIR}/dansguardian.sh in the Makefile and . %%RC_SUBR%% in the start/stop script -Oliver