]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
- fix doc
[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:        7
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.7d}
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 Requires:       iconv
161
162 %description utils
163 Bind-utils contains a collection of utilities for querying DNS (Domain
164 Name Service) name servers to find out information about Internet
165 hosts. These tools will provide you with the IP addresses for given
166 host names, as well as other information about registered domains and
167 network addresses.
168
169 You should install bind-utils if you need to get information from DNS
170 name servers.
171
172 %description utils -l de
173 Dienstprogrammsammlung zum Abfragen von Namen-Servern und Hosts. Diese
174 Tools bestimmen die IP-Adresse eines angegebenen Host-Namen und finden
175 Informationen über registrierte Domains und Netzwerk-Adressen.
176
177 %description utils -l es
178 Conjunto de utilitarios para consulta a servidores de nombres. Estas
179 herramientas permiten la determinación de direcciones IP para nombres
180 de máquinas informados y busca información sobre dominios registrados
181 y direcciones de red.
182
183 %description utils -l fr
184 Ensemble d'utilitaires pour interroger les serveurs de noms et
185 rechercher des hôtes. Ces outils vous permettent de déterminer les
186 adresses IP pour des noms d'hôtes donnés, et trouver des informations
187 sur les noms de domaine déclarés et les adresses réseau.
188
189 %description utils -l pl
190 Pakiet ten zawiera zbiór aplikacji umo¿liwiaj±cych odpytywanie
191 serwerów nazw z innych domen w celu uzyskania informacji o komputerach
192 i ich adresach IP.
193
194 %description utils -l pt_BR
195 Conjunto de utilitários para consulta a servidores DNS. Estas
196 ferramentas permitem a determinação de endereços IP para nomes de
197 máquinas informados e busca informações sobre domínios registrados e
198 endereços de rede. Você deveria instalar este pacote se necessitar
199 obter informações de servidores DNS.
200
201 %description utils -l ru
202 îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÇÅÎÅÒÁÃÉÉ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÅÒÁÍ ÉÍÅΠ(DNS) É ÐÏÉÓËÁ
203 ÁÄÒÅÓÏ× ÍÁÛÉÎ. üÔÉ ÕÔÉÌÉÔÙ ÐÏÚ×ÏÌÑÀÔ ÏÐÒÅÄÅÌÉÔØ IP-ÁÄÒÅÓ ÐÏ ÉÚ×ÅÓÔÎÏÍÕ
204 ÄÏÍÅÎÎÏÍÕ ÉÍÅÎÉ (É ÎÁÏÂÏÒÏÔ) É ÄÒÕÇÕÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÚÁÒÅÇÉÓÔÒÉÒÏ×ÁÎÎÙÈ
205 ÄÏÍÅÎÁÈ É ÓÅÔÅ×ÙÈ ÁÄÒÅÓÁÈ.
206
207 %description utils -l tr
208 Bu pakette isim sunucularýný sorgulamak ve makina adreslerini çözmek
209 için kullanýlan araçlar bulunmaktadýr.
210
211 %description utils -l uk
212 îÁ¦ҠÕÔÉ̦ԠÄÌÑ ÇÅÎÅÒÁ槠ÚÁÐÉԦנÄÏ ÓÅÒ×ÅҦנ¦ÍÅΠ(DNS) ÔÁ ÐÏÛÕËÕ
213 ÁÄÒÅÓ ÍÁÛÉÎ. ã¦ ÕÔÉ̦ÔÉ ÄÏÚ×ÏÌÑÀÔØ ÏÔÒÉÍÁÔÉ IP-ÁÄÒÅÓÕ ÚÁ ×¦ÄÏÍÉÍ
214 ÄÏÍÅÎÎÉÍ ¦ÍÅÎÅÍ ÔÁ ÎÁ×ÐÁËÉ, Á ÔÁËÏÖ ¦ÎÛÕ ¦ÎÆÏÒÍÁæÀ ÐÒÏ ÚÁÒŤÓÔÒÏ×ÁΦ
215 ÄÏÍÅÎÉ ÔÁ ÁÄÒÅÓÉ.
216
217 %package libs
218 Summary:        DNS libraries
219 Summary(pl):    Biblioteki DNS
220 Summary(ru):    âÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ bind
221 Summary(uk):    â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ bind
222 Summary(zh_CN): Internet ÓòÃû·þÎñÆ÷¿ª·¢¿â
223 Group:          Libraries
224
225 %description libs
226 The bind-libs package contains all libraries required for running BIND
227 and bind utils.
228
229 %description libs -l pl
230 Pakiet zawiera wszystkie biblioteki potrzebne do uruchomienia binda
231 lub programów z pakietu bind-utils.
232
233 %description libs -l ru
234 âÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÂÏÔÙ bind.
235
236 %description libs -l uk
237 â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ bind.
238
239 %package devel
240 Summary:        DNS development includes
241 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo DNS
242 Summary(pl):    Pliki nag³ówkowe bibliotek DNS
243 Summary(pt_BR): Todos os arquivos de cabeçalho e bibliotecas para desenvolvimento DNS
244 Summary(ru):    èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ bind
245 Summary(uk):    èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ bind
246 Group:          Development/Libraries
247 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
248
249 %description devel
250 The bind-devel package contains all the include files and symlinks
251 required for DNS (Domain Name Service) development for BIND.
252
253 You should install bind-devel if you want to develop bind DNS
254 applications. If you install bind-devel, you'll also need to install
255 bind-libs.
256
257 %description devel -l es
258 Todos los archivos de inclusión y bibliotecas necesarios al desarrollo
259 DNS para el bind.
260
261 %description devel -l pl
262 Pakiet zawiera pliki nag³ówkowe. Je¿eli bêdziesz pisa³ programy pod
263 binda, lub kompilowa³ kod ¼ród³owy oprogramowania korzystaj±cego z
264 tych plików nag³ówkowych czy biblioteki powiniene¶ zainstalowaæ ten
265 pakiet.
266
267 %description devel -l pt_BR
268 Todos os arquivos de cabeçalho e bibliotecas necessários para o
269 desenvolvimento com o bind.
270
271 %description devel -l ru
272 ÷ÓÅ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ ÐÒÏÇÒÁÍÍ Ó
273 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ BIND 9.x.x.
274
275 %description devel -l uk
276 ÷Ó¦ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú
277 ×ÉËÏÒÉÓÔÁÎÎÑÍ BIND 9.x.x.
278
279 %package static
280 Summary:        DNS static libs
281 Summary(pl):    Biblioteki statyczne DNS
282 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento DNS
283 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ bind
284 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ bind
285 Group:          Development/Libraries
286 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
287
288 %description static
289 Static bind libraries.
290
291 %description static -l pl
292 Statyczne biblioteki binda.
293
294 %description static -l pt_BR
295 Bibliotecas estáticas para desenvolvimento DNS.
296
297 %description static -l ru
298 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ ÐÒÏÇÒÁÍÍ Ó
299 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ BIND.
300
301 %description static -l uk
302 óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
303 BIND.
304
305 %prep
306 %setup -q -a1
307 %patch0 -p1
308 %patch1 -p1
309 %patch2 -p1
310 %patch3 -p1
311 %patch4 -p1
312 %patch5 -p1
313 %{?with_ldap:%patch6 -p1}
314
315 %build
316 %{__libtoolize}
317 %{__aclocal}
318 %{__autoconf}
319 cd lib/bind
320 %{__libtoolize}
321 %{__aclocal}
322 %{__autoconf}
323 cd ../..
324 %configure \
325         %{?with_ssl:--with-openssl=%{_prefix}} \
326         --with-libtool \
327         --enable-threads \
328         %{?with_ipv6:--enable-ipv6} \
329         --enable-libbind \
330         --with-idn
331 %{__make}
332
333 %install
334 rm -rf $RPM_BUILD_ROOT
335 install -d $RPM_BUILD_ROOT{%{_includedir},%{_bindir},%{_sbindir},%{_includedir}} \
336         $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,sysconfig} \
337         $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5,8},%{_var}/{lib/named/{M,S,dev,etc},run,log}}
338
339 %{__make} install \
340         DESTDIR=$RPM_BUILD_ROOT
341
342 rm -f doc/rfc/rfc*
343
344 install %{SOURCE5}                      $RPM_BUILD_ROOT%{_mandir}/man8
345 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
346
347 install conf-pld/*.zone                 $RPM_BUILD_ROOT%{_var}/lib/named/M
348 install conf-pld/*.hint                 $RPM_BUILD_ROOT%{_var}/lib/named
349 install conf-pld/*.conf                 $RPM_BUILD_ROOT%{_var}/lib/named%{_sysconfdir}
350 install bin/tests/named.conf            EXAMPLE-CONFIG-named
351 install bin/tests/ndc.conf              EXAMPLE-CONFIG-ndc
352 install %{SOURCE2}                      $RPM_BUILD_ROOT/etc/rc.d/init.d/named
353 install %{SOURCE3}                      $RPM_BUILD_ROOT/etc/sysconfig/named
354 install %{SOURCE4}                      $RPM_BUILD_ROOT/etc/logrotate.d/named
355
356 ln -sf %{_var}/lib/named%{_sysconfdir}/named.conf $RPM_BUILD_ROOT/etc/named.conf
357 ln -sf %{_var}/lib/named/named.log      $RPM_BUILD_ROOT%{_var}/log/named
358 ln -sf %{_var}/lib/named/named.stats    $RPM_BUILD_ROOT%{_var}/log/named.stats
359
360 touch $RPM_BUILD_ROOT%{_var}/lib/named/{named.{log,stats},dev/{random,null}}
361
362 %{?with_ldap:mkdir -p $RPM_BUILD_ROOT%{_datadir}/openldap/schema/}
363 %{?with_ldap:install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/openldap/schema/dnszone.schema}
364
365 # we don't want Makefiles in documentation...
366 rm -f doc/misc/Makefile*
367
368 %clean
369 rm -rf $RPM_BUILD_ROOT
370
371 %pre
372 if [ -f %{_sysconfdir}/named.boot ]; then
373         cp -f %{_sysconfdir}/named.boot /etc/named.boot.2conf
374         mv -f %{_sysconfdir}/named.boot /etc/named.rpmsave
375         echo "Warning: %{_sysconfdir}/named.boot saved as /etc/named.rpmsave." 1>&2
376 fi
377 if [ -n "`getgid named`" ]; then
378         if [ "`getgid named`" != "58" ]; then
379                 echo "Error: group named doesn't have gid=58. Correct this before installing bind." 1>&2
380                 exit 1
381         fi
382 else
383         echo "Adding group named GID=58."
384         /usr/sbin/groupadd -g 58 named || exit 1
385 fi
386 if [ -n "`id -u named 2>/dev/null`" ]; then
387         if [ "`id -u named`" != "58" ]; then
388                 echo "Error: user named doesn't have uid=58. Correct this before installing bind." 1>&2
389                 exit 1
390         fi
391 else
392         echo "Adding user named UID=58."
393         /usr/sbin/useradd -u 58 -g 58 -d /tmp -s /bin/false -c "BIND user" named || exit 1
394 fi
395
396 %post
397 /sbin/chkconfig --add named
398 if [ -f /var/lock/subsys/named ]; then
399         /etc/rc.d/init.d/named restart 1>&2
400 else
401         echo "Type \"/etc/rc.d/init.d/named start\" to start named." 1>&2
402 fi
403
404 %preun
405 if [ "$1" = "0" ]; then
406         if [ -f /var/lock/subsys/named ]; then
407                 /etc/rc.d/init.d/named stop 1>&2
408         fi
409         /sbin/chkconfig --del named
410 fi
411
412 %postun
413 if [ "$1" = "0" ]; then
414         echo "Removing user named."
415         %{_sbindir}/userdel named
416         echo "Removing group named."
417         %{_sbindir}/groupdel named
418 fi
419
420 %post   libs -p /sbin/ldconfig
421 %postun libs -p /sbin/ldconfig
422
423 %files
424 %defattr(644,root,root,755)
425 %doc README EXAMPLE-CONFIG-* FAQ doc/misc/* doc/arm/*.html doc/rfc/index %{?with_ldap:doc/*.sdb-ldap}
426
427 %attr(754,root,root) /etc/rc.d/init.d/named
428 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/named
429 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/named.conf
430 %attr(640,root,root) %config %verify(not size mtime md5) /etc/logrotate.d/named
431
432 %attr(755,root,root) %{_sbindir}/*
433
434 %{?with_ldap:%{_datadir}/openldap/schema/*.schema}
435
436 %{_mandir}/man8/dns*
437 %{_mandir}/man8/lwres*
438 %{_mandir}/man8/named*
439 %{_mandir}/man8/rndc*
440 %{_mandir}/man5/rndc*
441 %lang(ja) %{_mandir}/ja/man8/named*
442
443 %attr(770,root,named) %dir %{_var}/lib/named
444 %attr(750,root,named) %dir %{_var}/lib/named/M
445 %attr(770,root,named) %dir %{_var}/lib/named/S
446 %attr(750,root,named) %dir %{_var}/lib/named%{_sysconfdir}
447 %attr(770,root,named) %dir %{_var}/lib/named/dev
448
449 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named/M/*
450 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named/root.*
451 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named%{_sysconfdir}/*
452
453 #%ghost %{_var}/lib/named/dev/*
454 %attr(770,root,named) %{_var}/lib/named/dev/*
455 %attr(660,named,named) %ghost %{_var}/log/named*
456
457 %files utils
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_bindir}/dig
460 %attr(755,root,root) %{_bindir}/host
461 %attr(755,root,root) %{_bindir}/nslookup
462 %attr(755,root,root) %{_bindir}/nsupdate
463 %{_mandir}/man1/dig.1*
464 %{_mandir}/man1/host.1*
465 %{_mandir}/man8/nslookup.8*
466 %{_mandir}/man8/nsupdate*
467
468 %lang(fi) %{_mandir}/fi/man1/host.1*
469
470 %lang(fr) %{_mandir}/fr/man1/host.1*
471
472 %lang(hu) %{_mandir}/hu/man1/host.1*
473
474 %lang(ja) %{_mandir}/ja/man1/dig.1*
475 %lang(ja) %{_mandir}/ja/man1/host.1*
476 %lang(ja) %{_mandir}/ja/man8/nslookup.8*
477 %lang(ja) %{_mandir}/ja/man8/nsupdate.8*
478
479 %lang(pl) %{_mandir}/pl/man1/host.1*
480
481 %files libs
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_libdir}/*.so.*.*
484
485 %files devel
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_bindir}/*.sh
488 %attr(755,root,root) %{_libdir}/*.so
489 %{_libdir}/*.la
490 %{_includedir}/*
491 %{_mandir}/man3/*
492
493 %files static
494 %defattr(644,root,root,755)
495 %{_libdir}/*.a
This page took 0.0863 seconds and 4 git commands to generate.