xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/nsec3/setup.sh (revision 9689912e6b171cbda866ec33f15ae94a04e2c02d)
1#!/bin/sh -e
2
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# SPDX-License-Identifier: MPL-2.0
6#
7# This Source Code Form is subject to the terms of the Mozilla Public
8# License, v. 2.0.  If a copy of the MPL was not distributed with this
9# file, you can obtain one at https://mozilla.org/MPL/2.0/.
10#
11# See the COPYRIGHT file distributed with this work for additional
12# information regarding copyright ownership.
13
14# shellcheck source=conf.sh
15. ../conf.sh
16
17set -e
18
19copy_setports ns2/named.conf.in ns2/named.conf
20(
21  cd ns2
22  $SHELL setup.sh
23)
24
25if [ $RSASHA1_SUPPORTED = 0 ]; then
26  copy_setports ns3/named-fips.conf.in ns3/named.conf
27else
28  copy_setports ns3/named-fips.conf.in ns3/named-fips.conf
29  # includes named-fips.conf
30  cp ns3/named.conf.in ns3/named.conf
31fi
32(
33  cd ns3
34  $SHELL setup.sh
35)
36