/[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 460901 - (show annotations) (download)
Tue Jul 30 08:22:54 2013 UTC (7 years, 2 months ago) by oden
File size: 20413 byte(s)
- more deps

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

  ViewVC Help
Powered by ViewVC 1.1.28