summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@fedoraproject.org>2007-04-10 17:25:42 +0000
committerAdam Tkac <atkac@fedoraproject.org>2007-04-10 17:25:42 +0000
commit3baba6556a0effd881a0121373542291087d5eb7 (patch)
treeae9b9dcefe76592c0205a87ed45cce6675047c95
parentc22f9d68e46c7406b17462ab0b29dd7b88559e7e (diff)
downloadbind-3baba6556a0effd881a0121373542291087d5eb7.tar.gz
bind-3baba6556a0effd881a0121373542291087d5eb7.tar.xz
bind-3baba6556a0effd881a0121373542291087d5eb7.zip
cleanup in caching-nameserver configuration (#209954) throw away idn
changes
-rw-r--r--bind.spec50
-rw-r--r--named.caching-nameserver.conf2
2 files changed, 7 insertions, 45 deletions
diff --git a/bind.spec b/bind.spec
index 967568b..d309e07 100644
--- a/bind.spec
+++ b/bind.spec
@@ -10,7 +10,6 @@
%{?!bind_uid: %define bind_uid 25}
%{?!bind_gid: %define bind_gid 25}
%{?!selinux: %define selinux 1}
-%define IDN 0
%define bind_dir /var/named
%define chroot_prefix %{bind_dir}/chroot
#
@@ -77,7 +76,6 @@ Patch32: bind-9.3.2-prctl_set_dumpable.patch
Patch52: bind-9.3.3-edns.patch
Patch61: bind-9.3.4-sdb-sqlite-src.patch
Patch62: bind-9.4.0-sdb-sqlite-bld.patch
-Patch63: bind-9.4.0-idn.patch
#
Requires: bind-libs = %{epoch}:%{version}-%{release}, glibc >= 2.2, mktemp
Requires(post): grep, chkconfig >= 1.3.26
@@ -285,24 +283,14 @@ cp -fp bin/named/include/named/{globals.h,server.h,log.h,types.h} bin/named_sdb/
%if %{SDB}
%patch62 -p1 -b .sdb-sqlite-bld
%endif
-%if %{IDN}
-%patch63 -p1 -b .idn
-%endif
:;
%build
-#first we must compile our libidnkit library
-%if %{IDN}
-pushd contrib/idn/idnkit-1.0-src
-%configure
-make %{?_smp_mflags}
-popd
-%endif
-
libtoolize --copy --force; aclocal; autoconf
cp -f /usr/share/libtool/config.{guess,sub} .
%if %{DEBUGINFO}
+export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -O0"
export CFLAGS="$RPM_OPT_FLAGS";
%else
export CFLAGS=`echo $RPM_OPT_FLAGS | sed 's/-O2 -g/-g3 -gdwarf-2/g'`;
@@ -333,9 +321,6 @@ export LDFLAGS=-lefence
%if %{LIBBIND}
--enable-libbind \
%endif
-%if %{IDN}
- --with-idn \
-%endif
--disable-openssl-version-check \
CFLAGS="$CFLAGS" \
;
@@ -350,18 +335,6 @@ make %{?_smp_mflags}
%install
rm -rf ${RPM_BUILD_ROOT}
-#libidnkit
-%if %{IDN}
-pushd contrib/idn/idnkit-1.0-src
-make DESTDIR=${RPM_BUILD_ROOT} install
-# remove bogus created by make install
-rm -rf ${RPM_BUILD_ROOT}/%{_includedir}/*
-rm -rf ${RPM_BUILD_ROOT}/%{_libdir}/libidnkit.la
-rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/idnkit
-rm -rf ${RPM_BUILD_ROOT}/%{_mandir}/man3
-popd
-%endif
-
cp --preserve=timestamps %{SOURCE5} doc/rfc
gzip -9 doc/rfc/*
mkdir -p ${RPM_BUILD_ROOT}/etc/{rc.d/init.d,logrotate.d}
@@ -472,7 +445,7 @@ for f in my.internal.zone.db slaves/my.slave.internal.zone.db slaves/my.ddns.int
echo '@ in soa localhost. root 1 3H 15M 1W 1D
ns localhost.' > sample/var/named/$f;
done
-/usr/bin/tail -n '+'`/bin/egrep -n '\\$Id: bind.spec,v 1.168 2007/03/16 15:25:39 atkac Exp $/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\
+/usr/bin/tail -n '+'`/bin/egrep -n '\\$Id: bind.spec,v 1.169 2007/04/10 17:25:42 atkac Exp $/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\
*\
* NOTE: you only need to create this file if it is to\
* differ from the following default contents:
@@ -686,21 +659,7 @@ rm -rf ${RPM_BUILD_ROOT}
%{_bindir}/host
%{_bindir}/nslookup
%{_bindir}/nsupdate
-%if %{IDN}
-%{_libdir}/*
-%{_bindir}/idnconv
-%endif
%defattr(0644,root,root,0755)
-%if %{IDN}
-%config(noreplace) /etc/idn.conf
-%config /etc/idn.conf.sample
-%config(noreplace) /etc/idnalias.conf
-%config /etc/idnalias.conf.sample
-%{_mandir}/man1/idnconv.1.gz
-%{_mandir}/man5/idn.conf.5.gz
-%{_mandir}/man5/idnalias.conf.5.gz
-%{_mandir}/man5/idnrc.5.gz
-%endif
%{_mandir}/man1/host.1*
%{_mandir}/man8/nsupdate.8*
%{_mandir}/man1/dig.1*
@@ -800,6 +759,11 @@ rm -rf ${RPM_BUILD_ROOT}
%endif
%changelog
+* Tue Apr 10 2007 Adam Tkac <atkac redhat com> 31:9.4.0-4.fc7
+- removed query-source[-v6] options from caching-nameserver config
+ (#209954, increase security)
+- throw away idn. It won't be ready in fc7
+
* Tue Mar 13 2007 Adam Tkac <atkac redhat com> 31:9.4.0-3.fc7
- prepared bind to merge review
- added experimental idn support to bind-utils utils (not enabled by default yet)
diff --git a/named.caching-nameserver.conf b/named.caching-nameserver.conf
index 9eda77e..ba67295 100644
--- a/named.caching-nameserver.conf
+++ b/named.caching-nameserver.conf
@@ -18,8 +18,6 @@ options {
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
- query-source port 53;
- query-source-v6 port 53;
allow-query { localhost; };
};
logging {