=================================================================== RCS file: /cvs/openbsd/fill_chroot/fill_chroot,v retrieving revision 1.3 retrieving revision 1.6 diff -u -r1.3 -r1.6 --- openbsd/fill_chroot/fill_chroot 2006/01/25 17:25:07 1.3 +++ openbsd/fill_chroot/fill_chroot 2006/07/20 01:42:59 1.6 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver: fill_chroot,v 1.2 2006/01/16 21:03:12 andrew Exp $ +# $RedRiver: fill_chroot,v 1.5 2006/07/18 02:47:35 andrew Exp $ CHROOT=${CHROOT:=/home/andrew/www} export CHROOT @@ -7,7 +7,17 @@ perl_to_chroot mkdir -p ${CHROOT}/usr/local/lib -find ${CHROOT} -name *.so.* | xargs find_depends | \ +if [ -e ${CHROOT}/bin/mini_sendmail ]; then + mkdir -p ${CHROOT}/usr/sbin + cd ${CHROOT}/usr/sbin + ln -sf ../../bin/mini_sendmail sendmail + cd ${OLDPWD} +else + echo mini_sendmail not installed! Please install it and link it to + echo " ${CHROOT}/usr/sbin/sendmail" +fi + +find ${CHROOT} -name *.so.* -or -name *.so | xargs find_depends | \ sort -u | xargs -I {} pax -r -w -L -p e {} ${CHROOT} fix_ldconfig