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

  ViewVC Help
Powered by ViewVC 1.1.30