Files
containers/dns-v1/primary/Makefile

45 lines
1.0 KiB
Makefile

##############################################################################
##
## PowerDNS configuration
##
##############################################################################
# Hosts
# svoboda, yuuai
# SECONDARY_IPS = 129.104.30.37 129.104.30.32
SECONDARY_IPS = 129.18.0.43 129.18.0.45
#############################################################################
#
# Computed variables
#
GENERATED = bindbackend.conf pdns.d/main.conf
DOMAINS := $(patsubst pri/%,%,$(wildcard pri/*))
#############################################################################
#
# Rules
#
all: $(GENERATED)
.PHONY: all
clean:
$(RM) $(GENERATED)
.PHONY: clean
bindbackend.conf: tpl/bindbackend.conf.template
$(RM) $@
set -e; \
for fqdn in $(DOMAINS); do \
sed -e "s/@@FQDN@@/$$fqdn/" $< >> $@ ; \
done
pdns.d/main.conf: tpl/main.conf.template
sed -e "s/@@SECONDARY_IPS@@/$(SECONDARY_IPS)/" $< > $@
$(GENERATED): Makefile