/[packages]/cauldron/bind/current/SPECS/bind.spec
ViewVC logotype

Annotation of /cauldron/bind/current/SPECS/bind.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 346903 - (hide annotations) (download)
Fri Jan 11 13:26:26 2013 UTC (11 years, 2 months ago) by umeabot
File size: 19820 byte(s)
Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
1 guillomovitch 139898 %define sdb 1
2 ennael 36772 %define geoip 0
3     %define gssapi 1
4    
5 guillomovitch 139898 %{?_with_sdbp: %{expand: %%global sdb 1}}
6     %{?_without_sdb: %{expand: %%global sdb 0}}
7 ennael 36772 %{?_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 guillomovitch 310111 %define major_version 9.9.2
13 oden 326885 %define patch_version P1
14 guillomovitch 136524 %define dashpatch %{?patch_version:-%patch_version}%nil
15     %define dotpatch %{?patch_version:.%patch_version}%nil
16 guillomovitch 316758 %define chroot_prefix /var/lib/named
17 pterjan 95469
18 guillomovitch 220366 Name: bind
19     Version: %{major_version}%{dotpatch}
20 umeabot 346903 Release: %mkrel 3
21 ennael 36772 Summary: A DNS (Domain Name System) server
22 pterjan 95469 License: ISC
23 ennael 36772 Group: System/Servers
24     URL: http://www.isc.org/products/BIND/
25 guillomovitch 136524 Source0: ftp://ftp.isc.org/isc/%{name}9/%{major_version}%{dashpatch}/%{name}-%{major_version}%{dashpatch}.tar.gz
26 guillomovitch 276006 Source1: ftp://ftp.isc.org/isc/%{name}9/%{major_version}%{dashpatch}/%{name}-%{major_version}%{dashpatch}.tar.gz.sha512.asc
27 guillomovitch 316758
28     Source6: named.sysconfig
29     Source7: named.logrotate
30 guillomovitch 220366 Source8: named.NetworkManager
31 ennael 36772 Source11: ftp://ftp.internic.net/domain/named.cache
32 guillomovitch 316758 Source20: bind-keygen.c
33     Source40: bind.tmpfiles
34     Source41: named.service
35     Source42: named-sdb.service
36     Source43: setup-named-chroot.sh
37 guillomovitch 136519
38 guillomovitch 316758 # sdb
39 guillomovitch 139898 Source30: ldap2zone.c
40     Source31: ldap2zone.1
41     Source32: named-sdb.8
42     Source33: zonetodb.1
43     Source34: zone2sqlite.1
44 guillomovitch 316758 Source35: bind-9.3.1rc1-sdb_tools-Makefile.in
45     Source36: dnszone.schema
46     Source37: README.sdb_pgsql
47 guillomovitch 139898
48 guillomovitch 316758 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 guillomovitch 136519 # fedora patches
58 guillomovitch 316758 Patch5: bind-nonexec.patch
59     Patch10: bind-9.5-PIE.patch
60 guillomovitch 136519 Patch72: bind-9.5-dlz-64bit.patch
61     Patch87: bind-9.5-parallel-build.patch
62     Patch99: bind-96-libtool2.patch
63 guillomovitch 139898 Patch101: bind-96-old-api.patch
64 guillomovitch 136519 Patch102: bind-95-rh452060.patch
65     Patch106: bind93-rh490837.patch
66 guillomovitch 256011 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 guillomovitch 310111 Patch130: bind-9.9.2-dlz-libdb4.patch
77     Patch131: bind-9.9.1-P2-multlib-conflict.patch
78     Patch132: bind99-stat.patch
79 guillomovitch 136519
80 guillomovitch 139898 # 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 guillomovitch 256011 # needs inpection
86     Patch17: bind-9.3.2b1-fix_sdb_ldap.patch
87     Patch104: bind-96-dyndb.patch
88    
89 guillomovitch 136519 # 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 ennael 36772 # (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 tmb 233607 Requires(post): rpm-helper >= 0.24.8-1
102     Requires(preun): rpm-helper >= 0.24.8-1
103 ennael 36772 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 guillomovitch 136529 BuildRequires: libxml2-devel
110 ennael 36772 %if %{gssapi}
111     BuildRequires: krb5-devel
112     %endif
113 guillomovitch 136529 %if %{geoip}
114     BuildRequires: libgeoip-devel
115     %endif
116 guillomovitch 139898 %if %{sdb}
117 guillomovitch 136529 BuildRequires: mysql-devel
118     BuildRequires: openldap-devel
119 guillomovitch 139898 BuildRequires: postgresql-devel
120     BuildRequires: sqlite3-devel
121 guillomovitch 136529 %endif
122 ennael 36772
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 guillomovitch 139898 --with sdb Build with database backends and DLZ support (enabled by default)
154     --with geoip Build with GeoIP support (disabled per default)
155 ennael 36772
156 guillomovitch 139898 %if %{sdb}
157     %package sdb
158     Summary: BIND server with database backends and DLZ support
159 guillomovitch 143347 Group: System/Servers
160 guillomovitch 139898 Requires: bind
161 tmb 233607 Requires(post): rpm-helper >= 0.24.8-1
162     Requires(preun): rpm-helper >= 0.24.8-1
163 guillomovitch 139898
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 ennael 36772 %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 fwang 316358 Group: Documentation
201 fwang 179999 BuildArch: noarch
202 ennael 36772
203     %description doc
204     The bind-devel package contains the documentation for BIND.
205    
206     %prep
207 guillomovitch 316758 %setup -q -n %{name}-%{major_version}%{dashpatch}
208 ennael 36772
209 guillomovitch 310111 %patch5 -p1 -b .nonexec
210     %patch10 -p1 -b .PIE
211    
212 guillomovitch 139898 %patch104 -p1 -b .dyndb
213 guillomovitch 256011 %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 ennael 36772
222 guillomovitch 256011 %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 guillomovitch 310111 %patch130 -p1 -b .libdb4
237     %patch131 -p1 -b .multlib-conflict
238 guillomovitch 256011
239 guillomovitch 139898 %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 guillomovitch 316758 cp -fp %{SOURCE35} bin/sdb_tools/Makefile.in
258 guillomovitch 139898 #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 ennael 36772 %endif
266 guillomovitch 310111 %patch132 -p1 -b .stat
267 ennael 36772
268 guillomovitch 136519 %patch206 -p0 -b .varrun.droplet
269     %patch208 -p0 -b .prctl_set_dumpable.droplet
270 ennael 36772
271     %if %{geoip}
272     %patch300 -p1 -b .geoip
273     %endif
274    
275 guillomovitch 316758 cp %{SOURCE20} keygen.c
276 ennael 36772 cp %{SOURCE11} named.cache
277    
278     %build
279     %serverbuild
280    
281     export CPPFLAGS="$CPPFLAGS -DDIG_SIGCHASE"
282     export STD_CDEFINES="$CPPFLAGS"
283    
284 guillomovitch 136264 libtoolize --copy --force
285     aclocal -I m4 --force
286     autoheader --force
287     autoconf --force
288 ennael 36772
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 guillomovitch 139898 export CFLAGS="$CFLAGS -DGEOIP"
308 ennael 36772 export LDFLAGS="$LDFLAGS -lGeoIP"
309     %endif
310    
311 guillomovitch 136293 %configure2_5x \
312 ennael 36772 --localstatedir=/var \
313     --disable-openssl-version-check \
314 guillomovitch 136263 --enable-exportlib \
315     --with-export-libdir=%{_libdir} \
316     --with-export-includedir=%{_includedir} \
317 ennael 36772 --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 guillomovitch 139898 %if %{sdb}
329     --with-dlz-ldap=yes \
330 ennael 36772 --with-dlz-postgres=yes \
331     --with-dlz-mysql=yes \
332     --with-dlz-filesystem=yes \
333     --with-dlz-stub=yes
334 guillomovitch 139898 %endif
335 ennael 36772
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 guillomovitch 136692 make
342 ennael 36772
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 guillomovitch 316758 install -d -p %{buildroot}%{_libdir}/bind
355     install -d %{buildroot}/var/named/{slaves,data,dynamic}
356     install -d %{buildroot}/var/log
357 ennael 36772
358 guillomovitch 316758 # 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 guillomovitch 317268 install -d %{buildroot}%{chroot_prefix}/%{_libdir}/openssl
364 ennael 36772
365 guillomovitch 316758 # 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 ennael 36772
372 guillomovitch 316758 install -m 755 %{SOURCE43} %{buildroot}%{_sbindir}/setup-named-chroot.sh
373 ennael 36772
374 guillomovitch 316758 # 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 colin 321818 install -D -m 644 %{SOURCE40} %{buildroot}%{_tmpfilesdir}/named.conf
380 guillomovitch 316758
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 guillomovitch 222546 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 guillomovitch 316758 install -D -m 755 \
407     %{SOURCE8} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/13-named
408 guillomovitch 220366
409 guillomovitch 139898 %if %{sdb}
410 guillomovitch 316758 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 ennael 36772
414 guillomovitch 220366 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 ennael 36772 %endif
419    
420 guillomovitch 316758 # 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 ennael 36772
425 guillomovitch 316758 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 ennael 36772
432 guillomovitch 316758 install -m 755 dns-keygen %{buildroot}%{_sbindir}/dns-keygen
433 ennael 36772
434 guillomovitch 139898 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 ennael 36772
441     %multiarch_binaries %{buildroot}%{_bindir}/isc-config.sh
442    
443 guillomovitch 317273 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 guillomovitch 326686 %triggerpostun -- bind < 9.9.2
453     # handle migration from previous setup after uninstallation of previous release
454     # so as to catch modified configuration files saved as .rpmsave
455 guillomovitch 319129 for f in named.conf trusted_networks_acl.conf logging.conf rndc.conf rndc.key; do
456 guillomovitch 326686 if [ -f %{chroot_prefix}/etc/$f.rpmsave ]; then
457     if [ -f %{_sysconfdir}/$f ]; then
458     mv %{_sysconfdir}/$f %{_sysconfdir}/$f.rpmnew
459     fi
460     mv %{chroot_prefix}/etc/$f.rpmsave %{_sysconfdir}/$f;
461 guillomovitch 316758 fi
462 ennael 36772 done
463    
464 guillomovitch 319120 if [ -d %{chroot_prefix}/var/named/master ]; then
465 guillomovitch 319149 mv %{chroot_prefix}/var/named/master %{_localstatedir}/named
466 guillomovitch 319120 fi
467    
468     if [ -d %{chroot_prefix}/var/named/reverse ]; then
469 guillomovitch 319149 mv %{chroot_prefix}/var/named/reverse %{_localstatedir}/named
470 guillomovitch 319120 fi
471    
472 guillomovitch 326686 %pre
473     %_pre_useradd named /var/lib/named /bin/false
474    
475 ennael 36772 %post
476 colin 321818 %_tmpfilescreate named
477 guillomovitch 319148 %_post_service named
478    
479     # chroot devices
480     [ -e %{chroot_prefix}/dev/random ] || \
481     /bin/mknod %{chroot_prefix}/dev/random c 1 8
482     [ -e %{chroot_prefix}/dev/zero ] || \
483     /bin/mknod %{chroot_prefix}/dev/zero c 1 5
484     [ -e %{chroot_prefix}/dev/null ] || \
485     /bin/mknod %{chroot_prefix}/dev/null c 1 3
486     rm -f %{chroot_prefix}/etc/localtime
487     cp /etc/localtime %{chroot_prefix}/etc/localtime
488    
489     if [ "$1" -eq 1 ]; then
490     # installation
491 ennael 36772 MYKEY="`%{_sbindir}/dns-keygen`"
492 guillomovitch 319148 perl -pi -e "s|_MY_KEY_|$MYKEY|g" %{_sysconfdir}/rndc.key
493 ennael 36772 fi
494    
495     %preun
496     %_preun_service named
497 guillomovitch 319148
498 guillomovitch 316758 if [ "$1" -eq 0 ]; then
499 guillomovitch 319148 # uninstallation
500 guillomovitch 316758 rm -f %{chroot_prefix}/dev/{random,zero,null}
501     rm -f %{chroot_prefix}/etc/localtime
502     fi
503 ennael 36772
504     %postun
505     %_postun_userdel named
506    
507     %files
508 guillomovitch 317273 %doc CHANGES README README.mga FAQ COPYRIGHT
509 ennael 36772 %if %{geoip}
510     %doc geodns.INSTALL geodns.named.conf-sample
511     %endif
512 guillomovitch 221261 %{_sbindir}/setup-named-chroot.sh
513 ennael 36772 %{_sbindir}/arpaname
514     %{_sbindir}/ddns-confgen
515     %{_sbindir}/dns-keygen
516     %{_sbindir}/dnssec-dsfromkey
517     %{_sbindir}/dnssec-keyfromlabel
518     %{_sbindir}/dnssec-keygen
519     %{_sbindir}/dnssec-revoke
520     %{_sbindir}/dnssec-settime
521     %{_sbindir}/dnssec-signzone
522 guillomovitch 310111 %{_sbindir}/dnssec-checkds
523     %{_sbindir}/dnssec-verify
524 ennael 36772 %{_sbindir}/genrandom
525     %{_sbindir}/isc-hmac-fixup
526     %{_sbindir}/lwresd
527     %{_sbindir}/named
528     %{_sbindir}/named-bootconf
529     %{_sbindir}/named-checkconf
530     %{_sbindir}/named-checkzone
531     %{_sbindir}/named-compilezone
532     %{_sbindir}/named-journalprint
533     %{_sbindir}/nsec3hash
534     %{_sbindir}/rndc
535     %{_sbindir}/rndc-confgen
536     %{_mandir}/man1/arpaname.1.*
537     %{_mandir}/man5/named.conf.5*
538     %{_mandir}/man5/rndc.conf.5*
539     %{_mandir}/man8/ddns-confgen.8.*
540     %{_mandir}/man8/dnssec-*.8*
541     %{_mandir}/man8/genrandom.8.*
542     %{_mandir}/man8/isc-hmac-fixup.8.*
543     %{_mandir}/man8/lwresd.8*
544     %{_mandir}/man8/named-*.8*
545     %{_mandir}/man8/named.8*
546     %{_mandir}/man8/nsec3hash.8.*
547     %{_mandir}/man8/rndc.8*
548     %{_mandir}/man8/rndc-confgen.8*
549 guillomovitch 316758 %{_libdir}/bind
550    
551     # main configuration
552     %dir %{_sysconfdir}/named
553     %config(noreplace) %{_sysconfdir}/named.conf
554     %attr(-,root,named) %config(noreplace) %{_sysconfdir}/rndc.key
555     %attr(-,root,named) %config(noreplace) %{_sysconfdir}/named.iscdlv.key
556     %attr(-,root,named) %config(noreplace) %{_sysconfdir}/named.root.key
557    
558     # other configuration
559     %config(noreplace) %{_sysconfdir}/sysconfig/named
560     %config(noreplace) %{_sysconfdir}/rsyslog.d/named.conf
561     %config(noreplace) %{_sysconfdir}/logrotate.d/named
562     %{_sysconfdir}/NetworkManager/dispatcher.d/13-named
563 colin 321818 %{_tmpfilesdir}/named.conf
564 guillomovitch 316758 %{_unitdir}/named.service
565    
566     # variable directory
567     %dir %{_localstatedir}/named
568     %attr(-,named,named) %dir %{_localstatedir}/named/slaves
569     %attr(-,named,named) %dir %{_localstatedir}/named/data
570     %attr(-,named,named) %dir %{_localstatedir}/named/dynamic
571     %config(noreplace) %{_localstatedir}/named/named.ca
572     %config(noreplace) %{_localstatedir}/named/named.localhost
573     %config(noreplace) %{_localstatedir}/named/named.loopback
574     %config(noreplace) %{_localstatedir}/named/named.empty
575    
576 ennael 36772 # the chroot
577 guillomovitch 316758 %ghost %{chroot_prefix}/dev/null
578     %ghost %{chroot_prefix}/dev/random
579     %ghost %{chroot_prefix}/dev/zero
580     %ghost %{chroot_prefix}/etc/localtime
581     %dir %{chroot_prefix}
582     %dir %{chroot_prefix}/dev
583     %dir %{chroot_prefix}/etc
584     %dir %{chroot_prefix}/etc/named
585     %dir %{chroot_prefix}/etc/pki
586     %dir %{chroot_prefix}/etc/pki/dnssec-keys
587     %dir %{chroot_prefix}/var
588     %dir %{chroot_prefix}/var/run
589     %dir %{chroot_prefix}/var/named
590     %dir %{chroot_prefix}/usr
591     %dir %{chroot_prefix}/%{_libdir}
592     %dir %{chroot_prefix}/%{_libdir}/bind
593 guillomovitch 317268 %dir %{chroot_prefix}/%{_libdir}/openssl
594 ennael 36772
595 guillomovitch 316758 %attr(-,named,named) %dir %{chroot_prefix}/var/run/named
596     %attr(-,named,named) %dir %{chroot_prefix}/var/tmp
597     %attr(-,named,named) %dir %{chroot_prefix}/var/log
598    
599    
600 ennael 36772 %files devel
601     %doc CHANGES README
602     %multiarch %{multiarch_bindir}/isc-config.sh
603     %{_bindir}/isc-config.sh
604     %{_includedir}/*
605     %{_libdir}/*.a
606     %{_mandir}/man1/isc-config.sh.1*
607     %{_mandir}/man3/lwres*.3*
608    
609     %files utils
610     %doc README COPYRIGHT *.query-loc *.queryperf
611     %{_bindir}/dig
612     %{_bindir}/host
613     %{_bindir}/nslookup
614     %{_bindir}/nsupdate
615     %{_bindir}/queryperf
616     %{_bindir}/query-loc
617     %{_mandir}/man1/host.1*
618     %{_mandir}/man1/dig.1*
619     %{_mandir}/man1/nslookup.1*
620     %{_mandir}/man1/nsupdate.1*
621     %{_mandir}/man1/query-loc.1*
622 guillomovitch 316758 %{_sysconfdir}/trusted-key.key
623 ennael 36772
624     %files doc
625 guillomovitch 139898 %{_docdir}/%{name}
626 ennael 36772
627 guillomovitch 139898 %if %{sdb}
628     %files sdb
629 guillomovitch 316758 %doc contrib/sdb/ldap/README.ldap
630     %doc contrib/sdb/ldap/INSTALL.ldap
631     %doc contrib/sdb/pgsql/README.sdb_pgsql
632 guillomovitch 220366 %{_unitdir}/named-sdb.service
633 guillomovitch 139898 %{_mandir}/man1/zone2ldap.1*
634     %{_mandir}/man1/ldap2zone.1*
635     %{_mandir}/man1/zonetodb.1*
636     %{_mandir}/man1/zone2sqlite.1*
637     %{_mandir}/man8/named-sdb.8*
638 guillomovitch 316758 %config(noreplace) %{_sysconfdir}/openldap/schema/dnszone.schema
639 guillomovitch 139898 %{_sbindir}/named-sdb
640     %{_sbindir}/zone2ldap
641     %{_sbindir}/ldap2zone
642     %{_sbindir}/zonetodb
643     %{_sbindir}/zone2sqlite
644     %endif

  ViewVC Help
Powered by ViewVC 1.1.30