diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-09 12:05:50 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-09 12:05:50 +0100 |
| commit | da5a30813185926c381f33073c58d32ef0167539 (patch) | |
| tree | 598aca25a03673547444518089780034e929634f /Makefile.inc.unbound | |
| parent | 4a6119c1a9ea22825c0952b730118268cf33f0ad (diff) | |
| download | dns-da5a30813185926c381f33073c58d32ef0167539.tar.gz dns-da5a30813185926c381f33073c58d32ef0167539.tar.bz2 | |
support managing knot.conf
Diffstat (limited to 'Makefile.inc.unbound')
| -rw-r--r-- | Makefile.inc.unbound | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile.inc.unbound b/Makefile.inc.unbound new file mode 100644 index 0000000..7437149 --- /dev/null +++ b/Makefile.inc.unbound @@ -0,0 +1,34 @@ +# This source code is released into the public domain. + +### Unbound configuration files. + +unbound: +.PHONY: unbound + +.for server in ${UNBOUND_SERVERS} + +unbound.conf.${server}: unbound.conf.erb + ${.CURDIR}/bin/process \ + -Dservername=${server} \ + ${UNBOUND_PROCESS_FLAGS} \ + ${UNBOUND_PROCESS_FLAGS.${server}} \ + $> $@ + +unbound: unbound-${server} +unbound-${server}: unbound.conf.${server} + @echo "updating ${server}" + @echo "" + @echo "===> updating ${server}" + @echo "" + scp -q $> root@${server}:${UNBOUND_CONF_FILE} + ssh root@${server} service unbound restart + +.PHONY: unbound-${server} + +clean: clean-unbound-${server} +clean-unbound-${server}: + rm -f ${.OBJDIR}/unbound.conf.${server} +.PHONY: clean-unbound-${server} + +.endfor + |
