auto-import bind-9.2.4rc6-3 from bind-9.2.4rc6-3.src.rpm
This commit is contained in:
parent
17bde02b09
commit
93b7ac544f
70
bind.spec
70
bind.spec
|
@ -25,7 +25,7 @@ Patch9: bind-9.2.3rc3-deprecation_msg_shut_up.diff.bz2
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
Version: 9.2.4rc6
|
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
|
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
|
Requires(pre,preun): shadow-utils
|
||||||
|
@ -88,10 +88,13 @@ based off code from Jan "Yenya" Kasprzak <kas@fi.muni.cz>
|
||||||
|
|
||||||
%files chroot
|
%files chroot
|
||||||
%defattr(-,root,root)
|
%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(770,named,named) %prefix/var/run/named
|
||||||
%attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/etc/named.conf
|
%attr(750,root,named) %prefix/var/named
|
||||||
%attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/etc/rndc.key
|
|
||||||
%attr(750,root,named) %prefix/var/named
|
|
||||||
%attr(770,named,named) %prefix/var/named/slaves
|
%attr(770,named,named) %prefix/var/named/slaves
|
||||||
|
|
||||||
%post chroot
|
%post chroot
|
||||||
|
@ -99,37 +102,40 @@ if test -r /etc/sysconfig/named && grep -q ^ROOTDIR= /etc/sysconfig/named
|
||||||
then :
|
then :
|
||||||
else
|
else
|
||||||
echo ROOTDIR="%{prefix}" >>/etc/sysconfig/named
|
echo ROOTDIR="%{prefix}" >>/etc/sysconfig/named
|
||||||
|
fi
|
||||||
if [ ! -d "${prefix}/var/tmp" ]; then
|
if [ ! -d "${prefix}/var/tmp" ]; then
|
||||||
mkdir -m770 -p "%{prefix}/var/tmp"
|
mkdir -m770 -p "%{prefix}/var/tmp"
|
||||||
if test -r /etc/localtime
|
fi
|
||||||
then
|
if test -r /etc/localtime
|
||||||
cp /etc/localtime "%{prefix}/etc/localtime"
|
then
|
||||||
fi
|
cp -fp /etc/localtime "%{prefix}/etc/localtime"
|
||||||
if test -r /etc/rndc.key
|
fi
|
||||||
then
|
if test -r /etc/rndc.key
|
||||||
cp /etc/rndc.key "%{prefix}/etc/rndc.key"
|
then
|
||||||
chown root:named "%{prefix}/etc/rndc.key"
|
cp -fp /etc/rndc.key "%{prefix}/etc/rndc.key"
|
||||||
fi
|
chown root:named "%{prefix}/etc/rndc.key"
|
||||||
if test -r /etc/named.conf
|
fi
|
||||||
then
|
if test -r /etc/named.conf
|
||||||
cp /etc/named.conf "%{prefix}/etc/named.conf"
|
then
|
||||||
chown root:named "%{prefix}/etc/named.conf"
|
cp -fp /etc/named.conf "%{prefix}/etc/named.conf"
|
||||||
fi
|
chown root:named "%{prefix}/etc/named.conf"
|
||||||
if test -r /etc/named.custom
|
fi
|
||||||
then
|
if test -r /etc/named.custom
|
||||||
cp /etc/named.custom "%{prefix}/etc/named.custom"
|
then
|
||||||
chown root:named "%{prefix}/etc/named.custom"
|
cp -fp /etc/named.custom "%{prefix}/etc/named.custom"
|
||||||
fi
|
chown root:named "%{prefix}/etc/named.custom"
|
||||||
for i in `ls -1d /var/named/* | grep -v /var/named/chroot`; do
|
fi
|
||||||
cp -rf $i "%{prefix}/var/named/" 2> /dev/null
|
for i in `ls -1d /var/named/* | grep -v /var/named/chroot`; do
|
||||||
done
|
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
|
%preun chroot
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
if test -r /etc/sysconfig/named && grep -q ^ROOTDIR= /etc/sysconfig/named
|
if test -r /etc/sysconfig/named && grep -q ^ROOTDIR= /etc/sysconfig/named
|
||||||
|
|
2
sources
2
sources
|
@ -1,5 +1,5 @@
|
||||||
f1266fa636426e2f3ce6771f09ce787f bind-9.2.3rc3-deprecation_msg_shut_up.diff.bz2
|
f1266fa636426e2f3ce6771f09ce787f bind-9.2.3rc3-deprecation_msg_shut_up.diff.bz2
|
||||||
f63054b2fc51e9af97bde8d432ccf6aa bind-9.2.4rc6.tar.gz
|
f63054b2fc51e9af97bde8d432ccf6aa bind-9.2.4rc6.tar.gz
|
||||||
948709e38115ccfe3e4d078d4a8ed00e bind-chroot.tar.gz
|
af38102dea2db4375bc6bf1fcb087d8f bind-chroot.tar.gz
|
||||||
1ae2dcc356623ef5fd130893e95a9b94 bind-manpages.patch.bz2
|
1ae2dcc356623ef5fd130893e95a9b94 bind-manpages.patch.bz2
|
||||||
c2f6322d4ef48684478cbb3c5cccbd3f bind-manpages.tar.bz2
|
c2f6322d4ef48684478cbb3c5cccbd3f bind-manpages.tar.bz2
|
||||||
|
|
Loading…
Reference in New Issue