]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
- merge translations from CNV and me corrections on using %%{_sysconfdir}
[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(es):    Static libraris for development with bind
211 Summary(pl):    Biblioteki statyczne DNS
212 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento DNS
213 Group:          Development/Libraries
214 Group(de):      Entwicklung/Libraries
215 Group(es):      Desarrollo/Bibliotecas
216 Group(fr):      Development/Librairies
217 Group(pl):      Programowanie/Biblioteki
218 Group(pt_BR):   Desenvolvimento/Bibliotecas
219 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
220 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
221
222 %description static
223 Static bind libraries.
224
225 %description -l es static
226 Static libraris for development with bind.
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
238 %build
239 libtoolize --copy --force
240 aclocal
241 autoconf
242 %configure \
243         --with-openssl=%{_prefix} \
244         --with-libtool \
245         --enable-ipv6
246 %{__make}
247
248 %install
249 rm -rf $RPM_BUILD_ROOT
250
251 install -d $RPM_BUILD_ROOT{%{_includedir},%{_bindir},%{_sbindir},%{_includedir}}
252 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,sysconfig}
253 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}
254 install -d $RPM_BUILD_ROOT%{_var}/{lib/named/{M,S,dev,etc},run,log}
255
256 %{__make} install \
257         DESTDIR=$RPM_BUILD_ROOT
258
259 install doc/man/bin/*.1                 $RPM_BUILD_ROOT%{_mandir}/man1
260 install doc/man/lwres/*.3               $RPM_BUILD_ROOT%{_mandir}/man3
261 install doc/man/bin/*.5                 $RPM_BUILD_ROOT%{_mandir}/man5
262 install %{SOURCE6}                      $RPM_BUILD_ROOT%{_mandir}/man5
263 install doc/man/{bin/*.8,dnssec/*.8}    $RPM_BUILD_ROOT%{_mandir}/man8
264 install %{SOURCE5}                      $RPM_BUILD_ROOT%{_mandir}/man8
265
266 install conf-pld/*.zone                 $RPM_BUILD_ROOT%{_var}/lib/named/M
267 install conf-pld/*.hint                 $RPM_BUILD_ROOT%{_var}/lib/named
268 install conf-pld/*.conf                 $RPM_BUILD_ROOT%{_var}/lib/named/etc
269 install bin/tests/named.conf            EXAMPLE-CONFIG-named
270 install bin/tests/ndc.conf              EXAMPLE-CONFIG-ndc
271 install %{SOURCE2}                      $RPM_BUILD_ROOT/etc/rc.d/init.d/named
272 install %{SOURCE3}                      $RPM_BUILD_ROOT/etc/sysconfig/named
273 install %{SOURCE4}                      $RPM_BUILD_ROOT/etc/logrotate.d/named
274 ln -sf %{_var}/lib/named/etc/named.conf $RPM_BUILD_ROOT%{_sysconfdir}/named.conf
275 ln -sf %{_var}/lib/named/named.log      $RPM_BUILD_ROOT%{_var}/log/named
276 touch           $RPM_BUILD_ROOT%{_var}/lib/named/{named.log,dev/{random,null}}
277
278 gzip -9nf README EXAMPLE-CONFIG-* doc/misc/*
279
280 %pre
281 if [ -f %{_sysconfdir}/named.boot ]; then
282         cp -f %{_sysconfdir}/named.boot /etc/named.boot.2conf
283         mv -f %{_sysconfdir}/named.boot /etc/named.rpmsave
284         echo "Warning:%{_sysconfdir}/named.boot saved as /etc/named.rpmsave" 1>&2
285 fi
286 if ! id -g named > /dev/null 2>&1 ; then
287         %{_sbindir}/groupadd -g 58 named
288 fi
289 if ! id -u named > /dev/null 2>&1 ; then
290         %{_sbindir}/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named
291 fi
292
293 %post
294 /sbin/chkconfig --add named
295
296 if [ -f /var/lock/subsys/named ]; then
297         /etc/rc.d/init.d/named restart 1>&2
298 else
299         echo "Type \"/etc/rc.d/init.d/named start\" to start named" 1>&2
300 fi
301
302 %preun
303 if [ "$1" = "0" ]; then
304         if [ -f /var/lock/subsys/named ]; then
305                 /etc/rc.d/init.d/named stop 1>&2
306         fi
307         /sbin/chkconfig --del named
308 fi    
309
310 %postun
311 if [ "$1" = "0" ]; then
312         %{_sbindir}/userdel named
313         %{_sbindir}/groupdel named
314 fi
315
316 %post   libs -p /sbin/ldconfig
317 %postun libs -p /sbin/ldconfig
318
319 %clean
320 rm -rf $RPM_BUILD_ROOT
321
322 %files
323 %defattr(644,root,root,755)
324 %doc *.gz doc/misc/*.gz doc/arm/*
325
326 %attr(754,root,root)  /etc/rc.d/init.d/named
327 %attr(640,root,root)  %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/named
328 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/named.conf
329 %attr(640,root,root)  %config %verify(not size mtime md5) /etc/logrotate.d/named
330
331 %attr(755,root,root) %{_sbindir}/*
332 %attr(755,root,root) %{_bindir}/nsupdate
333
334 %{_mandir}/man8/dns*
335 %{_mandir}/man8/lwres*
336 %{_mandir}/man8/named*
337 %{_mandir}/man8/rndc*
338 %{_mandir}/man5/rndc*
339 %{_mandir}/man8/nsupdate*
340
341 %attr(770,root,named) %dir %{_var}/lib/named
342 %attr(750,root,named) %dir %{_var}/lib/named/M
343 %attr(770,root,named) %dir %{_var}/lib/named/S
344 %attr(770,root,named) %dir %{_var}/lib/named/dev
345
346 %{_var}/lib/named/M/*
347 %{_var}/lib/named/root.*
348 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named/etc/*
349
350 %ghost %{_var}/lib/named/dev/*
351 %attr(660,named,named) %ghost %{_var}/log/named
352
353 %files utils
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_bindir}/dig
356 %attr(755,root,root) %{_bindir}/host
357 %attr(755,root,root) %{_bindir}/nslookup
358 %{_mandir}/man1/dig.1*
359 %{_mandir}/man1/host.1*
360 %{_mandir}/man8/nslookup.8*
361
362 %files libs
363 %defattr(644,root,root,755)
364 %attr(755,root,root)  %{_libdir}/*.so.*.*
365
366 %files devel
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_bindir}/*.sh
369 %{_includedir}/*
370 %{_libdir}/*.so
371 %{_mandir}/man3/*
372
373 %files static
374 %defattr(644,root,root,755)
375 %{_libdir}/*.a
This page took 0.05171 seconds and 4 git commands to generate.