Subject: Re: managing /usr/pkg/etc/rc.d
To: David Brownlee <abs@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-users
Date: 05/16/2003 16:51:44
[ On Friday, May 16, 2003 at 11:54:50 (+0100), David Brownlee wrote: ]
> Subject: Re: managing /usr/pkg/etc/rc.d
>
> On Thu, 15 May 2003, Greg A. Woods wrote:
> 
> > All the other noise about automatic activation, possible conflicts, and
> > such is really just fallout.  It would mostly go away if the already
> > proposed fixes to use ${PREFIX}/share/examples/rc.d (or similar) and the
> > appending of instructions to the +DISPLAY file were implemented.  I
> > think it would actually go away completely if some tool(s) like "sushi"
> > were able to do all the manual parts with the push of a button,
> > including any conflict detection and whatnot.  You don't even need
> > another tag in the PLIST to identify RCD scripts if they all follow a
> > known naming convention (e.g. ${PREFIX}/share/examples/${PKGNAME} --
> > note:  PKGNAME, not PKGBASE!).
> 
> 	That breaks for packages with multiple rc.d scripts such
> 	as samba (samba, nmbd, smbd).

No, not really.  Just extend the name as necessary/desired:

	${PREFIX}/share/examples/${PKGNAME}-script-a
	${PREFIX}/share/examples/${PKGNAME}-script-b
	. . .
	${PREFIX}/share/examples/${PKGNAME}-script-Z

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>