]> granicus.if.org Git - pdns/commitdiff
Generate pdns.conf for CentOS 6 packages
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 7 Jul 2015 11:55:42 +0000 (13:55 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 9 Jul 2015 07:23:43 +0000 (09:23 +0200)
build-scripts/build-auth-rpm

index d81667e9bc920113b9ec634e312f8385028a671f..97953606503c44121504c9bb5df317a19f9b11a6 100755 (executable)
@@ -170,7 +170,8 @@ make install DESTDIR=%{buildroot}
 
 %{__rm} -f %{buildroot}%{_libdir}/%{name}/*.la
 %{__install} -p -D -m 0755 pdns/pdns %{buildroot}%{_initrddir}/pdns
-%{__mv} %{buildroot}%{_sysconfdir}/%{name}/pdns.conf{-dist,}
+%{buildroot}/usr/bin/pdns_server --no-config --config > %{buildroot}%{_sysconfdir}/%{name}/pdns.conf
+%{__rm} %{buildroot}%{_sysconfdir}/%{name}/pdns.conf-dist
 
 chmod 600 %{buildroot}%{_sysconfdir}/%{name}/pdns.conf