diff --git a/bind.spec b/bind.spec index d9d3c1f..c2c7456 100644 --- a/bind.spec +++ b/bind.spec @@ -7,7 +7,7 @@ Name: bind Version: 9.15.2 -Release: 1mamba +Release: 2mamba Summary: A DNS (Domain Name System) server Group: System/Servers Vendor: openmamba @@ -28,6 +28,7 @@ Source12: bind-named.conf Source13: bind-localhost.zone Source14: bind-named.local Source15: bind-rndc.conf +Source16: named-tmpfilesdir.conf Patch: %{name}-9.3.4-mktemp.patch License: BSD ## AUTOBUILDREQ-BEGIN @@ -112,9 +113,11 @@ tar xjf %{S:1} mkdir -p %{buildroot}/etc/{rc.d/init.d,logrotate.d} mkdir -p %{buildroot}/etc/sysconfig mkdir -p %{buildroot}%{_var}/named -mkdir -p %{buildroot}%{_var}/run/named +#mkdir -p %{buildroot}%{_var}/run/named mkdir -p %{buildroot}%{_var}/named/slave +install -D -m0644 %{SOURCE16} %{buildroot}%{_tmpfilesdir}/named.conf + %makeinstall touch %{buildroot}%{_sysconfdir}/rndc.key @@ -167,6 +170,8 @@ key "rndckey" { _EOF fi +%tmpfiles_create named.conf + %systemd_post named if [ $1 -ge 1 ]; then # clean old sysv broken links @@ -222,9 +227,9 @@ exit 0 %{_sbindir}/tsig-keygen %attr(0755,root,root) %{_sbindir}/update_bind.pl %attr(0755,root,root) %config(noreplace) %{_unitdir}/named.service +%{_tmpfilesdir}/named.conf %dir %attr(0755,named,named) %{_localstatedir}/named #%dir %attr(0755,named,named) %{_localstatedir}/named/slave -%dir %attr(0755,named,named) %{_localstatedir}/run/named %ifnarch arm %{python27_sitelib}/isc-*.egg-info %dir %{python27_sitelib}/isc @@ -306,6 +311,9 @@ exit 0 %{_mandir}/man8/dnssec-keymgr.8* %changelog +* Fri Aug 16 2019 Silvan Calarco 9.15.2-2mamba +- add named.conf in tmpfilesdir to create /run/named + * Thu Jul 18 2019 Automatic Build System 9.15.2-1mamba - automatic version update by autodist diff --git a/named-tmpfilesdir.conf b/named-tmpfilesdir.conf new file mode 100644 index 0000000..5265331 --- /dev/null +++ b/named-tmpfilesdir.conf @@ -0,0 +1 @@ +d /run/named 755 named named