pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: DESTDIR and CONF_FILES



On Wed, 09 Sep 2009 16:08:42 +0900, Martti Kuparinen 
<martti.kuparinen%iki.fi@localhost> wrote:

How should these two go together? I tried to create a package of
pkgtools/rc.subr but it fails like this:

===> Installing for rc.subr-20090118
=> Creating installation directories
/usr/bin/install -c -o root -g wheel -m 644
/home/pkgsrc/pkgtools/rc.subr/work.i386/rc.subr-20090118/rc.conf.example
/home/pkgsrc/pkgtools/rc.subr/work.i386/.destdir/etc/rc.conf.example
/usr/bin/install -c -o root -g wheel -m 644
/home/pkgsrc/pkgtools/rc.subr/work.i386/rc.subr-20090118/rc.subr
/home/pkgsrc/pkgtools/rc.subr/work.i386/.destdir/etc/rc.subr
/usr/bin/install -c -o root -g wheel -m 755
/home/pkgsrc/pkgtools/rc.subr/work.i386/rc.subr-20090118/rc.d/DAEMON
/home/pkgsrc/pkgtools/rc.subr/work.i386/.destdir//etc/rc.d
/usr/bin/install -c -o root -g wheel -m 755
/home/pkgsrc/pkgtools/rc.subr/work.i386/rc.subr-20090118/rc.d/LOGIN
/home/pkgsrc/pkgtools/rc.subr/work.i386/.destdir//etc/rc.d
/usr/bin/install -c -o root -g wheel -m 755
/home/pkgsrc/pkgtools/rc.subr/work.i386/rc.subr-20090118/rc.d/NETWORKING
/home/pkgsrc/pkgtools/rc.subr/work.i386/.destdir//etc/rc.d
/usr/bin/install -c -o root -g wheel -m 755
/home/pkgsrc/pkgtools/rc.subr/work.i386/rc.subr-20090118/rc.d/SERVERS
/home/pkgsrc/pkgtools/rc.subr/work.i386/.destdir//etc/rc.d
=> Automatic manual page handling
ERROR: CONF_FILE /etc/rc.conf.example does not exist.
*** Error code 1

Can I add ${DESTDIR} to the CONF_FILES or is that wrong?

You should remove ${PREFIX} form example file instead.

XXX: rc.conf is installed in ${PREFIX}etc, but it is absolutely expected at 
/etc/rc.conf for rc.subr.
XXX: ${RCD_SCRIPTS_DIR} is absolute path, so it is completely wrong adding 
${PREFIX} to it.
XXX: and so on...

--
"Of course I love NetBSD":-)
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index