On Fri, 23 Oct 2009 21:05:17 +0900, David Brownlee <abs%netbsd.org@localhost> wrote:
I have a set of packages which I want to use /etc for their config files (pretty much only those which have config I change and care about/backedup if $PREFIX was blown away), but most I want to leave in $PREFIX/etc I currently have the below in mk.conf - can anyone think of a saner way of doing this?
You can use PKG_SYSCONFDIR.${PKG_SYSCONFVAR} (${PKG_SYSCONFVAR} == ${PKGBASE} by default). ex. PKG_SYSCONFDIR.php=/etc -- "Of course I love NetBSD":-) OBATA Akio / obache%NetBSD.org@localhost