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