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

  ViewVC Help
Powered by ViewVC 1.1.30