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