=================================================================== RCS file: /cvs/openbsd/fill_chroot/fill_chroot,v retrieving revision 1.1 retrieving revision 1.7 diff -u -r1.1 -r1.7 --- openbsd/fill_chroot/fill_chroot 2005/12/21 19:14:12 1.1 +++ openbsd/fill_chroot/fill_chroot 2008/08/29 21:05:38 1.7 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver$ +# $RedRiver: fill_chroot,v 1.6 2006/07/20 00:42:59 andrew Exp $ CHROOT=${CHROOT:=/home/andrew/www} export CHROOT @@ -7,7 +7,23 @@ perl_to_chroot mkdir -p ${CHROOT}/usr/local/lib -find ${CHROOT} -name *.so* | xargs find_depends | \ - sort -u | xargs -I {} cp {} ${CHROOT}{} +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 + +if [ -e /usr/local/bin/aspell ]; then + mkdir -p ${CHROOT}/usr/local/bin/ + cp /usr/local/bin/aspell ${CHROOT}/usr/local/bin/aspell + _find="${_find} -or -name aspell" +fi + +find ${CHROOT}/usr -name *.so.* -or -name *.so ${_find} | xargs find_depends | \ + sort -u | xargs -I {} pax -r -w -L -p e {} ${CHROOT} fix_ldconfig