if [ ${ID} = "ubuntu" ]; then
if [ ${VERSION_ID} = "14.04" ]; then
- sed -i '/lib\/systemd\/system\/pdns@\?\.service/d' debian/pdns-server.install
+ sed -i '/lib\/systemd\/system\/pdns@\?\.service/d' debian/*.install
fi
if [ $VERSION_ID} = "16.10" ];then
sed -i 's!libzmq-dev!libzmq3-dev!' debian/control.in
%{_bindir}/dnsscope
%{_bindir}/dnswasher
%{_bindir}/dumresp
+%{_bindir}/ixfrdist
%{_bindir}/ixplore
%{_bindir}/pdns_notify
%{_bindir}/nproxy
%{_mandir}/man1/dnsscope.1.gz
%{_mandir}/man1/dnswasher.1.gz
%{_mandir}/man1/dumresp.1.gz
+%{_mandir}/man1/ixfrdist.1.gz
%{_mandir}/man1/ixplore.1.gz
%{_mandir}/man1/pdns_notify.1.gz
%{_mandir}/man1/nproxy.1.gz
%{_bindir}/dnstcpbench
%{_bindir}/dnswasher
%{_bindir}/dumresp
+%{_bindir}/ixfrdist
%{_bindir}/ixplore
%{_bindir}/pdns_notify
%{_bindir}/nproxy
%{_mandir}/man1/dnstcpbench.1.gz
%{_mandir}/man1/dnswasher.1.gz
%{_mandir}/man1/dumresp.1.gz
+%{_mandir}/man1/ixfrdist.1.gz
%{_mandir}/man1/ixplore.1.gz
%{_mandir}/man1/pdns_notify.1.gz
%{_mandir}/man1/nproxy.1.gz
%{_mandir}/man1/nsec3dig.1.gz
%{_mandir}/man1/saxfr.1.gz
%{_mandir}/man1/sdig.1.gz
+%{_unitdir}/ixfrdist.service
%files backend-mysql
%doc modules/gmysqlbackend/schema.mysql.sql
usr/bin/dnstcpbench
usr/bin/dnswasher
usr/bin/dumresp
+usr/bin/ixfrdist
usr/bin/ixplore
usr/bin/nproxy
usr/bin/nsec3dig
usr/bin/pdns_notify
usr/bin/saxfr
usr/bin/sdig
+lib/systemd/system/pdns.service
debian/tmp/usr/share/man/man1/dnstcpbench.1
debian/tmp/usr/share/man/man1/dnswasher.1
debian/tmp/usr/share/man/man1/dumresp.1
+debian/tmp/usr/share/man/man1/ixfrdist.1
debian/tmp/usr/share/man/man1/ixplore.1
debian/tmp/usr/share/man/man1/nproxy.1
debian/tmp/usr/share/man/man1/nsec3dig.1
bindparser.h \
named.conf.parsertest \
delaypipe.hh delaypipe.cc \
- pdns.service.in
+ pdns.service.in \
+ ixfrdist.service.in
BUILT_SOURCES = \
bind-dnssec.schema.sqlite3.sql.h \
systemdsystemunit_DATA = \
pdns.service \
pdns@.service
-endif
+
+if TOOLS
+ixfrdist.service: ixfrdist.service.in
+ $(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' < $< > $@
+
+systemdsystemunit_DATA += \
+ ixfrdist.service
+endif # TOOLS
+
+endif # HAVE_SYSTEMD
--- /dev/null
+[Unit]
+Description=PowerDNS IXFR Distributor
+Documentation=man:ixfrdist(1)
+Documentation=https://doc.powerdns.com
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=simple
+# You'll want to override this, see the manpage
+ExecStart=@bindir@/ixfrdist
+Restart=on-failure
+RestartSec=1
+StartLimitInterval=0
+PrivateTmp=true
+PrivateDevices=true
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+NoNewPrivileges=true
+ProtectSystem=full
+ProtectHome=true
+RestrictAddressFamilies=AF_INET AF_INET6
+
+[Install]
+WantedBy=multi-user.target