From owner-freebsd-ports@FreeBSD.ORG Mon Feb 23 11:49:39 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 6591216A4CE for ; Mon, 23 Feb 2004 11:49:39 -0800 (PST) Received: from postman.arcor.de (newsread1.arcor-online.net [151.189.0.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id D095A43D2F for ; Mon, 23 Feb 2004 11:49:38 -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)i1NJnatw000169 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 23 Feb 2004 20:49:37 +0100 (MET) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.30; FreeBSD) id 1AvM58-000HqR-Ay; Mon, 23 Feb 2004 20:49:34 +0100 Message-ID: <403A594E.4010100@fillmore-labs.com> Date: Mon, 23 Feb 2004 20:49:34 +0100 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Freddie Cash References: <4039C206.9020804@fillmore-labs.com> <20040223120917.608.qmail@laurel.tmseck.homedns.org> <49785.192.168.0.185.1077562516.squirrel@mailtest.sd73.bc.ca> In-Reply-To: <49785.192.168.0.185.1077562516.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 19:49:39 -0000 Freddie Cash wrote: >>* Oliver Eikemeier >>[gmane.os.freebsd.devel.ports]: >> >>>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. > >>No, the script is rcNG _aware_. If rc.subr is not present in the two >>locations where the scripts expects it to be, the script will just >>behave like any other rc script. An added bonus is that you get >>reload, restart, and status functions from rcNG. > > Ah, that makes a little more sense, now, after spending a little more > time in the startup script. > > So there's three different ways to go here: > - leave it the way it is using the alphabetical order by script name > (pre-RCng) > - use something like the squid script that works with or without > RCng, still based on the script name > - add a dependency on rc_subr and let RCng handle everything > > I think for the time being, I'll go with the second option, until I > can figure out how RCng and rc_subr work. This also gives a nicer > upgrade path (no RCng --> use if present --> full RCng). Don't. This is no upgrade path, either use rcNG or not, but don't change the behaviour of your port based on other ports configuration. If you don't like rcNG, stick with the old script. As I told before: - You install your port on a clean 4.x system and it starts at boot. Then you install proftpd, and it doesn't, because proftpd pulls in sysutils/rc_subr, which is fine, but suddenly *your* port behaves differently, which is unexpected. - On the other hand, if I use dansguardian_flags in /etc/rc.conf, and then deinstall sysutils/rc_subr (which I can, since your port doesn't depend on it), your port stops using the flags. Take *any* other port with an rc.subr script as an reference. If you want to use rc.subr then depend on it, it's <30k, and set USE_RC_SUBR="YES". We are managing 10k+ ports, and it helps if everybody tries to play by the rules. Besides, currently you get alphabetical order no matter what you do. Regards Oliver