17 |
|
|
18 |
Name: bind |
Name: bind |
19 |
Version: %{major_version}%{dotpatch} |
Version: %{major_version}%{dotpatch} |
20 |
Release: %mkrel 3 |
Release: %mkrel 4 |
21 |
Summary: A DNS (Domain Name System) server |
Summary: A DNS (Domain Name System) server |
22 |
License: ISC |
License: ISC |
23 |
Group: System/Servers |
Group: System/Servers |
353 |
|
|
354 |
install -d -p %{buildroot}%{_libdir}/bind |
install -d -p %{buildroot}%{_libdir}/bind |
355 |
install -d %{buildroot}/var/named/{slaves,data,dynamic} |
install -d %{buildroot}/var/named/{slaves,data,dynamic} |
|
install -d %{buildroot}/var/run/named |
|
356 |
install -d %{buildroot}/var/log |
install -d %{buildroot}/var/log |
357 |
|
|
358 |
# chroot |
# chroot |
376 |
install -m 644 %{SOURCE41} %{buildroot}%{_unitdir} |
install -m 644 %{SOURCE41} %{buildroot}%{_unitdir} |
377 |
install -m 644 %{SOURCE42} %{buildroot}%{_unitdir} |
install -m 644 %{SOURCE42} %{buildroot}%{_unitdir} |
378 |
|
|
379 |
install -D -m 644 %{SOURCE40} %{buildroot}%{_prefix}/lib/tmpfiles.d/named.conf |
install -D -m 644 %{SOURCE40} %{buildroot}%{_tmpfilesdir}/named.conf |
380 |
|
|
381 |
# main configuration |
# main configuration |
382 |
install -m 644 %{SOURCE100} %{buildroot}%{_sysconfdir}/named.conf |
install -m 644 %{SOURCE100} %{buildroot}%{_sysconfdir}/named.conf |
468 |
fi |
fi |
469 |
|
|
470 |
%post |
%post |
471 |
|
%_tmpfilescreate named |
472 |
%_post_service named |
%_post_service named |
473 |
|
|
474 |
# chroot devices |
# chroot devices |
555 |
%config(noreplace) %{_sysconfdir}/rsyslog.d/named.conf |
%config(noreplace) %{_sysconfdir}/rsyslog.d/named.conf |
556 |
%config(noreplace) %{_sysconfdir}/logrotate.d/named |
%config(noreplace) %{_sysconfdir}/logrotate.d/named |
557 |
%{_sysconfdir}/NetworkManager/dispatcher.d/13-named |
%{_sysconfdir}/NetworkManager/dispatcher.d/13-named |
558 |
%{_prefix}/lib/tmpfiles.d/named.conf |
%{_tmpfilesdir}/named.conf |
559 |
%{_unitdir}/named.service |
%{_unitdir}/named.service |
560 |
|
|
561 |
# variable directory |
# variable directory |
568 |
%config(noreplace) %{_localstatedir}/named/named.loopback |
%config(noreplace) %{_localstatedir}/named/named.loopback |
569 |
%config(noreplace) %{_localstatedir}/named/named.empty |
%config(noreplace) %{_localstatedir}/named/named.empty |
570 |
|
|
|
%attr(-,named,named) %dir %{_localstatedir}/run/named |
|
|
|
|
571 |
# the chroot |
# the chroot |
572 |
%ghost %{chroot_prefix}/dev/null |
%ghost %{chroot_prefix}/dev/null |
573 |
%ghost %{chroot_prefix}/dev/random |
%ghost %{chroot_prefix}/dev/random |