auto-import changelog data from bind-9.2.3-13.src.rpm

Fri Mar 26 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-13
- Fix location of restorecon
Thu Mar 25 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-12
- Tighten security on config files. Should be owned by root
Thu Mar 25 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-11
- Update key patch to include conf-keygen
Tue Mar 23 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-10
- fix chroot to only happen once.
- fix init script to do kill insteall of killall
This commit is contained in:
cvsdist 2004-09-09 03:36:34 +00:00
parent 86fb37f71f
commit d6fdf5a033
2 changed files with 40 additions and 22 deletions

View File

@ -26,7 +26,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.3 Version: 9.2.3
Release: 9 Release: 13
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
@ -47,6 +47,7 @@ tools for verifying that the DNS server is operating properly.
%package libs %package libs
Summary: Libraries used by various DNS packages Summary: Libraries used by various DNS packages
Group: Applications/System Group: Applications/System
%description libs %description libs
Contains libraries used by both the bind server package as well as the utils packages. Contains libraries used by both the bind server package as well as the utils packages.
@ -88,20 +89,20 @@ 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/var/run/named %attr(770,named,named) %prefix/var/run/named
%attr(770,root,named) %prefix/var/tmp %attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/etc/named.conf
%attr(750,root,named) %config(noreplace) %verify(user group mode) %prefix/etc/named.conf
%attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/dev/random %attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/dev/random
%attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/dev/null %attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/dev/null
%attr(640,root,named) %config(noreplace) %verify(user group mode) %prefix/etc/rndc.key %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
%post chroot %post chroot
if [ $1 = 1 ]; 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 then :
then : else
else echo ROOTDIR="%{prefix}" >>/etc/sysconfig/named echo ROOTDIR="%{prefix}" >>/etc/sysconfig/named
fi if [ ! -d "${prefix}/var/tmp" ]; then
mkdir -m770 -p "%{prefix}/var/tmp"
rm -f "%{prefix}/dev/null" rm -f "%{prefix}/dev/null"
mknod "%{prefix}/dev/null" c 1 3 mknod "%{prefix}/dev/null" c 1 3
chmod 666 "%{prefix}/dev/null" chmod 666 "%{prefix}/dev/null"
@ -118,26 +119,30 @@ if [ $1 = 1 ]; then
if test -r /etc/rndc.key if test -r /etc/rndc.key
then then
cp /etc/rndc.key "%{prefix}/etc/rndc.key" cp /etc/rndc.key "%{prefix}/etc/rndc.key"
chown named:named "%{prefix}/etc/rndc.key" chown root:named "%{prefix}/etc/rndc.key"
fi fi
if test -r /etc/named.conf if test -r /etc/named.conf
then then
cp /etc/named.conf "%{prefix}/etc/named.conf" cp /etc/named.conf "%{prefix}/etc/named.conf"
chown named:named "%{prefix}/etc/named.conf" chown root:named "%{prefix}/etc/named.conf"
fi fi
if test -r /etc/named.custom if test -r /etc/named.custom
then then
cp /etc/named.custom "%{prefix}/etc/named.custom" cp /etc/named.custom "%{prefix}/etc/named.custom"
chown named:named "%{prefix}/etc/named.custom" chown root:named "%{prefix}/etc/named.custom"
fi fi
cp -rf /var/named/* "%{prefix}/var/named/" 2> /dev/null for i in `ls -1d /var/named/* | grep -v /var/named/chroot`; do
chown -R named:named "%{prefix}/var/named" cp -rf $i "%{prefix}/var/named/" 2> /dev/null
done
chown -R root:named "%{prefix}/var/named"
if /etc/init.d/named condrestart if /etc/init.d/named condrestart
then : then :
fi fi
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
then then
grep -v ROOTDIR="%{prefix}" /etc/sysconfig/named > /tmp/named grep -v ROOTDIR="%{prefix}" /etc/sysconfig/named > /tmp/named
@ -230,12 +235,12 @@ if [ $1 = 1 ]; then
if [ ! -e /etc/rndc.key.rpmnew ]; then if [ ! -e /etc/rndc.key.rpmnew ]; then
sed -e "s/@KEY@/`/usr/sbin/dns-keygen`/" /etc/rndc.key >/etc/rndc.key.tmp sed -e "s/@KEY@/`/usr/sbin/dns-keygen`/" /etc/rndc.key >/etc/rndc.key.tmp
mv -f /etc/rndc.key.tmp /etc/rndc.key mv -f /etc/rndc.key.tmp /etc/rndc.key
if [ -x /usr/sbin/restorecon ]; then fi
if [ -x /sbin/restorecon ]; then
# #
# Restore selinux file_context # Restore selinux file_context
# #
/usr/sbin/restorecon /etc/rndc.key /sbin/restorecon /etc/rndc.key /etc/rndc.conf
fi
fi fi
chmod 0640 /etc/rndc.conf etc/rndc.key chmod 0640 /etc/rndc.conf etc/rndc.key
chown root:named /etc/rndc.conf etc/rndc.key chown root:named /etc/rndc.conf etc/rndc.key
@ -331,6 +336,19 @@ rm -rf ${RPM_BUILD_ROOT} ${RPM_BUILD_DIR}/%{name}-%{version}
%endif %endif
%changelog %changelog
* Fri Mar 26 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-13
- Fix location of restorecon
* Thu Mar 25 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-12
- Tighten security on config files. Should be owned by root
* Thu Mar 25 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-11
- Update key patch to include conf-keygen
* Tue Mar 23 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-10
- fix chroot to only happen once.
- fix init script to do kill insteall of killall
* Mon Mar 15 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-9 * Mon Mar 15 2004 Daniel Walsh <dwalsh@redhat.com> 9.2.3-9
- Add fix for SELinux security context - Add fix for SELinux security context

View File

@ -71,7 +71,7 @@ restart() {
} }
reload() { reload() {
echo -n $"Reloading $prog: " echo -n $"Reloading $prog: "
/usr/sbin/rndc reload >/dev/null 2>&1 || /usr/bin/killall -HUP `/sbin/pidof -o %PPID named` /usr/sbin/rndc reload >/dev/null 2>&1 || /usr/bin/kill -HUP `/sbin/pidof -o %PPID named`
[ "$?" -eq 0 ] && success $"$prog reload" || failure $"$prog reload" [ "$?" -eq 0 ] && success $"$prog reload" || failure $"$prog reload"
echo echo
return $? return $?