|
@@ -2,8 +2,8 @@
|
|
|
|
|
|
%define sname bind
|
|
%define sname bind
|
|
%define pname bind
|
|
%define pname bind
|
|
-%define pversion 9.9.4
|
|
|
|
-%define sversion 9.9.4
|
|
|
|
|
|
+%define pversion 9.9.6.P1
|
|
|
|
+%define sversion 9.9.6-P1
|
|
%define bind_epoch 1
|
|
%define bind_epoch 1
|
|
# fixed <BTS:VineLinux:1139>
|
|
# fixed <BTS:VineLinux:1139>
|
|
%define old_bind_version 1:9.9.2p2-1vl7
|
|
%define old_bind_version 1:9.9.2p2-1vl7
|
|
@@ -15,29 +15,30 @@ Summary: A DNS (Domain Name System) server.
|
|
Summary(ja): DNS (Domain Name System) サーバ
|
|
Summary(ja): DNS (Domain Name System) サーバ
|
|
Name: %{pname}
|
|
Name: %{pname}
|
|
Version: %{pversion}
|
|
Version: %{pversion}
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 3%{?_dist_release}
|
|
Epoch: %{bind_epoch}
|
|
Epoch: %{bind_epoch}
|
|
License: distributable
|
|
License: distributable
|
|
Group: System Environment/Daemons
|
|
Group: System Environment/Daemons
|
|
|
|
+URL: http://www.isc.org/bind.html
|
|
|
|
+
|
|
Source: ftp://ftp.isc.org/isc/bind9/%{version}/%{sname}-%{sversion}.tar.gz
|
|
Source: ftp://ftp.isc.org/isc/bind9/%{version}/%{sname}-%{sversion}.tar.gz
|
|
Source1: bind-manpages.tar.bz2
|
|
Source1: bind-manpages.tar.bz2
|
|
Source2: named.sysconfig
|
|
Source2: named.sysconfig
|
|
Source3: named.init
|
|
Source3: named.init
|
|
Source4: named.logrotate
|
|
Source4: named.logrotate
|
|
Source5: keygen.c
|
|
Source5: keygen.c
|
|
-URL: http://www.isc.org/bind.html
|
|
|
|
Patch1: bind-9.3.3rc2-rndckey.patch
|
|
Patch1: bind-9.3.3rc2-rndckey.patch
|
|
|
|
|
|
-Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: openssl-devel glibc-devel libtool
|
|
BuildRequires: openssl-devel glibc-devel libtool
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libcap-devel
|
|
-Requires: %{pname}-libs = %{bind_epoch}:%{version}-%{release}
|
|
|
|
|
|
+Requires(pre): %{pname}-utils = %{bind_epoch}:%{version}-%{release}
|
|
Requires(pre): shadow-utils
|
|
Requires(pre): shadow-utils
|
|
|
|
+Requires: %{pname}-libs = %{bind_epoch}:%{version}-%{release}
|
|
Requires(post): %{pname}-utils = %{bind_epoch}:%{version}-%{release}
|
|
Requires(post): %{pname}-utils = %{bind_epoch}:%{version}-%{release}
|
|
Requires(post): coreutils, chkconfig
|
|
Requires(post): coreutils, chkconfig
|
|
Requires(preun): initscripts, chkconfig
|
|
Requires(preun): initscripts, chkconfig
|
|
-#Requires(triggerpostun): chkconfig
|
|
|
|
Conflicts: bind9 <= 9.2.1-0vl5, bind-current
|
|
Conflicts: bind9 <= 9.2.1-0vl5, bind-current
|
|
Obsoletes: bind9 <= 9.2.1-0vl5
|
|
Obsoletes: bind9 <= 9.2.1-0vl5
|
|
Obsoletes: bind-current < 1:9.9.4-1
|
|
Obsoletes: bind-current < 1:9.9.4-1
|
|
@@ -65,6 +66,7 @@ the caching-nameserver package.
|
|
|
|
|
|
%package libs
|
|
%package libs
|
|
Summary: Libraries used by various DNS packages
|
|
Summary: Libraries used by various DNS packages
|
|
|
|
+Summary(ja): さまざまな DNS パッケージで使用されるライブラリ
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Obsoletes: bind-current-libs <= %{old_bind_version}
|
|
Obsoletes: bind-current-libs <= %{old_bind_version}
|
|
|
|
|
|
@@ -157,7 +159,13 @@ rm -f man5/named.conf.5.gz
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
cp %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/named
|
|
cp %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/named
|
|
|
|
|
|
-chmod +x %{buildroot}%{_libdir}/*.so.*
|
|
|
|
|
|
+chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
|
|
|
|
+
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
+
|
|
|
|
+%clean
|
|
|
|
+rm -rf $RPM_BUILD_ROOT ${RPM_BUILD_DIR}/%{name}-%{version}
|
|
|
|
+
|
|
|
|
|
|
%pre
|
|
%pre
|
|
if [ "$1" -eq 1 ]; then
|
|
if [ "$1" -eq 1 ]; then
|
|
@@ -195,7 +203,6 @@ if [ "$1" -eq 0 ]; then
|
|
fi
|
|
fi
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
-
|
|
|
|
%postun
|
|
%postun
|
|
if [ "$1" -ge 1 ]; then
|
|
if [ "$1" -ge 1 ]; then
|
|
%{_sysconfdir}/rc.d/init.d/named condrestart >/dev/null 2>&1 || :
|
|
%{_sysconfdir}/rc.d/init.d/named condrestart >/dev/null 2>&1 || :
|
|
@@ -210,21 +217,15 @@ fi
|
|
/sbin/chkconfig --add named
|
|
/sbin/chkconfig --add named
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
|
|
|
|
-%clean
|
|
|
|
-rm -rf ${RPM_BUILD_ROOT} ${RPM_BUILD_DIR}/%{name}-%{version}
|
|
|
|
-
|
|
|
|
|
|
+%post libs -p /sbin/ldconfig
|
|
|
|
|
|
-%post libs
|
|
|
|
-/sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%postun libs
|
|
|
|
-/sbin/ldconfig
|
|
|
|
|
|
+%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc CHANGES README
|
|
%doc CHANGES README
|
|
-%doc doc/arm doc/draft doc/rfc doc/misc
|
|
|
|
|
|
+%doc doc/arm doc/misc
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/named
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/named
|
|
%config %{_sysconfdir}/rc.d/init.d/named
|
|
%config %{_sysconfdir}/rc.d/init.d/named
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/named
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/named
|
|
@@ -293,10 +294,16 @@ rm -rf ${RPM_BUILD_ROOT} ${RPM_BUILD_DIR}/%{name}-%{version}
|
|
%{_libdir}/*.a
|
|
%{_libdir}/*.a
|
|
%{_includedir}/*
|
|
%{_includedir}/*
|
|
%{_mandir}/man3/*
|
|
%{_mandir}/man3/*
|
|
|
|
+%{_mandir}/man1/bind9-config.1*
|
|
%{_mandir}/man1/isc-config.sh.1*
|
|
%{_mandir}/man1/isc-config.sh.1*
|
|
|
|
+%{_bindir}/bind9-config
|
|
%{_bindir}/isc-config.sh
|
|
%{_bindir}/isc-config.sh
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Feb 6 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 9.9.6.P1-3
|
|
|
|
+- new upstream release with secrity fix (CVE-2014-8500)
|
|
|
|
+- used "3" as release number because of being newer than Vine Linux/6 updates
|
|
|
|
+
|
|
* Tue Oct 08 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 9.9.4-1
|
|
* Tue Oct 08 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 9.9.4-1
|
|
- update to 9.9.4(ESV)
|
|
- update to 9.9.4(ESV)
|
|
|
|
|