]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/buildroot.sh.in
rec: Don't account chained queries more than once
[thirdparty/pdns.git] / pdns / buildroot.sh.in
1 #!/bin/sh
2
3 prefix=@prefix@
4
5 echo building PowerDNS chroot in $prefix
6 echo -n "Copying libraries: "
7 cp $(./finddeps ahudns resolver dynloader /bin/sh) $prefix/lib
8 echo done
9 echo -n "Copying in /bin/sh: "
10 cp /bin/sh $prefix/bin
11 echo done
12
13 preprefix=$(echo $prefix | sed s/$(basename $prefix)//)
14
15 echo -n "Making tmp and pre-prefix in root: "
16 mkdir -p $prefix/tmp $prefix/$preprefix
17 echo "done"
18 echo -n "Creating $prefix in $prefix: "
19 cd $prefix/$preprefix
20 ln -s .. $(basename $prefix)
21 cd -
22 echo done
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
29 echo done
30