From owner-freebsd-ports@FreeBSD.ORG Fri Mar 5 11:23:56 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 94AC616A4CF for ; Fri, 5 Mar 2004 11:23:56 -0800 (PST) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CEF443D49 for ; Fri, 5 Mar 2004 11:23:56 -0800 (PST) (envelope-from tillman@seekingfire.com) Received: by mail.seekingfire.com (Postfix, from userid 500) id 3AB9E2ED; Fri, 5 Mar 2004 13:23:56 -0600 (CST) Date: Fri, 5 Mar 2004 13:23:55 -0600 From: Tillman Hodgson To: ports@freebsd.org Message-ID: <20040305192355.GB8158@seekingfire.com> References: <4039C206.9020804@fillmore-labs.com> <20040223120917.608.qmail@laurel.tmseck.homedns.org> <49785.192.168.0.185.1077562516.squirrel@mailtest.sd73.bc.ca> <403A594E.4010100@fillmore-labs.com> <49973.192.168.0.185.1077567089.squirrel@mailtest.sd73.bc.ca> <066001c3fa50$e81c1cb0$cebe7726@westbend.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <066001c3fa50$e81c1cb0$cebe7726@westbend.net> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-GPG-Key-ID: 828AFC7B X-GPG-Fingerprint: 5584 14BA C9EB 1524 0E68 F543 0F0A 7FBC 828A FC7B X-GPG-Key: http://www.seekingfire.com/gpg_key.asc X-Urban-Legend: There is lots of hidden information in headers User-Agent: Mutt/1.5.6i 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: Fri, 05 Mar 2004 19:23:56 -0000 On Mon, Feb 23, 2004 at 03:06:07PM -0600, Scot W. Hetzel wrote: > From: "Freddie Cash" > > Ah, thank you for explaining it a little better. The situations above > > makes things much clearer for me. For now, I'll leave it with the > > old, non-RCng script until I can wrap my head around the whole of RCng > > and rc-subr and how it all works. > > > Have a look at ports/security/cyrus-sasl/files/saslauthd.sh for a very > simple RCng script. > > Also read the man page for rc.subr (4.x install rc_subr port first to read > man page) > > For more complex RCng scripts look at the 5.x /etc/rc.d scripts: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d Howdy, I thought I'd pick up on this thread. I'm working on an rcNG for a port that would work similar to way that static_routes work in rc.conf: the "flags" variable would list config file names. I'd then use a "for i ${flags}; do" type statement to to look for a config file of the same name in a specific directory and, if it exists, start the program with that config file. I'd also like to parse the command line for it ... "start config1" and "stop config1", for example, with the default if unspecified meaning "all". I imagine that this is a generic problem and has already been solved in a clean and satisfactory fashion. If so, would somebody please point me to an rcNG script that does something like this? If not, any pointers as to how to safely wrap "command=" in a for look would be great :-) Thanks, -T -- "The real question is not whether machines think but whether men do." - B. F. Skinner, _Contingencies of Reinforcement_