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