/[packages]/cauldron/bind/current/SPECS/bind.spec
ViewVC logotype

Contents of /cauldron/bind/current/SPECS/bind.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 406905 - (show annotations) (download)
Sun Mar 31 22:12:46 2013 UTC (11 years ago) by luigiwalser
File size: 19953 byte(s)
- 9.9.2-P2 (fixes CVE-2013-2266)
- add patch from redhat to fix CVE-2012-5689

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

  ViewVC Help
Powered by ViewVC 1.1.30