]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
- fixed chown syntax in init script, strict internal deps, release 4
[packages/bind.git] / bind.spec
1 #
2 # Conditional build:
3 %bcond_without  ssl     # build without OpenSSL support
4 %bcond_without  ipv6    # build without IPv6 support
5 %bcond_without  ldap    # build without LDAP support
6 #
7 Summary:        BIND - DNS name server
8 Summary(de):    BIND - DNS-Namenserver
9 Summary(es):    BIND - Servidor de nombres DNS
10 Summary(fr):    BIND - serveur de noms DNS
11 Summary(pl):    BIND - serwer nazw DNS
12 Summary(pt_BR): BIND - Servidor de nomes DNS
13 Summary(ru):    BIND - cÅÒ×ÅÒ ÓÉÓÔÅÍÙ ÄÏÍÅÎÎÙÈ ÉÍÅΠ(DNS)
14 Summary(tr):    DNS alan adý sunucusu
15 Summary(uk):    BIND - cÅÒ×ÅÒ ÓÉÓÔÅÍÉ ÄÏÍÅÎÎÉÈ ¦ÍÅΠ(DNS)
16 Summary(zh_CN): Internet ÓòÃû·þÎñÆ÷
17 Name:           bind
18 Version:        9.2.3
19 Release:        4
20 Epoch:          5
21 License:        BSD-like
22 Group:          Networking/Daemons
23 Source0:        ftp://ftp.isc.org/isc/bind9/%{version}/%{name}-%{version}.tar.gz
24 # Source0-md5:  94ae7b0f20dc406fdbbf6fac5d57b32f
25 Source1:        %{name}-conf.tar.gz
26 # Source1-md5:  8ee77729f806fcd548fe0cceb34b4a06
27 Source2:        named.init
28 Source3:        named.sysconfig
29 Source4:        named.logrotate
30 Source5:        nslookup.8
31 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
32 # Source6-md5:  35b1dfaa12615c9802126ee833e0e7f7
33 Source7:        http://www.venaas.no/ldap/bind-sdb/dnszone-schema.txt
34 # Source7-md5:  c9a17d8cf8c1a6d4fad6138a1c3f36c4
35 Patch0:         %{name}-time.patch
36 Patch1:         %{name}-autoconf.patch
37 Patch2:         %{name}-includedir-libbind.patch
38 Patch3:         %{name}-link.patch
39 Patch4:         %{name}-pmake.patch
40 # from idnkit
41 Patch5:         %{name}-idn.patch
42 Patch6:         %{name}-sdb-ldap.patch
43 URL:            http://www.isc.org/products/BIND/bind9.html
44 BuildRequires:  autoconf
45 BuildRequires:  automake
46 BuildRequires:  bison
47 BuildRequires:  flex
48 BuildRequires:  libtool
49 BuildRequires:  idnkit-devel
50 %{?with_ldap:BuildRequires:     openldap-devel}
51 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7c}
52 PreReq:         %{name}-libs = %{epoch}:%{version}-%{release}
53 PreReq:         rc-scripts >= 0.2.0
54 Requires(pre):  fileutils
55 Requires(pre):  /bin/id
56 Requires(pre):  /usr/bin/getgid
57 Requires(pre):  /usr/sbin/groupadd
58 Requires(pre):  /usr/sbin/useradd
59 Requires(postun):       /usr/sbin/groupdel
60 Requires(postun):       /usr/sbin/userdel
61 Requires(post,preun):   /sbin/chkconfig
62 Requires:       psmisc >= 20.1
63 Provides:       nameserver
64 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65 Obsoletes:      caching-nameserver
66 Obsoletes:      nameserver
67 Conflicts:      %{name}-chroot
68 Conflicts:      kernel < 2.2.18
69
70 %description
71 BIND (Berkeley Internet Name Domain) is an implementation of the DNS
72 (Domain Name System) protocols. BIND includes a DNS server (named),
73 which resolves host names to IP addresses, and a resolver library
74 (routines for applications to use when interfacing with DNS). A DNS
75 server allows clients to name resources or objects and share the
76 information with other network machines. The named DNS server can be
77 used on workstations as a caching name server, but is generally only
78 needed on one machine for an entire network. Note that the
79 configuration files for making BIND act as a simple caching nameserver
80 are included in the caching-nameserver package.
81
82 Install the bind package if you need a DNS server for your network. If
83 you want bind to act a caching name server, you will also need to
84 install the caching-nameserver package.
85
86 %description -l de
87 Enthält den Namen-Server, der zum Umwandeln von Host-Namen in
88 IP-Adressen und umgekehrt verwendet wird. Er kann auf Workstations als
89 caching Namen-Server verwendet werden, ist aber i.d.R. nur auf einem
90 Recher des Netzwerks erforderlich.
91
92 %description -l es
93 Incluye el servidor de nombres (DNS), que se usa para traducir nombres
94 para IP (y viceversa). Puede ser usado en estaciones de trabajo como
95 un servidor de nombres caché, pero generalmente sólo hace falta en una
96 máquina para toda la red.
97
98 %description -l fr
99 Contient le serveur de noms named, utilisé pour définir les
100 traductions nom d'hôte vers adresse IP (et vice versa). Il peut être
101 utilisé sur les stations de travail comme serveur de nom en cache mais
102 n'est souvent nécessaire que sur une machine pour un réseau entier.
103
104 %description -l pl
105 Pakiet ten zawiera demona named, który s³u¿y do zmieniania nazw
106 komputerów na numery IP i odwrotnie. Mo¿e byæ on u¿ywany na stacjach
107 roboczych jako bufor odwo³añ do serwisu nazw (caching name server),
108 ale generalnie wystarczy tylko jedna jednostka wyposa¿ona w ten
109 program na fragment sieci.
110
111 %description -l pt_BR
112 Inclui o servidor de nomes (DNS), que é usado para traduzir nomes para
113 IP (e vice-versa). Pode ser usado em estações de trabalho como um
114 servidor de nomes cache, mas geralmente só é necessário em uma máquina
115 para toda a rede.
116
117 %description -l ru
118 BIND (Berkeley Internet Name Domain) Ñ×ÌÑÅÔÓÑ ÒÅÁÌÉÚÁÃÉÅÊ ÐÒÏÔÏËÏÌÏ×
119 DNS (Domain Name System). BIND ×ËÌÀÞÁÅÔ DNS ÓÅÒ×ÅÒ (named) É
120 ÂÉÂÌÉÏÔÅËÕ "ÒÅÚÏÌ×ÅÒÁ" (ÐÏÄÐÒÏÇÒÁÍÍÙ ÄÌÑ ÐÒÉÌÏÖÅÎÉÊ, ÞÅÒÅÚ ËÏÔÏÒÙÅ
121 ÐÒÏÉÓÈÏÄÑÔ ÏÂÒÁÝÅÎÉÑ Ë DNS). DNS ÓÅÒ×ÅÒ named ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ
122 ÎÁ ÒÁÂÏÞÉÈ ÓÔÁÎÃÉÑÈ ËÁË ËÅÛÉÒÕÀÝÉÊ ÓÅÒ×ÅÒ, ÎÏ ÏÂÙÞÎÏ ÚÁÐÕÓËÁÅÔÓÑ ÎÁ
123 ÏÄÎÏÊ ÍÁÛÉÎÅ × ÌÏËÁÌØÎÏÊ ÓÅÔÉ É ÉÓÐÏÌØÚÕÅÔÓÑ ÏÓÔÁÌØÎÙÍÉ ÍÁÛÉÎÁÍÉ (ÜÔÉÍ
124 ÄÏÓÔÉÇÁÅÔÓÑ ÎÁÍÎÏÇÏ ÂÏÌÅÅ ÜÆÆÅËÔÉ×ÎÏÅ ËÅÛÉÒÏ×ÁÎÉÅ).
125
126 ëÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ, ÎÁÓÔÒÁÉ×ÁÀÝÉÅ BIND ÎÁ ÒÁÂÏÔÕ × ÒÅÖÉÍÅ ÐÒÏÓÔÏÇÏ
127 ËÅÛÉÒÕÀÝÅÇÏ ÓÅÒ×ÅÒÁ, ×ËÌÀÞÅÎÙ × ÐÁËÅÔ caching-nameserver.
128
129 %description -l tr
130 Bu paket, makina adýný IP numarasýna (ya da tersi) çevirmek için
131 kullanýlan alan adý sunucusunu içerir. Ýþ istasyonlarýnda bir önbellek
132 isim sunucusu olarak da kullanýlabilir ama genellikle bütün bir að
133 için sadece bir makina üzerinde kurulur.
134
135 %description -l uk
136 BIND (Berkeley Internet Name Domain) ¤ ÒÅÁ̦ÚÁæ¤À ÐÒÏÔÏËÏ̦נDNS
137 (Domain Name System). BIND ×ËÌÀÞÁ¤ DNS ÓÅÒ×ÅÒ (named) ÔÁ Â¦Â̦ÏÔÅËÕ
138 "ÒÅÚÏÌ×ÅÒÁ" (ЦÄÐÒÏÇÒÁÍÉ, ÝÏ ÚÁÂÅÚÐÅÞÕÀÔØ ¦ÎÔÅÒÆÅÊÓ ÄÏ DNS). DNS
139 ÓÅÒ×ÅÒ named ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÎÁ ÒÏÂÏÞÉÈ ÓÔÁÎæÑÈ ÑË ËÅÛÉÒÕÀÞÉÊ
140 ÓÅÒ×ÅÒ, ÁÌÅ Ú×ÉÞÁÊÎÏ ÚÁÐÕÓËÁ¤ÔØÓÑ ÎÁ ÏÄΦʠÍÁÛÉΦ × ÌÏËÁÌØΦʠÍÅÒÅÖ¦ ¦
141 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ¦ÎÛÉÍÉ (ÃÉÍ ÄÏÓÑÇÁ¤ÔØÓѠ¦ÌØÛÁ ÅÆÅËÔÉ×ΦÓÔØ
142 ×ÉËÏÒÉÓÔÁÎÎÑ ËÅÛÕ).
143
144 ëÏÎƦÇÕÒÁæÊΦ ÆÁÊÌÉ, ÝÁ ÎÁÓÔÒÏÀÀÔØ BIND ÎÁ ÒÏÂÏÔÕ × ÒÅÖÉͦ ÐÒÏÓÔÏÇÏ
145 ËÅÛÉÒÕÀÞÏÇÏ ÓÅÒ×ÅÒÕ, ×ËÌÀÞÅΦ × ÐÁËÅÔ caching-nameserver.
146
147 %package utils
148 Summary:        DNS utils - host, dig, dnsquery, nslookup
149 Summary(de):    DNS-Utils - Host, Dig, Dnsquery, Nslookup
150 Summary(es):    Utilitarios DNS - host, dig, dnsquery y nslookup
151 Summary(fr):    Utilitaires DNS - host, dig, dnsquery, nslookup
152 Summary(pl):    Narzêdzia DNS - host, dig, dnsquery, nslookup
153 Summary(pt_BR): Utilitários DNS - host, dig, dnsquery e nslookup
154 Summary(ru):    õÔÉÌÉÔÙ ÄÌÑ ÐÏÓÙÌËÉ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÅÒÁÍ DNS
155 Summary(tr):    DNS araçlarý - host, dig, dnsquery, nslookup
156 Summary(uk):    õÔÉ̦ÔÉ ÄÌÑ ÎÁÄÓÉÌÁÎÎÑ ÚÁÐÉԦנÄÏ ÓÅÒ×ÅҦנDNS
157 Summary(zh_CN): Internet ÓòÃû·þÎñÆ÷ʵÓù¤¾ß
158 Group:          Networking/Utilities
159 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
160
161 %description utils
162 Bind-utils contains a collection of utilities for querying DNS (Domain
163 Name Service) name servers to find out information about Internet
164 hosts. These tools will provide you with the IP addresses for given
165 host names, as well as other information about registered domains and
166 network addresses.
167
168 You should install bind-utils if you need to get information from DNS
169 name servers.
170
171 %description utils -l de
172 Dienstprogrammsammlung zum Abfragen von Namen-Servern und Hosts. Diese
173 Tools bestimmen die IP-Adresse eines angegebenen Host-Namen und finden
174 Informationen über registrierte Domains und Netzwerk-Adressen.
175
176 %description utils -l es
177 Conjunto de utilitarios para consulta a servidores de nombres. Estas
178 herramientas permiten la determinación de direcciones IP para nombres
179 de máquinas informados y busca información sobre dominios registrados
180 y direcciones de red.
181
182 %description utils -l fr
183 Ensemble d'utilitaires pour interroger les serveurs de noms et
184 rechercher des hôtes. Ces outils vous permettent de déterminer les
185 adresses IP pour des noms d'hôtes donnés, et trouver des informations
186 sur les noms de domaine déclarés et les adresses réseau.
187
188 %description utils -l pl
189 Pakiet ten zawiera zbiór aplikacji umo¿liwiaj±cych odpytywanie
190 serwerów nazw z innych domen w celu uzyskania informacji o komputerach
191 i ich adresach IP.
192
193 %description utils -l pt_BR
194 Conjunto de utilitários para consulta a servidores DNS. Estas
195 ferramentas permitem a determinação de endereços IP para nomes de
196 máquinas informados e busca informações sobre domínios registrados e
197 endereços de rede. Você deveria instalar este pacote se necessitar
198 obter informações de servidores DNS.
199
200 %description utils -l ru
201 îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÇÅÎÅÒÁÃÉÉ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÅÒÁÍ ÉÍÅΠ(DNS) É ÐÏÉÓËÁ
202 ÁÄÒÅÓÏ× ÍÁÛÉÎ. üÔÉ ÕÔÉÌÉÔÙ ÐÏÚ×ÏÌÑÀÔ ÏÐÒÅÄÅÌÉÔØ IP-ÁÄÒÅÓ ÐÏ ÉÚ×ÅÓÔÎÏÍÕ
203 ÄÏÍÅÎÎÏÍÕ ÉÍÅÎÉ (É ÎÁÏÂÏÒÏÔ) É ÄÒÕÇÕÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÚÁÒÅÇÉÓÔÒÉÒÏ×ÁÎÎÙÈ
204 ÄÏÍÅÎÁÈ É ÓÅÔÅ×ÙÈ ÁÄÒÅÓÁÈ.
205
206 %description utils -l tr
207 Bu pakette isim sunucularýný sorgulamak ve makina adreslerini çözmek
208 için kullanýlan araçlar bulunmaktadýr.
209
210 %description utils -l uk
211 îÁ¦ҠÕÔÉ̦ԠÄÌÑ ÇÅÎÅÒÁ槠ÚÁÐÉԦנÄÏ ÓÅÒ×ÅҦנ¦ÍÅΠ(DNS) ÔÁ ÐÏÛÕËÕ
212 ÁÄÒÅÓ ÍÁÛÉÎ. ã¦ ÕÔÉ̦ÔÉ ÄÏÚ×ÏÌÑÀÔØ ÏÔÒÉÍÁÔÉ IP-ÁÄÒÅÓÕ ÚÁ ×¦ÄÏÍÉÍ
213 ÄÏÍÅÎÎÉÍ ¦ÍÅÎÅÍ ÔÁ ÎÁ×ÐÁËÉ, Á ÔÁËÏÖ ¦ÎÛÕ ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÚÁÒŤÓÔÒÏ×ÁΦ
214 ÄÏÍÅÎÉ ÔÁ ÁÄÒÅÓÉ.
215
216 %package libs
217 Summary:        DNS libraries
218 Summary(pl):    Biblioteki DNS
219 Summary(ru):    âÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ bind
220 Summary(uk):    â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ bind
221 Summary(zh_CN): Internet ÓòÃû·þÎñÆ÷¿ª·¢¿â
222 Group:          Libraries
223
224 %description libs
225 The bind-libs package contains all libraries required for running BIND
226 and bind utils.
227
228 %description libs -l pl
229 Pakiet zawiera wszystkie biblioteki potrzebne do uruchomienia binda
230 lub programów z pakietu bind-utils.
231
232 %description libs -l ru
233 âÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÂÏÔÙ bind.
234
235 %description libs -l uk
236 â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ bind.
237
238 %package devel
239 Summary:        DNS development includes
240 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo DNS
241 Summary(pl):    Pliki nag³ówkowe bibliotek DNS
242 Summary(pt_BR): Todos os arquivos de cabeçalho e bibliotecas para desenvolvimento DNS
243 Summary(ru):    èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ bind
244 Summary(uk):    èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ bind
245 Group:          Development/Libraries
246 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
247
248 %description devel
249 The bind-devel package contains all the include files and symlinks
250 required for DNS (Domain Name Service) development for BIND.
251
252 You should install bind-devel if you want to develop bind DNS
253 applications. If you install bind-devel, you'll also need to install
254 bind-libs.
255
256 %description devel -l es
257 Todos los archivos de inclusión y bibliotecas necesarios al desarrollo
258 DNS para el bind.
259
260 %description devel -l pl
261 Pakiet zawiera pliki nag³ówkowe. Je¿eli bêdziesz pisa³ programy pod
262 binda, lub kompilowa³ kod ¼ród³owy oprogramowania korzystaj±cego z
263 tych plików nag³ówkowych czy biblioteki powiniene¶ zainstalowaæ ten
264 pakiet.
265
266 %description devel -l pt_BR
267 Todos os arquivos de cabeçalho e bibliotecas necessários para o
268 desenvolvimento com o bind.
269
270 %description devel -l ru
271 ÷ÓÅ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ ÐÒÏÇÒÁÍÍ Ó
272 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ BIND 9.x.x.
273
274 %description devel -l uk
275 ÷Ó¦ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú
276 ×ÉËÏÒÉÓÔÁÎÎÑÍ BIND 9.x.x.
277
278 %package static
279 Summary:        DNS static libs
280 Summary(pl):    Biblioteki statyczne DNS
281 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento DNS
282 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ bind
283 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ bind
284 Group:          Development/Libraries
285 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
286
287 %description static
288 Static bind libraries.
289
290 %description static -l pl
291 Statyczne biblioteki binda.
292
293 %description static -l pt_BR
294 Bibliotecas estáticas para desenvolvimento DNS.
295
296 %description static -l ru
297 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ ÐÒÏÇÒÁÍÍ Ó
298 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ BIND.
299
300 %description static -l uk
301 óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
302 BIND.
303
304 %prep
305 %setup -q -a1
306 %patch0 -p1
307 %patch1 -p1
308 %patch2 -p1
309 %patch3 -p1
310 %patch4 -p1
311 %patch5 -p1
312 %{?with_ldap:%patch6 -p1}
313
314 %build
315 %{__libtoolize}
316 %{__aclocal}
317 %{__autoconf}
318 cd lib/bind
319 %{__libtoolize}
320 %{__aclocal}
321 %{__autoconf}
322 cd ../..
323 %configure \
324         %{?with_ssl:--with-openssl=%{_prefix}} \
325         --with-libtool \
326         --enable-threads \
327         %{?with_ipv6:--enable-ipv6} \
328         --enable-libbind \
329         --with-idn
330 %{__make}
331
332 %install
333 rm -rf $RPM_BUILD_ROOT
334 install -d $RPM_BUILD_ROOT{%{_includedir},%{_bindir},%{_sbindir},%{_includedir}} \
335         $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,sysconfig} \
336         $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5,8},%{_var}/{lib/named/{M,S,dev,etc},run,log}}
337
338 %{__make} install \
339         DESTDIR=$RPM_BUILD_ROOT
340
341 rm -f doc/rfc/rfc*
342
343 install %{SOURCE5}                      $RPM_BUILD_ROOT%{_mandir}/man8
344 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
345
346 install conf-pld/*.zone                 $RPM_BUILD_ROOT%{_var}/lib/named/M
347 install conf-pld/*.hint                 $RPM_BUILD_ROOT%{_var}/lib/named
348 install conf-pld/*.conf                 $RPM_BUILD_ROOT%{_var}/lib/named%{_sysconfdir}
349 install bin/tests/named.conf            EXAMPLE-CONFIG-named
350 install bin/tests/ndc.conf              EXAMPLE-CONFIG-ndc
351 install %{SOURCE2}                      $RPM_BUILD_ROOT/etc/rc.d/init.d/named
352 install %{SOURCE3}                      $RPM_BUILD_ROOT/etc/sysconfig/named
353 install %{SOURCE4}                      $RPM_BUILD_ROOT/etc/logrotate.d/named
354
355 ln -sf %{_var}/lib/named%{_sysconfdir}/named.conf $RPM_BUILD_ROOT/etc/named.conf
356 ln -sf %{_var}/lib/named/named.log      $RPM_BUILD_ROOT%{_var}/log/named
357 ln -sf %{_var}/lib/named/named.stats    $RPM_BUILD_ROOT%{_var}/log/named.stats
358
359 touch $RPM_BUILD_ROOT%{_var}/lib/named/{named.{log,stats},dev/{random,null}}
360
361 %{?with_ldap:mkdir -p $RPM_BUILD_ROOT%{_datadir}/openldap/schema/}
362 %{?with_ldap:install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/openldap/schema/dnszone.schema}
363
364 # we don't want Makefiles in documentation...
365 rm -f doc/misc/Makefile*
366
367 %clean
368 rm -rf $RPM_BUILD_ROOT
369
370 %pre
371 if [ -f %{_sysconfdir}/named.boot ]; then
372         cp -f %{_sysconfdir}/named.boot /etc/named.boot.2conf
373         mv -f %{_sysconfdir}/named.boot /etc/named.rpmsave
374         echo "Warning: %{_sysconfdir}/named.boot saved as /etc/named.rpmsave." 1>&2
375 fi
376 if [ -n "`getgid named`" ]; then
377         if [ "`getgid named`" != "58" ]; then
378                 echo "Error: group named doesn't have gid=58. Correct this before installing bind." 1>&2
379                 exit 1
380         fi
381 else
382         echo "Adding group named GID=58."
383         /usr/sbin/groupadd -g 58 named || exit 1
384 fi
385 if [ -n "`id -u named 2>/dev/null`" ]; then
386         if [ "`id -u named`" != "58" ]; then
387                 echo "Error: user named doesn't have uid=58. Correct this before installing bind." 1>&2
388                 exit 1
389         fi
390 else
391         echo "Adding user named UID=58."
392         /usr/sbin/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named || exit 1
393 fi
394
395 %post
396 /sbin/chkconfig --add named
397 if [ -f /var/lock/subsys/named ]; then
398         /etc/rc.d/init.d/named restart 1>&2
399 else
400         echo "Type \"/etc/rc.d/init.d/named start\" to start named." 1>&2
401 fi
402
403 %preun
404 if [ "$1" = "0" ]; then
405         if [ -f /var/lock/subsys/named ]; then
406                 /etc/rc.d/init.d/named stop 1>&2
407         fi
408         /sbin/chkconfig --del named
409 fi
410
411 %postun
412 if [ "$1" = "0" ]; then
413         echo "Removing user named."
414         %{_sbindir}/userdel named
415         echo "Removing group named."
416         %{_sbindir}/groupdel named
417 fi
418
419 %post   libs -p /sbin/ldconfig
420 %postun libs -p /sbin/ldconfig
421
422 %files
423 %defattr(644,root,root,755)
424 %doc README EXAMPLE-CONFIG-* FAQ doc/misc/* doc/arm/*.html doc/rfc/index doc/*.sdb-ldap
425
426 %attr(754,root,root) /etc/rc.d/init.d/named
427 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/named
428 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/named.conf
429 %attr(640,root,root) %config %verify(not size mtime md5) /etc/logrotate.d/named
430
431 %attr(755,root,root) %{_sbindir}/*
432
433 %{?with_ldap:%{_datadir}/openldap/schema/*.schema}
434
435 %{_mandir}/man8/dns*
436 %{_mandir}/man8/lwres*
437 %{_mandir}/man8/named*
438 %{_mandir}/man8/rndc*
439 %{_mandir}/man5/rndc*
440 %lang(ja) %{_mandir}/ja/man8/named*
441
442 %attr(770,root,named) %dir %{_var}/lib/named
443 %attr(750,root,named) %dir %{_var}/lib/named/M
444 %attr(770,root,named) %dir %{_var}/lib/named/S
445 %attr(750,root,named) %dir %{_var}/lib/named%{_sysconfdir}
446 %attr(770,root,named) %dir %{_var}/lib/named/dev
447
448 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named/M/*
449 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named/root.*
450 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named%{_sysconfdir}/*
451
452 #%ghost %{_var}/lib/named/dev/*
453 %attr(770,root,named) %{_var}/lib/named/dev/*
454 %attr(660,named,named) %ghost %{_var}/log/named*
455
456 %files utils
457 %defattr(644,root,root,755)
458 %attr(755,root,root) %{_bindir}/dig
459 %attr(755,root,root) %{_bindir}/host
460 %attr(755,root,root) %{_bindir}/nslookup
461 %attr(755,root,root) %{_bindir}/nsupdate
462 %{_mandir}/man1/dig.1*
463 %{_mandir}/man1/host.1*
464 %{_mandir}/man8/nslookup.8*
465 %{_mandir}/man8/nsupdate*
466
467 %lang(fi) %{_mandir}/fi/man1/host.1*
468
469 %lang(fr) %{_mandir}/fr/man1/host.1*
470
471 %lang(hu) %{_mandir}/hu/man1/host.1*
472
473 %lang(ja) %{_mandir}/ja/man1/dig.1*
474 %lang(ja) %{_mandir}/ja/man1/host.1*
475 %lang(ja) %{_mandir}/ja/man8/nslookup.8*
476 %lang(ja) %{_mandir}/ja/man8/nsupdate.8*
477
478 %lang(pl) %{_mandir}/pl/man1/host.1*
479
480 %files libs
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_libdir}/*.so.*.*
483
484 %files devel
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_bindir}/*.sh
487 %attr(755,root,root) %{_libdir}/*.so
488 %{_libdir}/*.la
489 %{_includedir}/*
490 %{_mandir}/man3/*
491
492 %files static
493 %defattr(644,root,root,755)
494 %{_libdir}/*.a
This page took 0.093085 seconds and 4 git commands to generate.