Home | History | Annotate | Line # | Download | only in upforwd
setup.sh revision 1.1.1.6
      1 #!/bin/sh
      2 #
      3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      4 #
      5 # This Source Code Form is subject to the terms of the Mozilla Public
      6 # License, v. 2.0. If a copy of the MPL was not distributed with this
      7 # file, you can obtain one at https://mozilla.org/MPL/2.0/.
      8 #
      9 # See the COPYRIGHT file distributed with this work for additional
     10 # information regarding copyright ownership.
     11 
     12 SYSTEMTESTTOP=..
     13 . $SYSTEMTESTTOP/conf.sh
     14 
     15 cp -f ns1/example1.db ns1/example.db
     16 cp -f ns3/nomaster.db ns3/nomaster1.db
     17 
     18 copy_setports ns1/named.conf.in ns1/named.conf
     19 copy_setports ns2/named.conf.in ns2/named.conf
     20 copy_setports ns3/named.conf.in ns3/named.conf
     21 
     22 if $FEATURETEST --enable-dnstap
     23 then
     24 	cat <<'EOF' > ns3/dnstap.conf
     25 	dnstap-identity "ns3";
     26 	dnstap-version "xxx";
     27 	dnstap-output file "dnstap.out";
     28 	dnstap { all; };
     29 EOF
     30 else
     31 	echo "/* DNSTAP NOT ENABLED */" >ns3/dnstap.conf
     32 fi
     33 
     34 
     35 #
     36 # SIG(0) required cryptographic support which may not be configured.
     37 #
     38 keyname=`$KEYGEN  -q -n HOST -a RSASHA1 -b 1024 -T KEY sig0.example2 2>keyname.err`
     39 if test -n "$keyname"
     40 then
     41 	cat ns1/example1.db $keyname.key > ns1/example2.db
     42 	echo $keyname > keyname
     43 else
     44 	cat ns1/example1.db > ns1/example2.db
     45 fi
     46 cat_i < keyname.err
     47