Subject: RCD_SCRIPTS addon to pkgsrc.txt ?
To: None <>
From: iMil <>
List: tech-pkg
Date: 01/14/2005 11:30:57
Hash: SHA1


i personally use the RCD_* framework for some of the packages i maintain 
in pkgsrc-wip, but i found that the pkgsrc.txt documentation is really 
lacking a chapter on this matter. The only support one gets when 
google'ing is Jeremy's post on the RCD_SCRIPTS_EXAMPLEDIR change.
So i wrote some lines, just to inform new package makers there's a better 
way than copying rc.d start-stop scripts by hand :)

NB: these lines may be full of english mistakes..

- ---[snip]---
XX. rc.d scripts

If your package use one or more rc.d start-stop script, you should not 
copy them by hand, but instead use the RCD_* variables.

First, you must create the scripts themselves and copy them to the files/
directory of your package. Filenames must end with the ".sh" extension, 

In order to use the RCD_* variables, you'll have to set USE_PKGINSTALL to 
YES. Then, set a RCD_SCRIPTS variable, containing the scripts list :

RCD_SCRIPTS=    toold resumed

The scripts will be installed in the ${RCD_SCRIPTS_EXAMPLEDIR} directory,
whose default location is set to /usr/pkg/share/examples/rc.d/.

If you want the package to automatically install the rc.d scripts to
${RCD_SCRIPTS_DIR}, whose default location is set to /etc/rc.d, set the
PKG_RCD_SCRIPTS variable to YES in your mk.conf.
- ---[snip]---

- -------------------------
iMil <>                                                 _                          ASCII ribbon campaign ( )
                                                     - against HTML email  X
                                                                 & vCards / \
Version: GnuPG v1.2.6 (NetBSD)