1# Copyright (C) 2011-2014  Internet Systems Consortium, Inc. ("ISC")
2#
3# Permission to use, copy, modify, and/or distribute this software for any
4# purpose with or without fee is hereby granted, provided that the above
5# copyright notice and this permission notice appear in all copies.
6#
7# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13# PERFORMANCE OF THIS SOFTWARE.
14
15SYSTEMTESTTOP=..
16. $SYSTEMTESTTOP/conf.sh
17
18$SHELL clean.sh
19
20test -r $RANDFILE || $GENRANDOM 400 $RANDFILE
21
22cp ns1/root.db.in ns1/root.db
23rm -f ns1/root.db.signed
24
25touch ns2/trusted.conf
26cp ns2/bits.db.in ns2/bits.db
27cp ns2/bits.db.in ns2/retransfer.db
28cp ns2/bits.db.in ns2/retransfer3.db
29rm -f ns2/bits.db.jnl
30
31cp ns3/master.db.in ns3/master.db
32cp ns3/master.db.in ns3/dynamic.db
33cp ns3/master.db.in ns3/updated.db
34cp ns3/master.db.in ns3/expired.db
35cp ns3/master.db.in ns3/nsec3.db
36cp ns3/master.db.in ns3/externalkey.db
37
38touch ns4/trusted.conf
39cp ns4/noixfr.db.in ns4/noixfr.db
40rm -f ns4/noixfr.db.jnl
41
42cp ns5/named.conf.pre ns5/named.conf
43
44(cd ns3; $SHELL -e sign.sh)
45(cd ns1; $SHELL -e sign.sh)
46