chmod 755 debian/pdns-server/etc/resolvconf/update.d/pdns
override_dh_auto_install:
- ./pdns/pdns_server --no-config --config | sed \
- -e 's!# config-dir=.*!config-dir=/etc/powerdns!' \
- -e 's!# daemon=.*!daemon=yes!' \
- -e 's!# guardian=.*!guardian=yes!' \
- -e 's!# include-dir=.*!&\ninclude-dir=/etc/powerdns/pdns.d!' \
- -e 's!# launch=.*!&\nlaunch=!' \
- -e 's!# setgid=.*!setgid=pdns!' \
- -e 's!# setuid=.*!setuid=pdns!' \
- > debian/pdns-server/etc/powerdns/pdns.conf
dh_auto_install
rm -f debian/pdns-server/etc/powerdns/pdns.conf-dist
dh_installinit --name=pdns
dh_systemd_start --restart-after-upgrade
+override_dh_install:
+ dh_install
+ ./pdns/pdns_server --no-config --config | sed \
+ -e 's!# config-dir=.*!config-dir=/etc/powerdns!' \
+ -e 's!# daemon=.*!daemon=yes!' \
+ -e 's!# guardian=.*!guardian=yes!' \
+ -e 's!# include-dir=.*!&\ninclude-dir=/etc/powerdns/pdns.d!' \
+ -e 's!# launch=.*!&\nlaunch=!' \
+ -e 's!# setgid=.*!setgid=pdns!' \
+ -e 's!# setuid=.*!setuid=pdns!' \
+ > debian/pdns-server/usr/share/pdns-server/pdns.conf
+
# Verbose build (shows used compiler/linker and their flags)
override_dh_auto_build-arch:
dh_auto_build -- V=1