Skip to main content.

2004-Apr-23

I like ssh and I like cpio:

grep '^+++' J3 | awk '{print $2}' | cpio -ov |
ssh tahoma 'cd /usr/pkgsrc ; cpio -uiv'

Committed simple fix to pkgsrc so now it automatically registers the rc.d script(s) entry in the PLIST for packages using RCD_SCRIPTS. This fixes the problem where it was broken for those using custom RCD_SCRIPTS_EXAMPLEDIR.

I did this work using pkgsrc under FreeBSD. Although I have been using these ideas for over a year on various NetBSD and Linux systems.

The hard-part was a simple shell one-liner to remove the entries from around 130 packages' PLISTs. And I found some packages that also hard-coded use of etc/rc.d in the Makefiles -- I provided patches for these and contacted maintainers, but didn't change those ones.

Next to do is set RCD_SCRIPTS_EXAMPLEDIR to ${PREFIX}/share/examples/rc.d.