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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 910841 - (show annotations) (download)
Wed Dec 16 00:04:37 2015 UTC (8 years, 4 months ago) by luigiwalser
File size: 20698 byte(s)
- 9.10.3-P2 (fixes CVE-2015-8000 and CVE-2015-8461)
- update patches 104 and 131 from fedora
- rediff patch 12

1 %define sdb 1
2 %define geoip 0
3 %define gssapi 1
4
5 %{?_with_sdbp: %{expand: %%global sdb 1}}
6 %{?_without_sdb: %{expand: %%global sdb 0}}
7 %{?_with_geoip: %{expand: %%global geoip 1}}
8 %{?_without_geoip: %{expand: %%global geoip 0}}
9 %{?_with_gssapi: %{expand: %%global gssapi 1}}
10 %{?_without_gssapi: %{expand: %%global gssapi 0}}
11
12 %define major_version 9.10.3
13 %define patch_version P2
14 %define dashpatch %{?patch_version:-%patch_version}%nil
15 %define dotpatch %{?patch_version:.%patch_version}%nil
16 %define chroot_prefix /var/lib/named
17
18 Name: bind
19 Version: %{major_version}%{dotpatch}
20 Release: %mkrel 1
21 Summary: A DNS (Domain Name System) server
22 License: ISC
23 Group: System/Servers
24 URL: http://www.isc.org/products/BIND/
25 Source0: ftp://ftp.isc.org/isc/%{name}9/%{major_version}%{dashpatch}/%{name}-%{major_version}%{dashpatch}.tar.gz
26 Source1: ftp://ftp.isc.org/isc/%{name}9/%{major_version}%{dashpatch}/%{name}-%{major_version}%{dashpatch}.tar.gz.sha512.asc
27
28 Source6: named.sysconfig
29 Source7: named.logrotate
30 Source8: named.NetworkManager
31 Source11: ftp://ftp.internic.net/domain/named.cache
32 Source20: bind-keygen.c
33 Source40: bind.tmpfiles
34 Source41: named.service
35 Source42: named-sdb.service
36 Source43: setup-named-chroot.sh
37
38 # sdb
39 Source30: ldap2zone.c
40 Source31: ldap2zone.1
41 Source32: named-sdb.8
42 Source33: zonetodb.1
43 Source34: zone2sqlite.1
44 Source35: bind-9.3.1rc1-sdb_tools-Makefile.in
45 Source36: dnszone.schema
46 Source37: README.sdb_pgsql
47
48 Source100: named.conf
49 Source102: named.root.key
50 Source103: trusted-key.key
51 Source105: rndc.key
52 Source110: named.ca
53 Source111: named.localhost
54 Source112: named.empty
55 Source113: named.loopback
56
57 # fedora patches
58 Patch10: bind-9.5-PIE.patch
59 Patch72: bind-9.5-dlz-64bit.patch
60 Patch87: bind-9.5-parallel-build.patch
61 Patch99: bind-9.9.3-libtool2.diff
62 Patch101: bind-96-old-api.patch
63 Patch102: bind-95-rh452060.patch
64 Patch106: bind93-rh490837.patch
65 Patch107: bind97-dist-pkcs11.patch
66 Patch109: bind97-rh478718.patch
67 Patch110: bind97-rh570851.patch
68 Patch111: bind97-exportlib.patch
69 Patch112: bind97-rh645544.patch
70 Patch119: bind97-rh693982.patch
71 Patch123: bind98-rh735103.patch
72 Patch127: bind99-forward.patch
73 Patch130: bind-9.9.3-dlz-libdb4.diff
74 Patch131: bind-9.9.1-P2-multlib-conflict.patch
75 Patch133: bind99-rh640538.patch
76 Patch134: bind97-rh669163.patch
77 Patch135: bind99-libidn4.patch
78 Patch137: bind99-rrl.patch
79
80 # SDB patches
81 Patch11: bind-9.9.3-sdbsrc.diff
82 Patch12: bind-9.10-sdb.patch
83 Patch62: bind-9.5-sdb-sqlite-bld.patch
84
85 # needs inpection
86 Patch17: bind-9.3.2b1-fix_sdb_ldap.patch
87 Patch104: bind-9.10-dyndb.patch
88
89 # IDN patches
90 Patch73: bind-9.5-libidn.patch
91 Patch83: bind-9.5-libidn2.patch
92 Patch85: bind-9.5-libidn3.patch
93 Patch94: bind95-rh461409.patch
94
95 # other patches
96 Patch206: bind-9.2.0rc3-varrun.patch
97 Patch208: bind-9.3.2-prctl_set_dumpable.patch
98 Patch209: bind-9.9.3-P2-make_the_test_suite_work.diff
99
100 # (oe) rediffed patch originates from http://www.caraytech.com/geodns/
101 Patch300: bind-9.4.0-geoip.diff
102 Requires: bind-utils >= %{version}-%{release}
103 Requires(post): systemd >= %{systemd_required_version}
104 Requires(post): rpm-helper >= 0.24.8-1
105 Requires(preun): rpm-helper >= 0.24.8-1
106 BuildRequires: openssl-devel
107 BuildRequires: multiarch-utils >= 1.0.3
108 BuildRequires: libidn-devel
109 BuildRequires: postgresql-devel
110 BuildRequires: mysql-devel
111 BuildRequires: libcap-devel >= 2.10
112 BuildRequires: libxml2-devel
113 %if %{gssapi}
114 BuildRequires: krb5-devel
115 %endif
116 %if %{geoip}
117 BuildRequires: libgeoip-devel
118 %endif
119 %if %{sdb}
120 BuildRequires: mysql-devel
121 BuildRequires: openldap-devel
122 BuildRequires: postgresql-devel
123 BuildRequires: sqlite3-devel
124 %endif
125 # needed for "make check"
126 BuildRequires: bind-testsuite-setup perl(Net::DNS)
127
128 %description
129 BIND (Berkeley Internet Name Domain) is an implementation of the DNS
130 (domain Name System) protocols. BIND includes a DNS server (named),
131 which resolves host names to IP addresses, and a resolver library
132 (routines for applications to use when interfacing with DNS). A DNS
133 server allows clients to name resources or objects and share the
134 information with other network machines. The named DNS server can be
135 used on workstations as a caching name server, but is generally only
136 needed on one machine for an entire network. Note that the
137 configuration files for making BIND act as a simple caching nameserver
138 are included in the caching-nameserver package.
139
140 Install the bind package if you need a DNS server for your network. If
141 you want bind to act a caching name server, you will also need to install
142 the caching-nameserver package.
143
144 Many BIND 8 features previously unimplemented in BIND 9, including
145 domain-specific forwarding, the \$GENERATE master file directive, and
146 the "blackhole", "dialup", and "sortlist" options Forwarding of dynamic
147 update requests; this is enabled by the "allow-update-forwarding" option
148 A new, simplified database interface and a number of sample drivers based
149 on it; see doc/dev/sdb for details
150 Support for building single-threaded servers for environments that do not
151 supply POSIX threads
152 New configuration options: "min-refresh-time", "max-refresh-time",
153 "min-retry-time", "max-retry-time", "additional-from-auth",
154 "additional-from-cache", "notify explicit"
155 Faster lookups, particularly in large zones.
156
157 Build Options:
158 --with sdb Build with database backends and DLZ support (enabled by default)
159 --with geoip Build with GeoIP support (disabled per default)
160
161 %if %{sdb}
162 %package sdb
163 Summary: BIND server with database backends and DLZ support
164 Group: System/Servers
165 Requires: bind
166 Requires(post): rpm-helper >= 0.24.8-1
167 Requires(preun): rpm-helper >= 0.24.8-1
168
169 %description sdb
170 BIND (Berkeley Internet Name Domain) is an implementation of the DNS
171 (Domain Name System) protocols. BIND includes a DNS server (named-sdb)
172 which has compiled-in SDB (Simplified Database Backend) which includes
173 support for using alternative Zone Databases stored in an LDAP server
174 (ldapdb), a postgreSQL database (pgsqldb), an sqlite database (sqlitedb),
175 or in the filesystem (dirdb), in addition to the standard in-memory RBT
176 (Red Black Tree) zone database. It also includes support for DLZ
177 (Dynamic Loadable Zones)
178 %endif
179
180 %package utils
181 Summary: Utilities for querying DNS name servers
182 Group: Networking/Other
183
184 %description utils
185 Bind-utils contains a collection of utilities for querying DNS (Domain
186 Name Service) name servers to find out information about Internet hosts.
187 These tools will provide you with the IP addresses for given host names,
188 as well as other information about registered domains and network
189 addresses.
190
191 You should install bind-utils if you need to get information from DNS name
192 servers.
193
194 %package devel
195 Summary: Include files and libraries needed for bind DNS development
196 Group: Development/C
197
198 %description devel
199 The bind-devel package contains all the include files and the
200 library required for DNS (Domain Name Service) development for
201 BIND versions 9.x.x.
202
203 %package doc
204 Summary: Documentation for BIND
205 Group: Documentation
206 BuildArch: noarch
207
208 %description doc
209 The bind-devel package contains the documentation for BIND.
210
211 %prep
212 %setup -q -n %{name}-%{major_version}%{dashpatch}
213
214 %patch10 -p1 -b .PIE
215
216 %patch104 -p1 -b .dyndb
217 %patch72 -p1 -b .64bit
218 %patch73 -p1 -b .libidn
219 %patch83 -p1 -b .libidn2
220 %patch85 -p1 -b .libidn3
221 %patch87 -p1 -b .parallel
222 %patch94 -p1 -b .rh461409
223 mkdir m4
224 %patch99 -p0 -b .libtool2
225 %patch102 -p1 -b .rh452060
226 %patch106 -p1 -b .rh490837
227 %patch107 -p1 -b .dist-pkcs11
228 %patch109 -p1 -b .rh478718
229 %patch110 -p1 -b .rh570851
230 # exportlib is gone, keep for now
231 # %%patch111 -p1 -b .exportlib
232 %patch112 -p1 -b .rh645544
233 %patch119 -p1 -b .rh693982
234 %patch123 -p1 -b .rh735103
235 %patch127 -p1 -b .forward
236 # no idea what this is good for, keep for now
237 # %%patch130 -p1 -b .libdb4
238 %patch131 -p1 -b .multlib-conflict
239 %patch137 -p1 -b .rrl
240
241 %if %{sdb}
242 %patch101 -p1 -b .old-api
243 mkdir bin/named-sdb
244 cp -r bin/named/* bin/named-sdb
245 %patch11 -p1 -b .sdbsrc
246 # SDB ldap
247 cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named-sdb
248 # SDB postgreSQL
249 cp -fp contrib/sdb/pgsql/pgsqldb.[ch] bin/named-sdb
250 # SDB sqlite
251 cp -fp contrib/sdb/sqlite/sqlitedb.[ch] bin/named-sdb
252 # SDB Berkeley DB - needs to be ported to DB4!
253 #cp -fp contrib/sdb/bdb/bdb.[ch] bin/named_sdb
254 # SDB dir
255 cp -fp contrib/sdb/dir/dirdb.[ch] bin/named-sdb
256 # SDB tools
257 mkdir -p bin/sdb_tools
258 cp -fp %{SOURCE30} bin/sdb_tools/ldap2zone.c
259 cp -fp %{SOURCE35} bin/sdb_tools/Makefile.in
260 #cp -fp contrib/sdb/bdb/zone2bdb.c bin/sdb_tools
261 cp -fp contrib/sdb/ldap/{zone2ldap.1,zone2ldap.c} bin/sdb_tools
262 cp -fp contrib/sdb/pgsql/zonetodb.c bin/sdb_tools
263 cp -fp contrib/sdb/sqlite/zone2sqlite.c bin/sdb_tools
264 %patch12 -p1 -b .sdb
265 %patch17 -p1 -b .fix_sdb_ldap
266 %patch62 -p1 -b .sdb-sqlite-bld
267 %endif
268 %patch133 -p1 -b .rh640538
269 %patch134 -p1 -b .rh669163
270 %patch135 -p1 -b .libidn4
271
272 %patch206 -p1 -b .varrun.droplet
273 %patch208 -p1 -b .prctl_set_dumpable.droplet
274 %patch209 -p1
275
276 %if %{geoip}
277 %patch300 -p1 -b .geoip
278 %endif
279
280 cp %{SOURCE20} keygen.c
281 cp %{SOURCE11} named.cache
282
283 %build
284 %serverbuild
285
286 # https://kb.isc.org/article/AA-01167
287 export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
288
289 # -DBIND9 due to P123
290 export CPPFLAGS="$CPPFLAGS -DDIG_SIGCHASE -DBIND9 -fPIC"
291 export STD_CDEFINES="$CPPFLAGS"
292
293 libtoolize --copy --force
294 aclocal -I m4 --force
295 autoheader --force
296 autoconf --force
297
298 # (oe) make queryperf from the contrib _before_ bind..., makes it
299 # easier to determine if it builds or not, it saves time...
300 pushd contrib/queryperf
301 rm -f configure
302 autoconf
303 %configure2_5x
304 %make CFLAGS="$CFLAGS"
305 popd
306
307 pushd contrib/query-loc-*
308 perl -pi -e "s|-lnsl|-lnsl -lresolv|g" configure*
309 rm -f configure
310 autoconf
311 %configure2_5x
312 %make CFLAGS="$CFLAGS"
313 popd
314
315 %if %{geoip}
316 export CFLAGS="$CFLAGS -DGEOIP"
317 export LDFLAGS="$LDFLAGS -lGeoIP"
318 %endif
319
320 %configure2_5x \
321 --localstatedir=/var \
322 --disable-openssl-version-check \
323 --enable-exportlib \
324 --with-export-libdir=%{_libdir} \
325 --with-export-includedir=%{_includedir} \
326 --enable-threads \
327 --enable-largefile \
328 --enable-ipv6 \
329 --enable-filter-aaaa \
330 --enable-epoll \
331 --with-openssl=%{_prefix} \
332 %if %{gssapi}
333 --with-gssapi=%{_prefix} --disable-isc-spnego \
334 %endif
335 --with-randomdev=/dev/urandom \
336 --with-libxml2=yes \
337 --enable-newstats \
338 --enable-rrl \
339 %if %{sdb}
340 --with-dlz-ldap=yes \
341 --with-dlz-postgres=yes \
342 --with-dlz-mysql=yes \
343 --with-dlz-filesystem=yes \
344 --with-dlz-stub=yes
345 %endif
346
347 # pkcs11 support requires a working backend, otherwise bind won't start
348 # http://blogs.sun.com/janp/
349 # http://sourceforge.net/projects/opencryptoki
350 #--with-pkcs11 \
351
352 make
353
354 gcc $CFLAGS -o dns-keygen keygen.c
355
356 #%%check
357 ## run the test suite
358 #make check
359
360 %install
361 %makeinstall_std
362
363 install -d -p %{buildroot}%{_libdir}/bind
364 install -d %{buildroot}/var/named/{slaves,data,dynamic}
365 install -d %{buildroot}/var/log
366
367 # chroot
368 install -d %{buildroot}%{chroot_prefix}/{dev,etc,var}
369 install -d %{buildroot}%{chroot_prefix}/var/{log,named,run/named,tmp}
370 install -d %{buildroot}%{chroot_prefix}/etc/{pki/dnssec-keys,named}
371 install -d %{buildroot}%{chroot_prefix}/%{_libdir}/bind
372 install -d %{buildroot}%{chroot_prefix}/%{_libdir}/openssl
373
374 # these are required to prevent them being erased during upgrade of previous
375 # versions that included them (rh bug #130121):
376 touch %{buildroot}%{chroot_prefix}/dev/null
377 touch %{buildroot}%{chroot_prefix}/dev/random
378 touch %{buildroot}%{chroot_prefix}/dev/zero
379 touch %{buildroot}%{chroot_prefix}/etc/localtime
380
381 install -m 755 %{SOURCE43} %{buildroot}%{_sbindir}/setup-named-chroot.sh
382
383 # systemd files
384 install -d -m 755 %{buildroot}%{_unitdir}
385 install -m 644 %{SOURCE41} %{buildroot}%{_unitdir}
386 install -m 644 %{SOURCE42} %{buildroot}%{_unitdir}
387
388 install -D -m 644 %{SOURCE40} %{buildroot}%{_tmpfilesdir}/named.conf
389
390 # main configuration
391 install -m 644 %{SOURCE100} %{buildroot}%{_sysconfdir}/named.conf
392 install -m 644 %{SOURCE102} %{buildroot}%{_sysconfdir}/named.root.key
393 install -m 644 %{SOURCE103} %{buildroot}%{_sysconfdir}/trusted-key.key
394 install -m 640 %{SOURCE105} %{buildroot}%{_sysconfdir}/rndc.key
395
396 mv %{buildroot}%{_sysconfdir}/bind.keys \
397 %{buildroot}%{_sysconfdir}/named.iscdlv.key
398 install -d 755 %{buildroot}/etc/named
399
400 install -d 755 %{buildroot}%{_localstatedir}/named
401 install -m 644 %{SOURCE110} %{buildroot}%{_localstatedir}/named/named.ca
402 install -m 644 %{SOURCE111} %{buildroot}%{_localstatedir}/named/named.localhost
403 install -m 644 %{SOURCE112} %{buildroot}%{_localstatedir}/named/named.empty
404 install -m 644 %{SOURCE113} %{buildroot}%{_localstatedir}/named/named.loopback
405
406 # other configuration
407 install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/named
408 install -D -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/logrotate.d/named
409
410 install -d -m 755 %{buildroot}%{_sysconfdir}/rsyslog.d/
411 cat > %{buildroot}%{_sysconfdir}/rsyslog.d/named.conf <<'EOF'
412 $AddUnixListenSocket /var/lib/named/dev/log
413 EOF
414
415 install -D -m 755 \
416 %{SOURCE8} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/13-named
417
418 %if %{sdb}
419 mkdir -p %{buildroot}/etc/openldap/schema
420 install -m 644 %{SOURCE36} %{buildroot}/etc/openldap/schema/dnszone.schema
421 install -m 644 %{SOURCE37} contrib/sdb/pgsql/
422
423 install -m 644 %{SOURCE31} %{buildroot}%{_mandir}/man1/ldap2zone.1
424 install -m 644 %{SOURCE32} %{buildroot}%{_mandir}/man8/named-sdb.8
425 install -m 644 %{SOURCE33} %{buildroot}%{_mandir}/man1/zonetodb.1
426 install -m 644 %{SOURCE34} %{buildroot}%{_mandir}/man1/zone2sqlite.1
427 %endif
428
429 # contrib
430 install -m0755 contrib/scripts/named-bootconf.sh %{buildroot}%{_sbindir}/named-bootconf
431 install -m0755 contrib/queryperf/queryperf %{buildroot}%{_bindir}/
432 cp contrib/queryperf/README README.queryperf
433
434 install -m0755 contrib/query-loc-*/query-loc %{buildroot}%{_bindir}/
435 install -m0644 contrib/query-loc-*/query-loc.1 %{buildroot}%{_mandir}/man1/
436 cp contrib/query-loc-*/ADDRESSES ADDRESSES.query-loc
437 cp contrib/query-loc-*/ALGO ALGO.query-loc
438 cp contrib/query-loc-*/README README.query-loc
439 cp contrib/query-loc-*/USAGE USAGE.query-loc
440
441 install -m 755 dns-keygen %{buildroot}%{_sbindir}/dns-keygen
442
443 install -d -m 755 %{buildroot}%{_docdir}/%{name}
444 install -d -m 755 %{buildroot}%{_docdir}/%{name}/arm
445 install -m 644 doc/arm/*.html %{buildroot}%{_docdir}/%{name}/arm
446 install -m 644 doc/arm/*.pdf %{buildroot}%{_docdir}/%{name}/arm
447 cp -pr doc/misc %{buildroot}%{_docdir}/%{name}
448 rm -f %{buildroot}%{_docdir}/%{name}/misc/Makefile*
449
450 %multiarch_binaries %{buildroot}%{_bindir}/isc-config.sh
451 %multiarch_binaries %{buildroot}%{_bindir}/bind9-config
452
453 cat > README.mga <<EOF
454 Mageia BIND SDB support:
455
456 Mageia ships named with compiled in Simplified Database Backend modules that
457 ISC provides in the "contrib/sdb" directory. Install bind-sdb package if you
458 want to use them. The SDB modules for LDAP, PostGreSQL, DirDB and SQLite are
459 compiled into named-sdb.
460 EOF
461
462 %triggerpostun -- bind < 9.9.2
463 # handle migration from previous setup after uninstallation of previous release
464 # so as to catch modified configuration files saved as .rpmsave
465 for f in named.conf trusted_networks_acl.conf logging.conf rndc.conf rndc.key; do
466 if [ -f %{chroot_prefix}/etc/$f.rpmsave ]; then
467 if [ -f %{_sysconfdir}/$f ]; then
468 mv %{_sysconfdir}/$f %{_sysconfdir}/$f.rpmnew
469 fi
470 mv %{chroot_prefix}/etc/$f.rpmsave %{_sysconfdir}/$f;
471 fi
472 done
473
474 if [ -d %{chroot_prefix}/var/named/master ]; then
475 mv %{chroot_prefix}/var/named/master %{_localstatedir}/named
476 fi
477
478 if [ -d %{chroot_prefix}/var/named/reverse ]; then
479 mv %{chroot_prefix}/var/named/reverse %{_localstatedir}/named
480 fi
481
482 %pre
483 %_pre_useradd named /var/lib/named /bin/false
484
485 %post
486 if [ "$1" -gt 1 ]; then
487 # upgrade
488 mv -f %{chroot_prefix}/var/named/* /var/named/
489 rm -rf %{chroot_prefix}%{_libdir}/openssl-*
490 fi
491 %_tmpfilescreate named
492 %_post_service named
493
494 # chroot devices
495 [ -e %{chroot_prefix}/dev/random ] || \
496 /bin/mknod %{chroot_prefix}/dev/random c 1 8
497 [ -e %{chroot_prefix}/dev/zero ] || \
498 /bin/mknod %{chroot_prefix}/dev/zero c 1 5
499 [ -e %{chroot_prefix}/dev/null ] || \
500 /bin/mknod %{chroot_prefix}/dev/null c 1 3
501 rm -f %{chroot_prefix}/etc/localtime
502 cp /etc/localtime %{chroot_prefix}/etc/localtime
503
504 if [ "$1" -eq 1 ]; then
505 # installation
506 MYKEY="`%{_sbindir}/dns-keygen`"
507 perl -pi -e "s|_MY_KEY_|$MYKEY|g" %{_sysconfdir}/rndc.key
508 fi
509
510 %preun
511 %_preun_service named
512
513 if [ "$1" -eq 0 ]; then
514 # uninstallation
515 rm -f %{chroot_prefix}/dev/{random,zero,null}
516 rm -f %{chroot_prefix}/etc/localtime
517 fi
518
519 %postun
520 %_postun_userdel named
521
522 %files
523 %doc CHANGES README README.mga FAQ COPYRIGHT
524 %if %{geoip}
525 %doc geodns.INSTALL geodns.named.conf-sample
526 %endif
527 %{_bindir}/delv
528 %{_sbindir}/arpaname
529 %{_sbindir}/ddns-confgen
530 %{_sbindir}/dns-keygen
531 %{_sbindir}/dnssec-checkds
532 %{_sbindir}/dnssec-coverage
533 %{_sbindir}/dnssec-dsfromkey
534 %{_sbindir}/dnssec-importkey
535 %{_sbindir}/dnssec-keyfromlabel
536 %{_sbindir}/dnssec-keygen
537 %{_sbindir}/dnssec-revoke
538 %{_sbindir}/dnssec-settime
539 %{_sbindir}/dnssec-signzone
540 %{_sbindir}/dnssec-verify
541 %{_sbindir}/genrandom
542 %{_sbindir}/isc-hmac-fixup
543 %{_sbindir}/lwresd
544 %{_sbindir}/named
545 %{_sbindir}/named-bootconf
546 %{_sbindir}/named-checkconf
547 %{_sbindir}/named-checkzone
548 %{_sbindir}/named-compilezone
549 %{_sbindir}/named-journalprint
550 %{_sbindir}/named-rrchecker
551 %{_sbindir}/nsec3hash
552 %{_sbindir}/rndc
553 %{_sbindir}/rndc-confgen
554 %{_sbindir}/setup-named-chroot.sh
555 %{_sbindir}/tsig-keygen
556 %{_mandir}/man1/arpaname.1.*
557 %{_mandir}/man1/delv.1*
558 %{_mandir}/man1/named-rrchecker.1*
559 %{_mandir}/man5/named.conf.5*
560 %{_mandir}/man5/rndc.conf.5*
561 %{_mandir}/man8/ddns-confgen.8.*
562 %{_mandir}/man8/dnssec-*.8*
563 %{_mandir}/man8/genrandom.8.*
564 %{_mandir}/man8/isc-hmac-fixup.8.*
565 %{_mandir}/man8/lwresd.8*
566 %{_mandir}/man8/named-*.8*
567 %{_mandir}/man8/named.8*
568 %{_mandir}/man8/nsec3hash.8.*
569 %{_mandir}/man8/rndc.8*
570 %{_mandir}/man8/rndc-confgen.8*
571 %{_mandir}/man8/tsig-keygen.8*
572 %{_libdir}/bind
573
574 # main configuration
575 %dir %{_sysconfdir}/named
576 %config(noreplace) %{_sysconfdir}/named.conf
577 %attr(-,root,named) %config(noreplace) %{_sysconfdir}/rndc.key
578 %attr(-,root,named) %config(noreplace) %{_sysconfdir}/named.iscdlv.key
579 %attr(-,root,named) %config(noreplace) %{_sysconfdir}/named.root.key
580
581 # other configuration
582 %config(noreplace) %{_sysconfdir}/sysconfig/named
583 %config(noreplace) %{_sysconfdir}/rsyslog.d/named.conf
584 %config(noreplace) %{_sysconfdir}/logrotate.d/named
585 %{_sysconfdir}/NetworkManager/dispatcher.d/13-named
586 %{_tmpfilesdir}/named.conf
587 %{_unitdir}/named.service
588
589 # variable directory
590 %dir %{_localstatedir}/named
591 %attr(-,named,named) %dir %{_localstatedir}/named/slaves
592 %attr(-,named,named) %dir %{_localstatedir}/named/data
593 %attr(-,named,named) %dir %{_localstatedir}/named/dynamic
594 %config(noreplace) %{_localstatedir}/named/named.ca
595 %config(noreplace) %{_localstatedir}/named/named.localhost
596 %config(noreplace) %{_localstatedir}/named/named.loopback
597 %config(noreplace) %{_localstatedir}/named/named.empty
598
599 # the chroot
600 %ghost %{chroot_prefix}/dev/null
601 %ghost %{chroot_prefix}/dev/random
602 %ghost %{chroot_prefix}/dev/zero
603 %ghost %{chroot_prefix}/etc/localtime
604 %dir %{chroot_prefix}
605 %dir %{chroot_prefix}/dev
606 %dir %{chroot_prefix}/etc
607 %dir %{chroot_prefix}/etc/named
608 %dir %{chroot_prefix}/etc/pki
609 %dir %{chroot_prefix}/etc/pki/dnssec-keys
610 %dir %{chroot_prefix}/var
611 %dir %{chroot_prefix}/var/run
612 %dir %{chroot_prefix}/var/named
613 %dir %{chroot_prefix}/usr
614 %dir %{chroot_prefix}/%{_libdir}
615 %dir %{chroot_prefix}/%{_libdir}/bind
616 %dir %{chroot_prefix}/%{_libdir}/openssl
617
618 %attr(-,named,named) %dir %{chroot_prefix}/var/run/named
619 %attr(-,named,named) %dir %{chroot_prefix}/var/tmp
620 %attr(-,named,named) %dir %{chroot_prefix}/var/log
621
622
623 %files devel
624 %doc CHANGES README
625 %multiarch %{multiarch_bindir}/isc-config.sh
626 %multiarch %{multiarch_bindir}/bind9-config
627 %{_bindir}/isc-config.sh
628 %{_bindir}/bind9-config
629 %{_includedir}/*
630 %{_libdir}/*.a
631 %{_mandir}/man1/bind9-config.1*
632 %{_mandir}/man1/isc-config.sh.1*
633 %{_mandir}/man3/lwres*.3*
634
635 %files utils
636 %doc README COPYRIGHT *.query-loc *.queryperf
637 %{_bindir}/dig
638 %{_bindir}/host
639 %{_bindir}/nslookup
640 %{_bindir}/nsupdate
641 %{_bindir}/queryperf
642 %{_bindir}/query-loc
643 %{_mandir}/man1/host.1*
644 %{_mandir}/man1/dig.1*
645 %{_mandir}/man1/nslookup.1*
646 %{_mandir}/man1/nsupdate.1*
647 %{_mandir}/man1/query-loc.1*
648 %{_sysconfdir}/trusted-key.key
649
650 %files doc
651 %{_docdir}/%{name}
652
653 %if %{sdb}
654 %files sdb
655 %doc contrib/sdb/ldap/README.ldap
656 %doc contrib/sdb/ldap/INSTALL.ldap
657 %doc contrib/sdb/pgsql/README.sdb_pgsql
658 %{_unitdir}/named-sdb.service
659 %{_mandir}/man1/zone2ldap.1*
660 %{_mandir}/man1/ldap2zone.1*
661 %{_mandir}/man1/zonetodb.1*
662 %{_mandir}/man1/zone2sqlite.1*
663 %{_mandir}/man8/named-sdb.8*
664 %config(noreplace) %{_sysconfdir}/openldap/schema/dnszone.schema
665 %{_sbindir}/named-sdb
666 %{_sbindir}/zone2ldap
667 %{_sbindir}/ldap2zone
668 %{_sbindir}/zonetodb
669 %{_sbindir}/zone2sqlite
670 %endif

  ViewVC Help
Powered by ViewVC 1.1.30