]> mj.ucw.cz Git - nsc-5.git/blob - bin/nsconfig
Initial revision
[nsc-5.git] / bin / nsconfig
1 # NSC 2.0 -- Makefile & Config file build script
2 # (c) 1997 Martin Mares <mj@gts.cz>
3
4 ROOT=/etc/named         # Root dir of the whole package
5 CF=cf                   # Place for all configuration files
6 ZONES=zone              # Place for all primary zone files
7 BAX=bak                 # Place for all secondary zone files
8 VERS=ver                # Place for all primary version files
9 NSC=m4                  # Place for all scripts
10
11 DOMAINS=$CF/domains     # The master domain list
12 MKFILE=Makefile         # Makefile to generate
13 CONFFILE=named.conf     # Configuration file to generate
14 CACHE=root.cache
15
16 if [ \! -f $DOMAINS ] ; then
17         echo "Domain list file missing."
18         exit 1
19         fi
20 m4 $NSC/dnslib.m4 $NSC/mkconf.m4 $DOMAINS >$CONFFILE -DZONEDIR=$ZONES -DBAKDIR=$BAX -DCACHE=$CACHE -DROOT=$ROOT
21 m4 $NSC/dnslib.m4 $NSC/mkmf.m4 $DOMAINS >$MKFILE -DZONEDIR=$ZONES -DBAKDIR=$BAX -DCACHE=$CACHE -DVERSDIR=$VERS -DNSCDIR=$NSC -DCONF=$CONFFILE -DCFDIR=$CF