From: Pieter Lexis Date: Tue, 7 Jul 2015 11:55:42 +0000 (+0200) Subject: Generate pdns.conf for CentOS 6 packages X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~19^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6df1eac843a504e057c99e8e84e4ee8d4955d14d;p=pdns Generate pdns.conf for CentOS 6 packages --- diff --git a/build-scripts/build-auth-rpm b/build-scripts/build-auth-rpm index d81667e9b..979536065 100755 --- a/build-scripts/build-auth-rpm +++ b/build-scripts/build-auth-rpm @@ -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