]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
- Requires for rc-scripts changed to Prereq.
[packages/bind.git] / bind.spec
1 Summary:        BIND - DNS name server
2 Summary(de):    BIND - DNS-Namenserver  
3 Summary(fr):    BIND - serveur de noms DNS
4 Summary(pl):    BIND - serwer nazw DNS
5 Summary(tr):    DNS alan adý sunucusu
6 Name:           bind
7 Version:        9.1.0
8 Release:        3
9 Epoch:          3
10 License:        Distributable
11 Group:          Networking/Daemons
12 Group(de):      Netzwerkwesen/Server
13 Group(pl):      Sieciowe/Serwery
14 Source0:        ftp://ftp.isc.org/isc/bind9/%{version}/%{name}-%{version}.tar.gz
15 Source1:        %{name}-conf.tar.gz
16 Source2:        named.init
17 Source3:        named.sysconfig
18 Source4:        named.logrotate
19 Source5:        nslookup.8
20 Source6:        resolver.5
21 BuildRequires:  sed
22 BuildRequires:  flex
23 BuildRequires:  openssl-devel
24 BuildRequires:  byacc
25 Prereq:         rc-scripts >= 0.2.0
26 Requires:       %{name}-libs = %{version}
27 Prereq:         /sbin/chkconfig                                                                       
28 #Requires(pre,post):    fileutils
29 #Requires(pre,postun):  shadow
30 #Requires(post,preun):  chkconfig
31 #Requires(post,preun):  rc-scripts
32 URL:            http://www.isc.org/products/BIND/bind9.html
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Obsoletes:      caching-nameserver
35 Conflicts:      %{name}-chroot
36 Conflicts:      kernel < 2.2.18
37
38 %description
39 BIND (Berkeley Internet Name Domain) is an implementation of the DNS
40 (Domain Name System) protocols. BIND includes a DNS server (named),
41 which resolves host names to IP addresses, and a resolver library
42 (routines for applications to use when interfacing with DNS). A DNS
43 server allows clients to name resources or objects and share the
44 information with other network machines. The named DNS server can be
45 used on workstations as a caching name server, but is generally only
46 needed on one machine for an entire network. Note that the
47 configuration files for making BIND act as a simple caching nameserver
48 are included in the caching-nameserver package.
49
50 Install the bind package if you need a DNS server for your network. If
51 you want bind to act a caching name server, you will also need to
52 install the caching-nameserver package.
53
54 %description -l de
55 Enthält den Namen-Server, der zum Umwandeln von Host-Namen in
56 IP-Adressen und umgekehrt verwendet wird. Er kann auf Workstations als
57 caching Namen-Server verwendet werden, ist aber i.d.R. nur auf einem
58 Recher des Netzwerks erforderlich.
59
60 %description -l fr
61 Contient le serveur de noms named, utilisé pour définir les
62 traductions nom d'hôte vers adresse IP (et vice versa). Il peut être
63 utilisé sur les stations de travail comme serveur de nom en cache mais
64 n'est souvent nécessaire que sur une machine pour un réseau entier.
65
66 %description -l pl
67 Pakiet ten zawiera demona named, który s³u¿y do zmieniania nazw
68 komputerów na numery IP i odwrotnie. Mo¿e byæ on u¿ywany na stacjach
69 roboczych jako bufor odwo³añ do serwisu nazw (caching name server),
70 ale generalnie wystarczy tylko jedna jednostka wyposa¿ona w ten
71 program na fragment sieci.
72
73 %description -l tr
74 Bu paket, makina adýný IP numarasýna (ya da tersi) çevirmek için
75 kullanýlan alan adý sunucusunu içerir. Ýþ istasyonlarýnda bir önbellek
76 isim sunucusu olarak da kullanýlabilir ama genellikle bütün bir að
77 için sadece bir makina üzerinde kurulur.
78
79 %package utils
80 Summary:        DNS utils - host, dig, dnsquery, nslookup
81 Summary(de):    DNS-Utils - Host, Dig, Dnsquery, Nslookup 
82 Summary(fr):    Utilitaires DNS - host, dig, dnsquery, nslookup
83 Summary(pl):    Narzêdzia DNS - host, dig, dnsquery, nslookup
84 Summary(tr):    DNS araçlarý - host, dig, dnsquery, nslookup
85 Group:          Networking/Utilities
86 Group(de):      Netzwerkwesen/Werkzeuge
87 Group(pl):      Sieciowe/Narzêdzia
88 Requires:       %{name}-libs = %{version}
89
90 %description utils
91 Bind-utils contains a collection of utilities for querying DNS (Domain
92 Name Service) name servers to find out information about Internet
93 hosts. These tools will provide you with the IP addresses for given
94 host names, as well as other information about registered domains and
95 network addresses.
96
97 You should install bind-utils if you need to get information from DNS
98 name servers.
99
100 %description -l de utils
101 Dienstprogrammsammlung zum Abfragen von Namen-Servern und Hosts. Diese
102 Tools bestimmen die IP-Adresse eines angegebenen Host-Namen und finden
103 Informationen über registrierte Domains und Netzwerk-Adressen.
104
105 %description -l fr utils
106 Ensemble d'utilitaires pour interroger les serveurs de noms et
107 rechercher des hôtes. Ces outils vous permettent de déterminer les
108 adresses IP pour des noms d'hôtes donnés, et trouver des informations
109 sur les noms de domaine déclarés et les adresses réseau.
110
111 %description -l pl utils
112 Pakiet ten zawiera zbiór aplikacji umo¿liwiaj±cych odpytywanie
113 serwerów nazw z innych domen w celu uzyskania informacji o komupterach
114 i ich adresach IP.
115
116 %description -l tr utils
117 Bu pakette isim sunucularýný sorgulamak ve makina adreslerini çözmek
118 için kullanýlan araçlar bulunmaktadýr.
119
120 %package libs
121 Summary:        DNS libraries
122 Summary(pl):    Biblioteki DNS
123 Group:          Libraries
124 Group(de):      Libraries
125 Group(fr):      Librairies
126 Group(pl):      Biblioteki
127
128 %description libs
129 The bind-libs package contains all libraries required for
130 running BIND and bind utils.
131
132 %package devel
133 Summary:        DNS development includes and libs
134 Summary(pl):    Pliki nag³ówkowe i biblioteka statyczna
135 Group:          Development/Libraries
136 Group(de):      Entwicklung/Libraries
137 Group(fr):      Development/Librairies
138 Group(pl):      Programowanie/Biblioteki
139 Requires:       %{name}-libs = %{version}
140
141 %description devel
142 The bind-devel package contains all the include files and the library
143 required for DNS (Domain Name Service) development for BIND.
144
145 You should install bind-devel if you want to develop bind DNS
146 applications. If you install bind-devel, you'll also need to install
147 bind.
148
149 %description -l pl devel
150 Pakiet zawiera pliki nag³ówkowe i bibliotekê statyczn±. Je¿eli
151 bêdziesz pisa³ programy pod binda, lub kompilowa³ kod ¼ród³owy
152 oprogramowania korzystaj±cego z tych plików nag³ówkowych czy
153 biblioteki powiniene¶ zainstalowaæ ten pakiet.
154
155 %package static
156 Summary:        DNS static libs
157 Summary(pl):    Biblioteka statyczna
158 Group:          Development/Libraries
159 Group(de):      Entwicklung/Libraries
160 Group(fr):      Development/Librairies
161 Group(pl):      Programowanie/Biblioteki
162
163 %description static
164 Static bind libraries.
165
166 %description -l pl static
167 Statyczne biblioteki binda.
168
169 %prep
170 %setup -q -a1
171
172 %build
173 autoconf
174 %configure \
175         --with-openssl=%{_prefix} \
176         --with-libtool \
177         --enable-ipv6
178 %{__make}
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182
183 install -d $RPM_BUILD_ROOT{%{_includedir},%{_bindir},%{_sbindir},%{_includedir}}
184 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,logrotate.d,sysconfig}
185 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}
186 install -d $RPM_BUILD_ROOT%{_var}/{lib/named/{M,S,dev,etc},run,log}
187
188 %{__make} install \
189         DESTDIR=$RPM_BUILD_ROOT
190
191 install doc/man/bin/*.1                 $RPM_BUILD_ROOT%{_mandir}/man1
192 install doc/man/bin/*.5                 $RPM_BUILD_ROOT%{_mandir}/man5
193 install %{SOURCE6}                      $RPM_BUILD_ROOT%{_mandir}/man5
194 install doc/man/{bin/*.8,dnssec/*.8}    $RPM_BUILD_ROOT%{_mandir}/man8
195 install %{SOURCE5}                      $RPM_BUILD_ROOT%{_mandir}/man8
196
197 install conf-pld/*.zone                 $RPM_BUILD_ROOT%{_var}/lib/named/M
198 install conf-pld/*.hint                 $RPM_BUILD_ROOT%{_var}/lib/named
199 install conf-pld/*.conf                 $RPM_BUILD_ROOT%{_var}/lib/named/etc
200 install bin/tests/named.conf            EXAMPLE-CONFIG-named
201 install bin/tests/ndc.conf              EXAMPLE-CONFIG-ndc
202 install %{SOURCE2}                      $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/named
203 install %{SOURCE3}                      $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/named
204 install %{SOURCE4}                      $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/named
205 ln -s %{_var}/lib/named/etc/named.conf  $RPM_BUILD_ROOT%{_sysconfdir}/named.conf
206 ln -s %{_var}/lib/named/named.log       $RPM_BUILD_ROOT%{_var}/log/named
207 touch           $RPM_BUILD_ROOT%{_var}/lib/named/{named.log,dev/{random,null}}
208
209 gzip -9nf README EXAMPLE-CONFIG-* doc/misc/*
210
211 %pre
212 if [ -f %{_sysconfdir}/named.boot ]; then
213         cp %{_sysconfdir}/named.boot /etc/named.boot.2conf
214         mv -f %{_sysconfdir}/named.boot /etc/named.rpmsave
215         echo "Warrnig:%{_sysconfdir}/named.boot saved as /etc/named.rpmsave" 1>&2
216 fi
217 if ! id -g named > /dev/null 2>&1 ; then
218         %{_sbindir}/groupadd -g 58 named
219 fi
220 if ! id -u named > /dev/null 2>&1 ; then
221         %{_sbindir}/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named
222 fi
223
224 %post
225 /sbin/chkconfig --add named
226
227 if [ -f /var/lock/subsys/named ]; then
228         %{_sysconfdir}/rc.d/init.d/named restart 1>&2
229 else
230         echo "Type \"%{_sysconfdir}/rc.d/init.d/named start\" to start named" 1>&2
231 fi
232
233 %preun
234 if [ "$1" = "0" ]; then
235         if [ -f /var/lock/subsys/named ]; then
236                 %{_sysconfdir}/rc.d/init.d/named stop 1>&2
237         fi
238         /sbin/chkconfig --del named
239 fi    
240
241 %postun
242 if [ "$1" = "0" ]; then
243         %{_sbindir}/userdel named
244         %{_sbindir}/groupdel named
245 fi
246
247 %post   libs -p /sbin/ldconfig
248 %postun libs -p /sbin/ldconfig
249
250 %clean
251 rm -rf $RPM_BUILD_ROOT
252
253 %files
254 %defattr(644,root,root,755)
255 %doc *.gz doc/misc/*.gz doc/arm/*
256
257 %attr(754,root,root)  %{_sysconfdir}/rc.d/init.d/named
258 %attr(640,root,root)  %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/named
259 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/named.conf
260 %attr(640,root,root)  %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/named
261
262 %attr(755,root,root) %{_sbindir}/*
263 %attr(755,root,root) %{_bindir}/nsupdate
264
265 %{_mandir}/man8/dns*
266 %{_mandir}/man8/lwres*
267 %{_mandir}/man8/named*
268 %{_mandir}/man8/rndc*
269 %{_mandir}/man5/rndc*
270 %{_mandir}/man8/nsupdate*
271
272 %attr(770,root,named) %dir %{_var}/lib/named
273 %attr(750,root,named) %dir %{_var}/lib/named/M
274 %attr(770,root,named) %dir %{_var}/lib/named/S
275 %attr(770,root,named) %dir %{_var}/lib/named/dev
276
277 %{_var}/lib/named/M/*
278 %{_var}/lib/named/root.*
279 %{_var}/lib/named/etc/*
280
281 %ghost %{_var}/lib/named/dev/*
282 %attr(660,named,named) %ghost %{_var}/log/named
283
284 %files utils
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_bindir}/dig
287 %attr(755,root,root) %{_bindir}/host
288 %attr(755,root,root) %{_bindir}/nslookup
289 %{_mandir}/man1/dig.1*
290 %{_mandir}/man1/host.1*
291 %{_mandir}/man8/nslookup.8*
292
293 %files libs
294 %defattr(644,root,root,755)
295 %attr(755,root,root)  %{_libdir}/*.so.*.*
296
297 %files devel
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_bindir}/*.sh
300 %{_includedir}/*
301 %{_libdir}/*.so
302
303 %files static
304 %defattr(644,root,root,755)
305 %{_libdir}/*.a
This page took 0.055691 seconds and 4 git commands to generate.