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

  ViewVC Help
Powered by ViewVC 1.1.30