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