/[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 635753 - (show annotations) (download)
Thu Jun 12 07:51:45 2014 UTC (9 years, 10 months ago) by oden
File size: 20936 byte(s)
- 9.10.0-P2 (fixes CVE-2014-3859, CVE-2014-3214)

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

  ViewVC Help
Powered by ViewVC 1.1.30