Subject: HEADS UP: RCD_SCRIPTS_EXAMPLEDIR changed to share/examples/rc.d
To:, <>
From: Jeremy C. Reed <>
List: netbsd-users
Date: 12/27/2004 19:08:56
As discussed for a few years, the pkgsrc RCD_SCRIPTS_EXAMPLEDIR setting is
now share/examples/rc.d.

So by default for packages using the RCD_SCRIPTS mechanism, the
pkgsrc-installed "rc.d" scripts are installed to
/usr/pkg/share/examples/rc.d/ directory. This is similar to example
configuration files which are installed to /usr/pkg/share/examples/.

The rc.d scripts previously were installed to ${PREFIX}/etc/.  This caused
confusion, because the "examples" were placed in the "etc" directory.

If you want the examples to be automatically copied into place, set
PKG_RCD_SCRIPTS to YES, PKG_CONFIG to YES (the default) and
RCD_SCRIPTS_DIR to the location you want them to be copied to.

RCD_SCRIPTS_DIR defaults to /etc/rc.d. So to have the example rc.d scripts
copied into /etc/rc.d, simply set PKG_RCD_SCRIPTS=YES in your mk.conf.

(If a file already exists at the RCD_SCRIPTS_DIR location, then it should
not be overwritten and a note will be displayed suggesting you can
manually take care of this.)

For those of you using rc_rcorder_flags or other custom /etc/rc* code to
use old /usr/pkg/etc/rc.d scripts -- be sure to modify as necessary.

For pkgsrc maintainers:

I bumped PKGREVISIONs (as requested) for all packages using the
RCD_SCRIPTS mechanism. (Any dependencies were not bumped.) Please verify
to make sure I didn't break anything. Please note that PKGREVISIONs should
never be set in shared "common" makefiles.

Also, several MESSAGE (+DISPLAY) files need to be improved for explaining
how to use the pkgsrc provided rc.d scripts. Please cleanup your MESSAGE
file or remove it if it doesn't add anything beyond what is already known.
We could consider having an automatically generated MESSAGE based on if

A few packages install to ${PREFIX}/etc/rc.d manually. Please fix these

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links