=================================================================== RCS file: /cvs/openbsd/fill_chroot/fill_chroot,v retrieving revision 1.1 retrieving revision 1.5 diff -u -r1.1 -r1.5 --- openbsd/fill_chroot/fill_chroot 2005/12/21 19:14:12 1.1 +++ openbsd/fill_chroot/fill_chroot 2006/07/18 03:47:35 1.5 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver$ +# $RedRiver: fill_chroot,v 1.4 2006/01/26 17:11:09 andrew Exp $ CHROOT=${CHROOT:=/home/andrew/www} export CHROOT @@ -7,7 +7,15 @@ perl_to_chroot mkdir -p ${CHROOT}/usr/local/lib -find ${CHROOT} -name *.so* | xargs find_depends | \ - sort -u | xargs -I {} cp {} ${CHROOT}{} +cd $CHROOT +if [ -e bin/mini_sendmail ]; then + ln -sf bin/mini_sendmail usr/sbin/sendmail +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