9 |
%{?_with_gssapi: %{expand: %%global gssapi 1}} |
%{?_with_gssapi: %{expand: %%global gssapi 1}} |
10 |
%{?_without_gssapi: %{expand: %%global gssapi 0}} |
%{?_without_gssapi: %{expand: %%global gssapi 0}} |
11 |
|
|
12 |
%define major_version 9.10.3 |
%define major_version 9.10.5 |
13 |
%define patch_version P4 |
#define patch_version P4 |
14 |
%define dashpatch %{?patch_version:-%patch_version}%nil |
%define dashpatch %{?patch_version:-%patch_version}%nil |
15 |
%define dotpatch %{?patch_version:.%patch_version}%nil |
%define dotpatch %{?patch_version:.%patch_version}%nil |
16 |
%define chroot_prefix /var/lib/named |
%define chroot_prefix /var/lib/named |
17 |
|
|
18 |
Name: bind |
Name: bind |
19 |
Version: %{major_version}%{dotpatch} |
Version: %{major_version}%{dotpatch} |
|
%define subrel 2 |
|
20 |
Release: %mkrel 1 |
Release: %mkrel 1 |
21 |
Summary: A DNS (Domain Name System) server |
Summary: A DNS (Domain Name System) server |
22 |
License: ISC |
License: ISC |
34 |
Source41: named.service |
Source41: named.service |
35 |
Source42: named-sdb.service |
Source42: named-sdb.service |
36 |
Source43: setup-named-chroot.sh |
Source43: setup-named-chroot.sh |
37 |
|
Source44: named-chroot-setup.service |
38 |
|
Source45: named-sdb-chroot-setup.service |
39 |
|
|
40 |
# sdb |
# sdb |
41 |
Source30: ldap2zone.c |
Source30: ldap2zone.c |
82 |
# SDB patches |
# SDB patches |
83 |
Patch11: bind-9.9.3-sdbsrc.diff |
Patch11: bind-9.9.3-sdbsrc.diff |
84 |
Patch12: bind-9.10-sdb.patch |
Patch12: bind-9.10-sdb.patch |
85 |
|
Patch13: bind-9.10.4-sdb-no-strlcat.patch |
86 |
Patch62: bind-9.5-sdb-sqlite-bld.patch |
Patch62: bind-9.5-sdb-sqlite-bld.patch |
87 |
|
|
88 |
# needs inpection |
# needs inpection |
99 |
Patch206: bind-9.2.0rc3-varrun.patch |
Patch206: bind-9.2.0rc3-varrun.patch |
100 |
Patch208: bind-9.3.2-prctl_set_dumpable.patch |
Patch208: bind-9.3.2-prctl_set_dumpable.patch |
101 |
|
|
|
# security patches |
|
|
Patch500: bind-9.10-CVE-2016-2775.patch |
|
|
Patch501: bind-9.10-CVE-2016-2776.patch |
|
|
Patch502: bind-9.10-CVE-2016-8864.patch |
|
|
|
|
102 |
Requires: bind-utils >= %{version}-%{release} |
Requires: bind-utils >= %{version}-%{release} |
103 |
Requires(post): systemd >= %{systemd_required_version} |
Requires(post): systemd >= %{systemd_required_version} |
104 |
Requires(post): rpm-helper >= 0.24.8-1 |
Requires(post): rpm-helper >= 0.24.8-1 |
206 |
%description doc |
%description doc |
207 |
The bind-devel package contains the documentation for BIND. |
The bind-devel package contains the documentation for BIND. |
208 |
|
|
209 |
|
%package -n python-bind |
210 |
|
Summary: A module allowing rndc commands to be sent from Python programs |
211 |
|
Group: Development/Python |
212 |
|
|
213 |
|
%description -n python-bind |
214 |
|
This package provides a module which allows commands to be sent to rndc |
215 |
|
directly from Python programs. |
216 |
|
|
217 |
%prep |
%prep |
218 |
%setup -q -n %{name}-%{major_version}%{dashpatch} |
%setup -q -n %{name}-%{major_version}%{dashpatch} |
219 |
|
|
244 |
%patch131 -p1 -b .multlib-conflict |
%patch131 -p1 -b .multlib-conflict |
245 |
%patch137 -p1 -b .rrl |
%patch137 -p1 -b .rrl |
246 |
|
|
|
%patch500 -p1 -b .CVE-2016-2775 |
|
|
%patch501 -p1 -b .CVE-2016-2776 |
|
|
%patch502 -p1 -b .CVE-2016-8864 |
|
|
|
|
247 |
%if %{sdb} |
%if %{sdb} |
248 |
%patch101 -p1 -b .old-api |
%patch101 -p1 -b .old-api |
249 |
mkdir bin/named-sdb |
mkdir bin/named-sdb |
250 |
cp -r bin/named/* bin/named-sdb |
cp -r bin/named/* bin/named-sdb |
251 |
%patch11 -p1 -b .sdbsrc |
%patch11 -p1 -b .sdbsrc |
252 |
|
%patch13 -p1 -b .strlcat |
253 |
# SDB ldap |
# SDB ldap |
254 |
cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named-sdb |
cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named-sdb |
255 |
# SDB postgreSQL |
# SDB postgreSQL |
317 |
%configure2_5x \ |
%configure2_5x \ |
318 |
--localstatedir=/var \ |
--localstatedir=/var \ |
319 |
--disable-openssl-version-check \ |
--disable-openssl-version-check \ |
|
--enable-exportlib \ |
|
|
--with-export-libdir=%{_libdir} \ |
|
|
--with-export-includedir=%{_includedir} \ |
|
320 |
--enable-threads \ |
--enable-threads \ |
321 |
--enable-largefile \ |
--enable-largefile \ |
322 |
--enable-ipv6 \ |
--enable-ipv6 \ |
368 |
# versions that included them (rh bug #130121): |
# versions that included them (rh bug #130121): |
369 |
touch %{buildroot}%{chroot_prefix}/dev/null |
touch %{buildroot}%{chroot_prefix}/dev/null |
370 |
touch %{buildroot}%{chroot_prefix}/dev/random |
touch %{buildroot}%{chroot_prefix}/dev/random |
371 |
|
touch %{buildroot}%{chroot_prefix}/dev/urandom |
372 |
touch %{buildroot}%{chroot_prefix}/dev/zero |
touch %{buildroot}%{chroot_prefix}/dev/zero |
373 |
touch %{buildroot}%{chroot_prefix}/etc/localtime |
touch %{buildroot}%{chroot_prefix}/etc/localtime |
374 |
|
|
375 |
install -m 755 %{SOURCE43} %{buildroot}%{_sbindir}/setup-named-chroot.sh |
install -d -m 755 %{buildroot}%{_libexecdir} |
376 |
|
install -m 755 %{SOURCE43} %{buildroot}%{_libexecdir}/setup-named-chroot.sh |
377 |
|
|
378 |
# systemd files |
# systemd files |
379 |
install -d -m 755 %{buildroot}%{_unitdir} |
install -d -m 755 %{buildroot}%{_unitdir} |
380 |
install -m 644 %{SOURCE41} %{buildroot}%{_unitdir} |
install -m 644 %{SOURCE41} %{buildroot}%{_unitdir} |
381 |
install -m 644 %{SOURCE42} %{buildroot}%{_unitdir} |
install -m 644 %{SOURCE42} %{buildroot}%{_unitdir} |
382 |
|
install -m 644 %{SOURCE44} %{buildroot}%{_unitdir} |
383 |
|
install -m 644 %{SOURCE45} %{buildroot}%{_unitdir} |
384 |
|
|
385 |
install -D -m 644 %{SOURCE40} %{buildroot}%{_tmpfilesdir}/named.conf |
install -D -m 644 %{SOURCE40} %{buildroot}%{_tmpfilesdir}/named.conf |
386 |
|
|
491 |
# chroot devices |
# chroot devices |
492 |
[ -e %{chroot_prefix}/dev/random ] || \ |
[ -e %{chroot_prefix}/dev/random ] || \ |
493 |
/bin/mknod %{chroot_prefix}/dev/random c 1 8 |
/bin/mknod %{chroot_prefix}/dev/random c 1 8 |
494 |
|
[ -e %{chroot_prefix}/dev/urandom ] || \ |
495 |
|
/bin/mknod %{chroot_prefix}/dev/urandom c 1 9 |
496 |
[ -e %{chroot_prefix}/dev/zero ] || \ |
[ -e %{chroot_prefix}/dev/zero ] || \ |
497 |
/bin/mknod %{chroot_prefix}/dev/zero c 1 5 |
/bin/mknod %{chroot_prefix}/dev/zero c 1 5 |
498 |
[ -e %{chroot_prefix}/dev/null ] || \ |
[ -e %{chroot_prefix}/dev/null ] || \ |
511 |
|
|
512 |
if [ "$1" -eq 0 ]; then |
if [ "$1" -eq 0 ]; then |
513 |
# uninstallation |
# uninstallation |
514 |
rm -f %{chroot_prefix}/dev/{random,zero,null} |
rm -f %{chroot_prefix}/dev/{random,urandom,zero,null} |
515 |
rm -f %{chroot_prefix}/etc/localtime |
rm -f %{chroot_prefix}/etc/localtime |
516 |
fi |
fi |
517 |
|
|
521 |
%files |
%files |
522 |
%doc CHANGES README README.mga FAQ COPYRIGHT |
%doc CHANGES README README.mga FAQ COPYRIGHT |
523 |
%{_bindir}/delv |
%{_bindir}/delv |
524 |
%{_sbindir}/arpaname |
%{_bindir}/arpaname |
525 |
%{_sbindir}/ddns-confgen |
%{_sbindir}/ddns-confgen |
526 |
%{_sbindir}/dns-keygen |
%{_sbindir}/dns-keygen |
527 |
%{_sbindir}/dnssec-checkds |
%{_sbindir}/dnssec-checkds |
543 |
%{_sbindir}/named-checkzone |
%{_sbindir}/named-checkzone |
544 |
%{_sbindir}/named-compilezone |
%{_sbindir}/named-compilezone |
545 |
%{_sbindir}/named-journalprint |
%{_sbindir}/named-journalprint |
546 |
%{_sbindir}/named-rrchecker |
%{_bindir}/named-rrchecker |
547 |
%{_sbindir}/nsec3hash |
%{_sbindir}/nsec3hash |
548 |
%{_sbindir}/rndc |
%{_sbindir}/rndc |
549 |
%{_sbindir}/rndc-confgen |
%{_sbindir}/rndc-confgen |
|
%{_sbindir}/setup-named-chroot.sh |
|
550 |
%{_sbindir}/tsig-keygen |
%{_sbindir}/tsig-keygen |
551 |
|
%{_libexecdir}/setup-named-chroot.sh |
552 |
%{_mandir}/man1/arpaname.1.* |
%{_mandir}/man1/arpaname.1.* |
553 |
%{_mandir}/man1/delv.1* |
%{_mandir}/man1/delv.1* |
554 |
%{_mandir}/man1/named-rrchecker.1* |
%{_mandir}/man1/named-rrchecker.1* |
581 |
%{_sysconfdir}/NetworkManager/dispatcher.d/13-named |
%{_sysconfdir}/NetworkManager/dispatcher.d/13-named |
582 |
%{_tmpfilesdir}/named.conf |
%{_tmpfilesdir}/named.conf |
583 |
%{_unitdir}/named.service |
%{_unitdir}/named.service |
584 |
|
%{_unitdir}/named-chroot-setup.service |
585 |
|
|
586 |
# variable directory |
# variable directory |
587 |
%dir %{_localstatedir}/named |
%dir %{_localstatedir}/named |
596 |
# the chroot |
# the chroot |
597 |
%ghost %{chroot_prefix}/dev/null |
%ghost %{chroot_prefix}/dev/null |
598 |
%ghost %{chroot_prefix}/dev/random |
%ghost %{chroot_prefix}/dev/random |
599 |
|
%ghost %{chroot_prefix}/dev/urandom |
600 |
%ghost %{chroot_prefix}/dev/zero |
%ghost %{chroot_prefix}/dev/zero |
601 |
%ghost %{chroot_prefix}/etc/localtime |
%ghost %{chroot_prefix}/etc/localtime |
602 |
%dir %{chroot_prefix} |
%dir %{chroot_prefix} |
656 |
%doc contrib/sdb/ldap/INSTALL.ldap |
%doc contrib/sdb/ldap/INSTALL.ldap |
657 |
%doc contrib/sdb/pgsql/README.sdb_pgsql |
%doc contrib/sdb/pgsql/README.sdb_pgsql |
658 |
%{_unitdir}/named-sdb.service |
%{_unitdir}/named-sdb.service |
659 |
|
%{_unitdir}/named-sdb-chroot-setup.service |
660 |
%{_mandir}/man1/zone2ldap.1* |
%{_mandir}/man1/zone2ldap.1* |
661 |
%{_mandir}/man1/ldap2zone.1* |
%{_mandir}/man1/ldap2zone.1* |
662 |
%{_mandir}/man1/zonetodb.1* |
%{_mandir}/man1/zonetodb.1* |
669 |
%{_sbindir}/zonetodb |
%{_sbindir}/zonetodb |
670 |
%{_sbindir}/zone2sqlite |
%{_sbindir}/zone2sqlite |
671 |
%endif |
%endif |
672 |
|
|
673 |
|
%files -n python-bind |
674 |
|
%{python_sitelib}/*py* |
675 |
|
%{python_sitelib}/isc/*py* |