[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.8, Wed Sep 3 21:37:21 2008 UTC (15 years, 8 months ago) by andrew
Branch: MAIN
Changes since 1.7: +5 -1 lines

Add the rest of the files needed by aspell

#!/bin/sh
# $RedRiver: fill_chroot,v 1.7 2008/08/29 20:05:38 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

if [ -e /usr/local/bin/aspell ]; then
	mkdir -p ${CHROOT}/usr/local/bin/
	mkdir -p ${CHROOT}/usr/local/share/
	mkdir -p ${CHROOT}/usr/local/lib/
	cp /usr/local/bin/aspell ${CHROOT}/usr/local/bin/aspell
	cp -r /usr/local/lib/aspell ${CHROOT}/usr/local/lib/
	cp -r /usr/local/share/aspell ${CHROOT}/usr/local/share/
	_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