]> granicus.if.org Git - pdns/commitdiff
Generate recursor.conf for CentOS 7 rpm
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 7 Jul 2015 12:17:52 +0000 (14:17 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 9 Jul 2015 07:23:43 +0000 (09:23 +0200)
build-scripts/build-recursor-rpm

index 7d131be272005766ed1137c33f34fa855e4fd25d..08bad19e2e1a26f1cbf6ea61d3cf4f7eb1eadb4c 100755 (executable)
@@ -231,7 +231,8 @@ chmod 0755 %{buildroot}/%{_sbindir}/pdns_recursor
 # install systemd unit file
 %{__install} -D -p -m 644 contrib/systemd-pdns-recursor.service %{buildroot}%{_unitdir}/%{name}.service
 
-%{__mv} %{buildroot}%{_sysconfdir}/%{name}/recursor.conf{-dist,}
+%{buildroot}/%{_sbindir}/pdns_recursor --config > %{buildroot}%{_sysconfdir}/%{name}/recursor.conf
+%{__rm} %{buildroot}%{_sysconfdir}/%{name}/recursor.conf-dist
 
 # add pdns user and group to top of configfile
 sed -i '1i\\setuid=pdns-recursor' %{buildroot}%{_sysconfdir}/%{name}/recursor.conf