Subject: Re: pkg/19166: example rc.d scripts for packages should be registered in package contents
To: grant beattie <grant@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 01/20/2003 12:51:29
[ On Monday, January 20, 2003 at 14:01:03 (+1100), grant beattie wrote: ]
> Subject: Re: pkg/19166: example rc.d scripts for packages should be registered in package contents
>
> On Sun, Jan 19, 2003 at 09:50:36PM -0500, Greg A. Woods wrote:
> >
> > Currently the files installed in the RCD_SCRIPTS_EXAMPLEDIR are not
> > registered, which was the entire original point of this PR.
>
> This occurs *only* if RCD_SCRIPTS_EXAMPLEDIR has been overridden, and
> then only if packages do not use RCD_SCRIPTS_EXAMPLEDIR in the PLIST.
Yes, true enough -- overridden or changed in the source -- but that was
my original point.
I should have been more clear about that the first time around, but I
really had thought it was obvious with my patch. Sorry about that.
I should also have pointed out that any direct (manual) mention of
RCD_SCRIPTS in the PLISTs also have to be removed (e.g. I just had to do
this for net-snmp, cyrus-imapd*, openldap, bind*, etc. -- any packages
which have been converted to use the new RCD_SCRIPTS feature).
> However, it's probably better to rip them out of PLISTs and have
> the contents of RCD_SCRIPTS added to the PLIST automatically to save
> manual work.
Absolutely! ;-)
But the "manual work" part is irrelevant -- the point is that the PLIST
maintainer cannot possibly ever anticipate where they will be installed
since RCD_SCRIPTS_EXAMPLEDIR is a user driven variable and could point
anywhere. Currently even RCD_SCRIPTS_DIR is user settable and so if a
user sets it to the default value of RCD_SCRIPTS_EXAMPLEDIR without also
resetting that latter variable then things get really confused.
And of course I think the default for RCD_SCIRPTS_EXAMPLEDIR should _not_
be anywhere under ${PREFIX}/etc so as to avoid some confusion and future
problems too.
--
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>