On Mon, 2007-11-05 at 10:02 -0600, Bill Borton wrote:
> I know this is not exactly the correct list to ask this in, but something
> tells me I can get a quick and knowledgeable answer here...
>
>
> I'm trying to install various programs from Ports into my NanoBSD Build.
> Based on an example I found somewhere (PHK?) I've tried:
>
> install_lsof () (
> cd /usr/ports/sysutils/lsof
> make install DESTDIR=${NANO_WORLDDIR}/usr
> )
> customize_cmd install_lsof
>
> This generates a chroot error about "/bin/sh: no such file or directory".
>
> I tried changing my DESTDIR to just ${NANO_WORLDDIR} but that generates
> a chroot error about "no system rules (sys.mk)"
For installing ports, I did something like this (not tested, this is
adapted from what I really do):
install_lsof() {
mkdir -p ${NANO_WORLDDIR}/usr/ports
mount -r -t nullfs /usr/ports ${NANO_WORLDDIR}/usr/ports
mkdir -p ${NANO_WORLDDIR}/work_dir
chroot ${NANO_WORLDDIR} /bin/sh -c 'cd /usr/ports/sysutils/lsof &&
make WRKDIRPREFIX=/work_dir install'
rm -rf ${NANO_WORLDDIR}/work_dir
umount ${NANO_WORLDDIR}/usr/ports
rmdir ${NANO_WORLDDIR}/usr/ports
}
Hope this helps,
Conor
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech