Subject: RCD_SCRIPTS addon to pkgsrc.txt ?
To: None <tech-pkg@NetBSD.org>
From: iMil <imil@home.imil.net>
List: tech-pkg
Date: 01/14/2005 11:30:57
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

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, 
e.g. yourscript.sh

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 <imil@home.imil.net>                                                 _
      http://gcu-squad.org                          ASCII ribbon campaign ( )
                                                     - against HTML email  X
                                                                 & vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFB559kFG3BlGWyzUIRAtpcAJ456kcEc+52o/u/k0bDvpRnRQsfEgCZATbT
NjM0bdBK6Qklb5YA33DFNhk=
=bRsB
-----END PGP SIGNATURE-----