add named.conf in tmpfilesdir to create /run/named [release 9.15.2-2mamba;Fri Aug 16 2019]
This commit is contained in:
parent
9cafce56ce
commit
6284f3dd8c
14
bind.spec
14
bind.spec
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Name: bind
|
Name: bind
|
||||||
Version: 9.15.2
|
Version: 9.15.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A DNS (Domain Name System) server
|
Summary: A DNS (Domain Name System) server
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -28,6 +28,7 @@ Source12: bind-named.conf
|
|||||||
Source13: bind-localhost.zone
|
Source13: bind-localhost.zone
|
||||||
Source14: bind-named.local
|
Source14: bind-named.local
|
||||||
Source15: bind-rndc.conf
|
Source15: bind-rndc.conf
|
||||||
|
Source16: named-tmpfilesdir.conf
|
||||||
Patch: %{name}-9.3.4-mktemp.patch
|
Patch: %{name}-9.3.4-mktemp.patch
|
||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
@ -112,9 +113,11 @@ tar xjf %{S:1}
|
|||||||
mkdir -p %{buildroot}/etc/{rc.d/init.d,logrotate.d}
|
mkdir -p %{buildroot}/etc/{rc.d/init.d,logrotate.d}
|
||||||
mkdir -p %{buildroot}/etc/sysconfig
|
mkdir -p %{buildroot}/etc/sysconfig
|
||||||
mkdir -p %{buildroot}%{_var}/named
|
mkdir -p %{buildroot}%{_var}/named
|
||||||
mkdir -p %{buildroot}%{_var}/run/named
|
#mkdir -p %{buildroot}%{_var}/run/named
|
||||||
mkdir -p %{buildroot}%{_var}/named/slave
|
mkdir -p %{buildroot}%{_var}/named/slave
|
||||||
|
|
||||||
|
install -D -m0644 %{SOURCE16} %{buildroot}%{_tmpfilesdir}/named.conf
|
||||||
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
touch %{buildroot}%{_sysconfdir}/rndc.key
|
touch %{buildroot}%{_sysconfdir}/rndc.key
|
||||||
@ -167,6 +170,8 @@ key "rndckey" {
|
|||||||
_EOF
|
_EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%tmpfiles_create named.conf
|
||||||
|
|
||||||
%systemd_post named
|
%systemd_post named
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
# clean old sysv broken links
|
# clean old sysv broken links
|
||||||
@ -222,9 +227,9 @@ exit 0
|
|||||||
%{_sbindir}/tsig-keygen
|
%{_sbindir}/tsig-keygen
|
||||||
%attr(0755,root,root) %{_sbindir}/update_bind.pl
|
%attr(0755,root,root) %{_sbindir}/update_bind.pl
|
||||||
%attr(0755,root,root) %config(noreplace) %{_unitdir}/named.service
|
%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
|
||||||
#%dir %attr(0755,named,named) %{_localstatedir}/named/slave
|
#%dir %attr(0755,named,named) %{_localstatedir}/named/slave
|
||||||
%dir %attr(0755,named,named) %{_localstatedir}/run/named
|
|
||||||
%ifnarch arm
|
%ifnarch arm
|
||||||
%{python27_sitelib}/isc-*.egg-info
|
%{python27_sitelib}/isc-*.egg-info
|
||||||
%dir %{python27_sitelib}/isc
|
%dir %{python27_sitelib}/isc
|
||||||
@ -306,6 +311,9 @@ exit 0
|
|||||||
%{_mandir}/man8/dnssec-keymgr.8*
|
%{_mandir}/man8/dnssec-keymgr.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 9.15.2-2mamba
|
||||||
|
- add named.conf in tmpfilesdir to create /run/named
|
||||||
|
|
||||||
* Thu Jul 18 2019 Automatic Build System <autodist@mambasoft.it> 9.15.2-1mamba
|
* Thu Jul 18 2019 Automatic Build System <autodist@mambasoft.it> 9.15.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
1
named-tmpfilesdir.conf
Normal file
1
named-tmpfilesdir.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /run/named 755 named named
|
Loading…
Reference in New Issue
Block a user