[BACK]Return to fill_chroot CVS log [TXT][DIR] Up to [local] / openbsd / fill_chroot

File: [local] / openbsd / fill_chroot / fill_chroot (download)

Revision 1.6, Thu Jul 20 00:42:59 2006 UTC (17 years, 10 months ago) by andrew
Branch: MAIN
Changes since 1.5: +6 -4 lines

There we go, that should make a working symlink!

#!/bin/sh
# $RedRiver: fill_chroot,v 1.5 2006/07/18 02:47:35 andrew Exp $

CHROOT=${CHROOT:=/home/andrew/www}
export CHROOT

perl_to_chroot
mkdir -p ${CHROOT}/usr/local/lib

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