From 93b7ac544f26c50a7f5db7c94542dfdca6e6a217 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 03:38:04 +0000 Subject: [PATCH] auto-import bind-9.2.4rc6-3 from bind-9.2.4rc6-3.src.rpm --- bind.spec | 70 ++++++++++++++++++++++++++++++------------------------- sources | 2 +- 2 files changed, 39 insertions(+), 33 deletions(-) diff --git a/bind.spec b/bind.spec index 186b046..586d60e 100644 --- a/bind.spec +++ b/bind.spec @@ -25,7 +25,7 @@ Patch9: bind-9.2.3rc3-deprecation_msg_shut_up.diff.bz2 Url: http://www.isc.org/products/BIND/ Buildroot: %{_tmppath}/%{name}-root Version: 9.2.4rc6 -Release: 2 +Release: 3 BuildRequires: openssl-devel gcc glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig fileutils tar Requires(pre,preun): shadow-utils @@ -88,10 +88,13 @@ based off code from Jan "Yenya" Kasprzak %files chroot %defattr(-,root,root) +%attr(770,root,named) %prefix +%attr(770,root,named) %prefix/dev +%attr(770,root,named) %prefix/etc +%attr(770,root,named) %prefix/var +%attr(770,root,named) %prefix/var/run %attr(770,named,named) %prefix/var/run/named -%attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/etc/named.conf -%attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/etc/rndc.key -%attr(750,root,named) %prefix/var/named +%attr(750,root,named) %prefix/var/named %attr(770,named,named) %prefix/var/named/slaves %post chroot @@ -99,37 +102,40 @@ if test -r /etc/sysconfig/named && grep -q ^ROOTDIR= /etc/sysconfig/named then : else echo ROOTDIR="%{prefix}" >>/etc/sysconfig/named +fi if [ ! -d "${prefix}/var/tmp" ]; then mkdir -m770 -p "%{prefix}/var/tmp" - if test -r /etc/localtime - then - cp /etc/localtime "%{prefix}/etc/localtime" - fi - if test -r /etc/rndc.key - then - cp /etc/rndc.key "%{prefix}/etc/rndc.key" - chown root:named "%{prefix}/etc/rndc.key" - fi - if test -r /etc/named.conf - then - cp /etc/named.conf "%{prefix}/etc/named.conf" - chown root:named "%{prefix}/etc/named.conf" - fi - if test -r /etc/named.custom - then - cp /etc/named.custom "%{prefix}/etc/named.custom" - chown root:named "%{prefix}/etc/named.custom" - fi - for i in `ls -1d /var/named/* | grep -v /var/named/chroot`; do - cp -rf $i "%{prefix}/var/named/" 2> /dev/null - done +fi +if test -r /etc/localtime +then + cp -fp /etc/localtime "%{prefix}/etc/localtime" +fi +if test -r /etc/rndc.key +then + cp -fp /etc/rndc.key "%{prefix}/etc/rndc.key" + chown root:named "%{prefix}/etc/rndc.key" +fi +if test -r /etc/named.conf +then + cp -fp /etc/named.conf "%{prefix}/etc/named.conf" + chown root:named "%{prefix}/etc/named.conf" +fi +if test -r /etc/named.custom +then + cp -fp /etc/named.custom "%{prefix}/etc/named.custom" + chown root:named "%{prefix}/etc/named.custom" +fi +for i in `ls -1d /var/named/* | grep -v /var/named/chroot`; do + cp -rf $i "%{prefix}/var/named/" 2> /dev/null +done +mknod "%{prefix}/dev/random" c 1 8 +mknod "%{prefix}/dev/zero" c 1 5 +chown root:named "%{prefix}/var/named" +chown named:named "%{prefix}/var/named/slaves" +if /etc/init.d/named condrestart +then : +fi - chown -R root:named "%{prefix}/var/named" - if /etc/init.d/named condrestart - then : - fi -fi -fi %preun chroot if [ "$1" = "0" ]; then if test -r /etc/sysconfig/named && grep -q ^ROOTDIR= /etc/sysconfig/named diff --git a/sources b/sources index 4589241..ad3c938 100644 --- a/sources +++ b/sources @@ -1,5 +1,5 @@ f1266fa636426e2f3ce6771f09ce787f bind-9.2.3rc3-deprecation_msg_shut_up.diff.bz2 f63054b2fc51e9af97bde8d432ccf6aa bind-9.2.4rc6.tar.gz -948709e38115ccfe3e4d078d4a8ed00e bind-chroot.tar.gz +af38102dea2db4375bc6bf1fcb087d8f bind-chroot.tar.gz 1ae2dcc356623ef5fd130893e95a9b94 bind-manpages.patch.bz2 c2f6322d4ef48684478cbb3c5cccbd3f bind-manpages.tar.bz2