![]() ![]() | ![]() |
File: [local] / openbsd / fill_chroot / fill_chroot (download)
Revision 1.5, Tue Jul 18 02:47:35 2006 UTC (17 years, 10 months ago) by andrew
Don't forget the mini_sendmail links to be a fake sendmail. |
#!/bin/sh # $RedRiver: fill_chroot,v 1.4 2006/01/26 17:11:09 andrew Exp $ CHROOT=${CHROOT:=/home/andrew/www} export CHROOT perl_to_chroot mkdir -p ${CHROOT}/usr/local/lib 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