/[packages]/updates/5/bind/current/SPECS/bind.spec
ViewVC logotype

Diff of /updates/5/bind/current/SPECS/bind.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1104817 by luigiwalser, Tue Nov 1 23:04:31 2016 UTC revision 1104818 by guillomovitch, Fri May 26 13:25:52 2017 UTC
# Line 9  Line 9 
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
# Line 35  Source40:      bind.tmpfiles Line 34  Source40:      bind.tmpfiles
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
# Line 81  Patch137:      bind99-rrl.patch Line 82  Patch137:      bind99-rrl.patch
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
# Line 97  Patch94:       bind95-rh461409.patch Line 99  Patch94:       bind95-rh461409.patch
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
# Line 209  BuildArch:     noarch Line 206  BuildArch:     noarch
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    
# Line 239  mkdir m4 Line 244  mkdir m4
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
# Line 315  popd Line 317  popd
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 \
# Line 369  install -d %{buildroot}%{chroot_prefix}/ Line 368  install -d %{buildroot}%{chroot_prefix}/
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    
# Line 488  fi Line 491  fi
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 ] || \
# Line 506  fi Line 511  fi
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    
# Line 516  fi Line 521  fi
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
# Line 538  fi Line 543  fi
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*
# Line 576  fi Line 581  fi
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
# Line 590  fi Line 596  fi
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}
# Line 649  fi Line 656  fi
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*
# Line 661  fi Line 669  fi
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*

Legend:
Removed from v.1104817  
changed lines
  Added in v.1104818

  ViewVC Help
Powered by ViewVC 1.1.30