5 echo building PowerDNS chroot
in $prefix
6 echo -n "Copying libraries: "
7 cp $
(.
/finddeps ahudns resolver dynloader
/bin
/sh
) $prefix/lib
9 echo -n "Copying in /bin/sh: "
10 cp /bin
/sh
$prefix/bin
13 preprefix
=$
(echo $prefix |
sed s
/$
(basename $prefix)//)
15 echo -n "Making tmp and pre-prefix in root: "
16 mkdir
-p $prefix/tmp
$prefix/$preprefix
18 echo -n "Creating $prefix in $prefix: "
20 ln -s .. $
(basename $prefix)
23 echo -n "Creating launch script: "
24 echo \
#\!/bin/sh > $prefix/launch
25 echo cd $prefix >> $prefix/launch
26 echo export ORACLE_HOME
=$prefix/oracle
>> $prefix/launch
27 echo chroot . .
/bin
/ahudns
>> $prefix/launch
28 chmod +x
$prefix/launch