From da5a30813185926c381f33073c58d32ef0167539 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Mon, 9 Jun 2025 12:05:50 +0100 Subject: support managing knot.conf --- Makefile.inc.unbound | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Makefile.inc.unbound (limited to 'Makefile.inc.unbound') 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 + -- cgit v1.2.3