Subject: Re: HEADS UP: RCD_SCRIPTS_EXAMPLEDIR changed to share/examples/rc.d
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: Todd Vierling <>
List: tech-pkg
Date: 12/31/2004 09:09:44
On Fri, 31 Dec 2004, Greg A. Woods wrote:

> > Maybe RCD_SCRIPTS_DIR should default to ${PKG_SYSCONFBASE}/rc.d
> No, that's not a good idea at all.

Well, one policy of pkgsrc is that things should be installed under
LOCALBASE (by default) whenever possible, in order to avoid clobbering base
system supplied files.  That goes with the PKG_SYSCONFBASE suggestion, which
defaults to under LOCALBASE, but is just as movable by configuration as

> It _must_ default to wherever the target platform puts its startup
> scripts (assuming the target platform uses a compatible type of script)

Only NetBSD uses a compatible type of script.  To wit:

> E.g. on NetBSD it _MUST_ be /etc/rc.d and perhaps on Solaris it should
> be /etc/init.d

It definitely should not be /etc/init.d on Solaris, because rcN.d links are
not made.  rc.d scripts require use of rcorder, so they need to be in one
directory without any non-rc.d form scripts.

On NetBSD, that depends on the desired integration level by the admin.  If
/usr is not separate from / (and in many installations, it's not anymore),
adding to rc_rcorder_flags can integrate PKG_SYSCONFBASE/rc.d without
intermixing base system and pkgsrc scripts.

-- Todd Vierling <> <>