Subject: Help building a new package (was heartbeat (linux-ha))
To: OBATA Akio <>
From: Louis Guillaume <>
List: pkgsrc-users
Date: 02/12/2007 12:58:05
OBATA Akio wrote:

> "14.2. Configuration files" should help you.
> "14.4. System users and groups" should help you.
> "20.2. Submitting source packages (for non-NetBSD-developers)"
> You are welcomed by pkgsrc-wip project!

Thank you! I found these very helpful. There is one area that I'm having
difficulty with now, perhaps someone can help:

The guide says,

  "You must teach the package (usually by manually
   patching it) to install any configuration files
   under the examples hierarchy,
   share/examples/${PKGBASE}/. This way, the PLIST
   registers them and the administrator always has
   the original copies available."

Can someone help explain how this is intended to work? It seems we want
the install targets to put things in $PREFIX/share/examples but have the
configure script still use $PKG_SYSCONFBASE. But how? The install
targets are done at configure time. Do we have a way to patch Makefiles

Also - I want to move the /etc/init.d scripts from my package into
${PREFIX}/share/examples/heartbeat/init.d. But configure has a fatal
error if it can't find that directory. Any ideas how to get around that?