%{__rm} -f %{buildroot}%{_libdir}/%{name}/*.la
%{__rm} -rf %{buildroot}%{_docdir}
%{buildroot}/usr/sbin/pdns_server --no-config --config | sed \
- -e 's!# config-dir=.*!config-dir=%{_sysconfdir}%{name}!' \
-e 's!# daemon=.*!daemon=no!' \
-e 's!# guardian=.*!guardian=no!' \
-e 's!# launch=.*!&\\nlaunch=!' \
%{__rm} -f %{buildroot}%{_libdir}/%{name}/*.la
%{__rm} -rf %{buildroot}/usr/share/doc
%{buildroot}/usr/sbin/pdns_server --no-config --config | sed \
- -e 's!# config-dir=.*!config-dir=%{_sysconfdir}%{name}!' \
-e 's!# daemon=.*!daemon=yes!' \
-e 's!# guardian=.*!guardian=yes!' \
-e 's!# launch=.*!&\\nlaunch=!' \
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!' \