2b4cced32fba7d8062cd139e921cb05d6a36dcc7
1 rule apt_get_install nsd
2 rule insserv_remove nsd3
6 sudo
install -d -m 750 -o root
-g nsd \
14 cat "$tool"/etc
/nsd
3/nsd.conf
15 for zone
in $
(find "$tool"/etc
/nsd
3/zone.d \
16 -mindepth 1 -maxdepth 1 -type f \
17 -false ${@:+$(printf -- '-or -name %s.conf\n' "$@")} \
20 if test -e "$tool"/etc
/nsd
3/zone.d
/"$zone".zone.
m4
22 --define=ZONE_DOMAIN
=$zone \
23 --define=ZONE_SERIAL
=$
(cd "$tool" && git log
-1 --format="%ct" -- etc
/nsd
3/zone.d
/"$zone".zone.
m4) \
24 --define=VM_IP4
=$vm_ipv4 \
25 "$tool"/etc
/nsd
3/zone.d
/"$zone".zone.
m4
26 else cat "$tool"/etc
/nsd
3/zone.d
/"$zone".zone
28 sudo
install -m 440 -o root
-g nsd
/dev
/stdin \
29 /etc
/nsd
3/zone.d
/"$zone".zone
33 zonefile: /etc/nsd3/zone.d/$zone.zone
34 $(cat "$tool"/etc/nsd3/zone.d/"$zone".conf)
38 sudo
install -m 640 -o root
-g nsd
/dev
/stdin \
41 rule _runit_sv_start
"$sv"