|
@@ -1,9 +1,15 @@
|
|
|
|
+%bcond_with python
|
|
|
|
+%define python_executable %{__python}
|
|
|
|
+
|
|
%define _localstatedir /var
|
|
%define _localstatedir /var
|
|
|
|
+%define _unpackaged_files_terminate_build 1
|
|
|
|
|
|
%define sname bind
|
|
%define sname bind
|
|
%define pname bind
|
|
%define pname bind
|
|
-%define pversion 9.9.13.P1
|
|
|
|
-%define sversion 9.9.13-P1
|
|
|
|
|
|
+# example: 9.9.13.P1
|
|
|
|
+%define pversion 9.11.5
|
|
|
|
+# example: 9.9.13-P1
|
|
|
|
+%define sversion 9.11.5
|
|
%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
|
|
@@ -29,10 +35,14 @@ Source2: named.sysconfig
|
|
Source3: named.init
|
|
Source3: named.init
|
|
Source4: named.logrotate
|
|
Source4: named.logrotate
|
|
Source5: keygen.c
|
|
Source5: keygen.c
|
|
-Patch1: bind-9.9.13-P1-rndckey.patch
|
|
|
|
|
|
+Patch1: bind-9.11.5-rndckey.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: python python-rpm-macros
|
|
|
|
|
|
+%if %{with python}
|
|
|
|
+BuildRequires: python
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
+BuildRequires: python-ply
|
|
|
|
+%endif
|
|
BuildRequires: openssl-devel glibc-devel libtool
|
|
BuildRequires: openssl-devel glibc-devel libtool
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libcap-devel
|
|
@@ -142,6 +152,11 @@ autoconf
|
|
--enable-ipv6 \
|
|
--enable-ipv6 \
|
|
--with-pic \
|
|
--with-pic \
|
|
--with-dlz-dlopen \
|
|
--with-dlz-dlopen \
|
|
|
|
+%if %{with python}
|
|
|
|
+ --with-python=%{python_executable} \
|
|
|
|
+%else
|
|
|
|
+ --with-python=no \
|
|
|
|
+%endif
|
|
--enable-filter-aaaa \
|
|
--enable-filter-aaaa \
|
|
--enable-fixed-rrset
|
|
--enable-fixed-rrset
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
@@ -156,7 +171,6 @@ mkdir -p ${RPM_BUILD_ROOT}/var/run/named
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
install -c -m 640 bin/rndc/rndc.conf $RPM_BUILD_ROOT/etc
|
|
install -c -m 640 bin/rndc/rndc.conf $RPM_BUILD_ROOT/etc
|
|
-install -c -m 755 contrib/named-bootconf/named-bootconf.sh $RPM_BUILD_ROOT/usr/sbin/named-bootconf
|
|
|
|
install -c -m 755 %SOURCE3 $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/named
|
|
install -c -m 755 %SOURCE3 $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/named
|
|
install -c -m 644 %SOURCE4 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/named
|
|
install -c -m 644 %SOURCE4 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/named
|
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/rndc.key
|
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/rndc.key
|
|
@@ -245,7 +259,6 @@ fi
|
|
%{_sbindir}/dnssec*
|
|
%{_sbindir}/dnssec*
|
|
%{_sbindir}/lwresd
|
|
%{_sbindir}/lwresd
|
|
%{_sbindir}/named
|
|
%{_sbindir}/named
|
|
-%{_sbindir}/named-bootconf
|
|
|
|
%{_sbindir}/named-check*
|
|
%{_sbindir}/named-check*
|
|
%{_sbindir}/named-compilezone
|
|
%{_sbindir}/named-compilezone
|
|
%{_sbindir}/rndc*
|
|
%{_sbindir}/rndc*
|
|
@@ -256,8 +269,11 @@ fi
|
|
%{_sbindir}/isc-hmac-fixup
|
|
%{_sbindir}/isc-hmac-fixup
|
|
%{_sbindir}/named-journalprint
|
|
%{_sbindir}/named-journalprint
|
|
%{_sbindir}/nsec3hash
|
|
%{_sbindir}/nsec3hash
|
|
|
|
+%{_sbindir}/tsig-keygen
|
|
|
|
|
|
|
|
+%if %{with python}
|
|
%{python_sitelib}/*
|
|
%{python_sitelib}/*
|
|
|
|
+%endif
|
|
|
|
|
|
%{_mandir}/man1/arpaname.1*
|
|
%{_mandir}/man1/arpaname.1*
|
|
%{_mandir}/man5/resolv.conf.5*
|
|
%{_mandir}/man5/resolv.conf.5*
|
|
@@ -276,10 +292,11 @@ fi
|
|
%{_mandir}/man8/isc-hmac-fixup.8*
|
|
%{_mandir}/man8/isc-hmac-fixup.8*
|
|
%{_mandir}/man8/named-journalprint.8*
|
|
%{_mandir}/man8/named-journalprint.8*
|
|
%{_mandir}/man8/nsec3hash.8*
|
|
%{_mandir}/man8/nsec3hash.8*
|
|
|
|
+%{_mandir}/man8/tsig-keygen.8*
|
|
|
|
|
|
%attr(-,named,named) %dir %{_var}/named
|
|
%attr(-,named,named) %dir %{_var}/named
|
|
%attr(-,named,named) %dir %{_var}/run/named
|
|
%attr(-,named,named) %dir %{_var}/run/named
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
%files libs
|
|
%files libs
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
@@ -287,15 +304,21 @@ fi
|
|
|
|
|
|
%files utils
|
|
%files utils
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
|
|
+%{_bindir}/delv
|
|
%{_bindir}/dig
|
|
%{_bindir}/dig
|
|
%{_bindir}/host
|
|
%{_bindir}/host
|
|
|
|
+%{_bindir}/mdig
|
|
|
|
+%{_bindir}/named-rrchecker
|
|
%{_bindir}/nslookup
|
|
%{_bindir}/nslookup
|
|
%{_bindir}/nsupdate
|
|
%{_bindir}/nsupdate
|
|
|
|
+%{_mandir}/man1/delv.1*
|
|
|
|
+%{_mandir}/man1/dig.1*
|
|
%{_mandir}/man1/host.1*
|
|
%{_mandir}/man1/host.1*
|
|
|
|
+%{_mandir}/man1/mdig.1*
|
|
|
|
+%{_mandir}/man1/named-rrchecker.1*
|
|
|
|
+%{_mandir}/man1/nslookup.1*
|
|
%{_mandir}/man1/nsupdate.1*
|
|
%{_mandir}/man1/nsupdate.1*
|
|
-%{_mandir}/man1/dig.1*
|
|
|
|
%{_mandir}/man5/resolver.5*
|
|
%{_mandir}/man5/resolver.5*
|
|
-%{_mandir}/man1/nslookup.1*
|
|
|
|
%{_mandir}/man8/nslookup.8*
|
|
%{_mandir}/man8/nslookup.8*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
@@ -310,6 +333,10 @@ fi
|
|
%{_bindir}/isc-config.sh
|
|
%{_bindir}/isc-config.sh
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Dec 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net>
|
|
|
|
+- updated to 9.11.5 (new ESV).
|
|
|
|
+- updated Patch1.
|
|
|
|
+
|
|
* Thu Nov 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.9.13.P1-1
|
|
* Thu Nov 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.9.13.P1-1
|
|
- updated to 9.9.13.P1.
|
|
- updated to 9.9.13.P1.
|
|
- updated Patch1.
|
|
- updated Patch1.
|