version 1.10, 2008/09/16 23:13:21 |
version 1.13, 2008/09/17 21:08:17 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: fill_chroot,v 1.9 2008/09/12 23:07:59 andrew Exp $ |
# $RedRiver: fill_chroot,v 1.12 2008/09/16 22:38:35 andrew Exp $ |
|
|
CHROOT=${CHROOT:=/home/andrew/www} |
CHROOT=${CHROOT:=/home/andrew/www} |
export CHROOT |
export CHROOT |
|
|
install -d -m 0555 -o root -g wheel $d |
install -d -m 0555 -o root -g wheel $d |
done |
done |
|
|
echo Installing ld.so |
|
echo pax -r -w -L -p e /usr/libexec/ld.so ${CHROOT} |
|
pax -r -w -L -p e /usr/libexec/ld.so ${CHROOT} |
|
|
|
echo Making devices |
echo Making devices |
cd ${CHROOT}/dev |
cd ${CHROOT}/dev |
/dev/MAKEDEV std |
/dev/MAKEDEV std |
cd ${OLDPWD} |
cd ${OLDPWD} |
|
|
echo Installing perl |
echo Installing perl into ${CHROOT} |
perl_to_chroot |
perl_to_chroot |
|
|
if [ -e /usr/local/sbin/femail ]; then |
if [ -e /usr/local/sbin/femail ]; then |
echo Installing femail |
echo Installing femail into ${CHROOT} |
echo pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT} |
echo pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT} |
pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT} |
pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT} |
else |
else |
|
|
fi |
fi |
|
|
if [ -e /usr/local/bin/aspell ]; then |
if [ -e /usr/local/bin/aspell ]; then |
echo Installing aspell |
echo Installing aspell into ${CHROOT} |
for d in \ |
for d in \ |
/usr/local/bin/aspell \ |
/usr/local/bin/aspell \ |
/usr/local/lib/aspell \ |
/usr/local/lib/aspell \ |
|
|
_find="${_find} -o ( -name aspell -a -type f )" |
_find="${_find} -o ( -name aspell -a -type f )" |
fi |
fi |
|
|
echo Installing dependencies |
echo Installing dependencies into ${CHROOT} |
for d in `find ${CHROOT}/usr ${_find} | \ |
for d in `find ${CHROOT}/usr ${_find} | \ |
xargs find_depends | \ |
xargs find_depends | \ |
sort -u `; do |
sort -u `; do |
|
|
pax -r -w -L -p e $d ${CHROOT} |
pax -r -w -L -p e $d ${CHROOT} |
done |
done |
|
|
echo Fixing ldconfig (/var/run/ld.so.hints) |
echo Fixing ldconfig \(/var/run/ld.so.hints\) |
fix_ldconfig |
fix_ldconfig |