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