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
|
||||
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 <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
|
||||
- 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