]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
- fixed reloading
[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:        8.2.2_P5
8 Release:        16
9 Copyright:      distributable
10 Group:          Networking/Daemons
11 Group(pl):      Sieciowe/Serwery
12 Source0:        ftp://ftp.isc.org/isc/bind/%{version}/%{name}-%{version}.src.tar.gz
13 Source1:        ftp://ftp.isc.org/isc/bind/%{version}/%{name}-%{version}.doc.tar.gz
14 Source2:        ftp://ftp.isc.org/isc/bind/%{version}/%{name}-%{version}.contrib.tar.gz
15 Source3:        named.init
16 Source4:        named.sysconfig
17 Source5:        named.logrotate
18 Source6:        named.conf
19 Patch1:         bind-pselect.patch
20 Patch2:         bind-fds.patch
21 Patch3:         bind-nonlist.patch
22 Patch4:         bind-host.patch
23 Patch5:         bind-glibc21.patch
24 Patch6:         bind-mkdep.patch
25 Patch7:         bind-probe_ipv6.patch
26 Patch8:         bind-host-forcetype.patch
27 Patch9:         bind-pidfile.patch
28 Patch10:        bind-ttl.patch
29 Patch11:        ftp://ftp.6bone.pl/pub/ipv6/set-glibc-2.1.new/host_991529+.diff
30 BuildRequires:  flex
31 Prereq:         /sbin/chkconfig
32 Requires:       rc-scripts >= 0.2.0
33 Obsoletes:      caching-nameserver
34 URL:            http://www.isc.org/bind.html
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define         _datadir        %{_prefix}/share/misc
38 %define         _sysconfdir     /etc
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 fr
63 Contient le serveur de noms named, utilisé pour définir les
64 traductions nom d'hôte vers adresse IP (et vice versa). Il peut être
65 utilisé sur les stations de travail comme serveur de nom en cache mais
66 n'est souvent nécessaire que sur une machine pour un réseau entier.
67
68 %description -l pl
69 Pakiet ten zawiera demona named, który s³u¿y do zmieniania nazw
70 komputerów na numery IP i odwrotnie. Mo¿e byæ on u¿ywany na stacjach
71 roboczych jako bufor odwo³añ do serwisu nazw (caching name server),
72 ale generalnie wystarczy tylko jedna jednostka wyposa¿ona w ten
73 program na fragment sieci.
74
75 %description -l tr
76 Bu paket, makina adýný IP numarasýna (ya da tersi) çevirmek için
77 kullanýlan alan adý sunucusunu içerir. Ýþ istasyonlarýnda bir önbellek
78 isim sunucusu olarak da kullanýlabilir ama genellikle bütün bir að
79 için sadece bir makina üzerinde kurulur.
80
81 %package utils
82 Summary:        DNS utils - host, dig, dnsquery, nslookup
83 Summary(de):    DNS-Utils - Host, Dig, Dnsquery, Nslookup 
84 Summary(fr):    Utilitaires DNS - host, dig, dnsquery, nslookup
85 Summary(pl):    Narzêdzia DNS - host, dig, dnsquery, nslookup
86 Summary(tr):    DNS araçlarý - host, dig, dnsquery, nslookup
87 Group:          Networking/Utilities
88 Group(pl):      Sieciowe/Narzêdzia
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 devel
121 Summary:        DNS development includes and libs
122 Summary(pl):    Pliki nag³ówkowe i biblioteka statyczna
123 Group:          Development/Libraries
124 Group(fr):      Development/Librairies
125 Group(pl):      Programowanie/Biblioteki
126
127 %description devel
128 The bind-devel package contains all the include files and the library
129 required for DNS (Domain Name Service) development for BIND versions
130 8.x.x.
131
132 You should install bind-devel if you want to develop bind DNS
133 applications. If you install bind-devel, you'll also need to install
134 bind.
135
136 %description -l pl devel
137 Pakiet zawiera pliki nag³ówkowe i bibliotekê statyczn±. Je¿eli
138 bêdziesz pisa³ programy pod binda, lub kompilowa³ kod ¼ród³owy
139 oprogramowania korzystaj±cego z tych plików nag³ówkowych czy
140 biblioteki powiniene¶ zainstalowaæ ten pakiet.
141
142 %package doc
143 Summary:        Bind documentation
144 Summary(pl):    Dokumentacja programu bind
145 Group:          Documentation
146 Group(pl):      Dokumentacja
147
148 %description doc
149 Bind documentations
150
151 %decscription doc -l pl
152 Dokumentacja programu bind
153
154 %prep
155 %setup -q -c -n %{name}-%{version} -a 1 -a 2
156
157 %patch1 -p0
158 %patch2 -p1
159 %patch3 -p0
160 %patch4 -p1
161 %patch5 -p1
162 %patch6 -p0
163 %patch7 -p0
164 %patch8 -p0
165 %patch9 -p1
166 %patch10 -p1
167 cd contrib/host
168 %patch11 -p1
169
170 %build
171 rm -f compat/include/sys/cdefs.h
172 cd src
173 %{__make}       clean \
174         depend \
175         all \
176         DESTDIR="" \
177         CDEBUG="$RPM_OPT_FLAGS" \
178         DESTBIN="%{_bindir}" \
179         DESTSBIN="%{_sbindir}" \
180         DESTMAN="%{_mandir}" \
181         DESTHELP="%{_datadir}" \
182         DESTETC="%{_sysconfdir}" \
183         DESTRUN="/var/run"
184 cd ..
185 cd contrib/host
186 %{__make}
187
188 %install
189 rm -rf $RPM_BUILD_ROOT
190
191 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_datadir}} \
192         $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d} \
193         $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,7,8}
194
195 cd src
196 %{__make} install \
197         DESTDIR="$RPM_BUILD_ROOT" \
198         DESTINC="%{_includedir}/bind" \
199         DESTLIB="%{_libdir}" \
200         DESTBIN="%{_bindir}" \
201         DESTSBIN="%{_sbindir}" \
202         DESTMAN="%{_mandir}" \
203         DESTHELP="%{_datadir}" \
204         DESTETC="%{_sysconfdir}" \
205         DESTRUN="/var/run" \
206         INSTALL_LIB=" " \
207         INSTALL_EXEC=" "
208
209 strip $RPM_BUILD_ROOT{%{_sbin}/*,%{_bindir}/*} || :
210 cd ..
211
212 cd doc/man
213 %{__make} clean
214 %{__make} install \
215         MANROFF=cat \
216         CATEXT=\$\$N \
217         DESTDIR=$RPM_BUILD_ROOT \
218         DESTMAN=%{_mandir} \
219         MANDIR=man
220
221 cd ../../
222 install -d $RPM_BUILD_ROOT/var/{log,lib/named/{M,S}}
223
224 install src/bin/named/test/127.* $RPM_BUILD_ROOT/var/lib/named/M
225 install src/bin/named/test/loca* $RPM_BUILD_ROOT/var/lib/named/M
226 install src/conf/workstation/root.* $RPM_BUILD_ROOT/var/lib/named/root.hint
227 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}
228
229 install contrib/host/host $RPM_BUILD_ROOT%{_bindir}/host6
230
231 cp src/bin/named/named.conf EXAMPLE-CONFIG
232
233 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/named
234 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/named
235 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/named
236 touch $RPM_BUILD_ROOT/var/log/named
237
238 mv $RPM_BUILD_ROOT%{_bindir}/nsupdate $RPM_BUILD_ROOT%{_sbindir}
239 rm -f $RPM_BUILD_ROOT%{_bindir}/mkservdb \
240         $RPM_BUILD_ROOT%{_mandir}/man5/resolver.5
241
242 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[13578]/* \
243         src/README src/Version src/CHANGES EXAMPLE-CONFIG 
244
245 %pre
246 if [ -f /etc/named.boot ]; then
247         cp /etc/named.boot /etc/named.boot.2conf
248         mv -f /etc/named.boot /etc/named.rpmsave
249         echo "Warrnig: /etc/named.boot saved as /etc/named.rpmsave" 1>&2
250 fi
251 if ! id -g named > /dev/null 2>&1 ; then
252         %{_sbindir}/groupadd -g 58 named
253 fi
254 if ! id -u named > /dev/null 2>&1 ; then
255         %{_sbindir}/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named
256 fi
257 %{_bindir}/update-db
258
259 %post
260 /sbin/chkconfig --add named
261
262 if [ -f /var/lock/subsys/named ]; then
263         /etc/rc.d/init.d/named restart 1>&2
264 else
265         echo "Type \"/etc/rc.d/init.d/named start\" to start named" 1>&2
266 fi
267
268 if [ -f /etc/named.boot.2conf ]; then
269         /usr/sbin/named-bootconf </etc/named.boot.2conf >/etc/named.conf
270         rm /etc/named.boot.2conf
271 fi
272
273 umask 137
274 /bin/touch /var/log/named
275 chown root.named /var/log/named
276
277 %preun
278 if [ "$1" = "0" ]; then
279         if [ -f /var/lock/subsys/named ]; then
280                 /etc/rc.d/init.d/named stop 1>&2
281         fi
282         /sbin/chkconfig --del named
283 fi    
284
285 %postun
286 if [ "$1" = "0" ]; then
287         %{_sbindir}/groupdel named
288         %{_sbindir}/userdel named
289         %{_bindir}/update-db
290 fi
291
292 %clean
293 rm -rf $RPM_BUILD_ROOT
294
295 %files
296 %defattr(644,root,root,755)
297 %doc {src/README,src/Version,src/CHANGES,EXAMPLE-CONFIG}.gz
298
299 %attr(754,root,root) /etc/rc.d/init.d/named
300 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/named
301 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/named.conf
302 %attr(640,root,root) %config %verify(not size mtime md5) /etc/logrotate.d/named
303
304 %attr(755,root,root) %{_sbindir}/*
305
306 %{_mandir}/man8/named.8*
307 %{_mandir}/man8/ndc.8*
308 %{_mandir}/man8/named-xfer.8*
309 %{_mandir}/man8/named-bootconf.8*
310 %{_mandir}/man7/hostname.7*
311 %{_mandir}/man5/irs.conf.5*
312 %{_mandir}/man5/named.conf.5*
313 %{_mandir}/man1/dnskeygen.1*
314 %{_mandir}/man8/nsupdate.8*
315
316 %attr(770,root,named) %dir /var/lib/named
317 %attr(750,root,root) %dir /var/lib/named/M
318 %attr(770,root,named) %dir /var/lib/named/S
319
320 /var/lib/named/M/*
321 /var/lib/named/root.*
322
323 %attr(660,root,named) %ghost /var/log/named
324
325 %files utils
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_bindir}/*
328
329 %{_datadir}/nslookup.help
330
331 %{_mandir}/man1/dig.1*
332 %{_mandir}/man1/host.1*
333 %{_mandir}/man1/dnsquery.1*
334 %{_mandir}/man8/nslookup.8*
335
336 %files devel
337 %defattr(644,root,root,755)
338
339 %{_includedir}/bind
340 %{_libdir}/*.a
341 %{_mandir}/man3/*
342
343 %files doc
344 %defattr(644,root,root,755)
345 %doc doc/html doc/rfc doc/misc doc/notes
This page took 0.11095 seconds and 4 git commands to generate.