]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
- release++
[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:        14
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 BuildRequires:  flex
30 Prereq:         /sbin/chkconfig
31 Requires:       rc-scripts >= 0.2.0
32 Obsoletes:      caching-nameserver
33 URL:            http://www.isc.org/bind.html
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _datadir        %{_prefix}/share/misc
37 %define         _sysconfdir     /etc
38
39 %description
40 BIND (Berkeley Internet Name Domain) is an implementation of the DNS (Domain
41 Name System) protocols. BIND includes a DNS server (named), which resolves
42 host names to IP addresses, and a resolver library (routines for
43 applications to use when interfacing with DNS). A DNS server allows clients
44 to name resources or objects and share the information with other network
45 machines. The named DNS server can be used on workstations as a caching name
46 server, but is generally only needed on one machine for an entire network.
47 Note that the configuration files for making BIND act as a simple caching
48 nameserver are included in the caching-nameserver package.
49
50 Install the bind package if you need a DNS server for your network.  If you
51 want bind to act a caching name server, you will also need to install the
52 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
57 Workstations als caching Namen-Server verwendet werden, ist aber
58 i.d.R. nur auf einem Recher des Netzwerks erforderlich.
59
60 %description -l fr
61 Contient le serveur de noms named, utilisé pour définir les traductions
62 nom d'hôte vers adresse IP (et vice versa). Il peut être utilisé sur
63 les stations de travail comme serveur de nom en cache mais n'est souvent
64 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), ale
70 generalnie wystarczy tylko jedna jednostka wyposa¿ona w ten program na
71 fragment sieci.
72
73 %description -l tr
74 Bu paket, makina adýný IP numarasýna (ya da tersi) çevirmek için kullanýlan
75 alan adý sunucusunu içerir. Ýþ istasyonlarýnda bir önbellek isim sunucusu
76 olarak da kullanýlabilir ama genellikle bütün bir að için sadece bir makina
77 ü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(pl):      Sieciowe/Narzêdzia
87
88 %description utils
89 Bind-utils contains a collection of utilities for querying DNS (Domain Name
90 Service) name servers to find out information about Internet hosts. These
91 tools will provide you with the IP addresses for given host names, as well
92 as other information about registered domains and network addresses.
93
94 You should install bind-utils if you need to get information from DNS name
95 servers.
96
97 %description -l de utils
98 Dienstprogrammsammlung zum Abfragen von Namen-Servern und Hosts.
99 Diese Tools bestimmen die IP-Adresse eines angegebenen Host-Namen
100 und finden Informationen über registrierte Domains und Netzwerk-Adressen.
101
102 %description -l fr utils
103 Ensemble d'utilitaires pour interroger les serveurs de noms et rechercher
104 des hôtes. Ces outils vous permettent de déterminer les adresses IP pour
105 des noms d'hôtes donnés, et trouver des informations sur les noms de
106 domaine déclarés et les adresses réseau.
107
108 %description -l pl utils
109 Pakiet ten zawiera zbiór aplikacji umo¿liwiaj±cych odpytywanie serwerów
110 nazw z innych domen w celu uzyskania informacji o komupterach i ich
111 adresach IP.
112
113 %description -l tr utils
114 Bu pakette isim sunucularýný sorgulamak ve makina adreslerini çözmek için
115 kullanýlan araçlar bulunmaktadýr.
116
117 %package devel
118 Summary:        DNS development includes and libs
119 Summary(pl):    Pliki nag³ówkowe i biblioteka statyczna
120 Group:          Development/Libraries
121 Group(pl):      Programowanie/Biblioteki
122
123 %description devel
124 The bind-devel package contains all the include files and the 
125 library required for DNS (Domain Name Service) development for 
126 BIND versions 8.x.x.
127
128 You should install bind-devel if you want to develop bind DNS
129 applications. If you install bind-devel, you'll also need to install
130 bind.
131
132 %description -l pl devel
133 Pakiet zawiera pliki nag³ówkowe i bibliotekê statyczn±. Je¿eli bêdziesz
134 pisa³ programy pod binda, lub kompilowa³ kod ¼ród³owy oprogramowania
135 korzystaj±cego z tych plików nag³ówkowych czy biblioteki powiniene¶
136 zainstalowaæ ten pakiet.
137
138 %package doc
139 Summary:        Bind documentation
140 Summary(pl):    Dokumentacja programu bind
141 Group:          Documentation
142 Group(pl):      Dokumentacja
143
144 %description doc
145 Bind documentations
146
147 %decscription doc -l pl
148 Dokumentacja programu bind
149
150 %prep
151 %setup -q -c -n %{name}-%{version} -a 1 -a 2
152
153 %patch1 -p0
154 %patch2 -p1
155 %patch3 -p0
156 %patch4 -p1
157 %patch5 -p1
158 %patch6 -p0
159 %patch7 -p0
160 %patch8 -p0
161 %patch9 -p1
162 %patch10 -p1
163
164 %build
165 rm -f compat/include/sys/cdefs.h
166 cd src
167 make    clean \
168         depend \
169         all \
170         DESTDIR="" \
171         CDEBUG="$RPM_OPT_FLAGS" \
172         DESTBIN="%{_bindir}" \
173         DESTSBIN="%{_sbindir}" \
174         DESTMAN="%{_mandir}" \
175         DESTHELP="%{_datadir}" \
176         DESTETC="%{_sysconfdir}" \
177         DESTRUN="/var/run"
178
179 %install
180 rm -rf $RPM_BUILD_ROOT
181
182 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_datadir}} \
183         $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d} \
184         $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,7,8}
185
186 cd src
187 make install \
188         DESTDIR="$RPM_BUILD_ROOT" \
189         DESTINC="%{_includedir}/bind" \
190         DESTLIB="%{_libdir}" \
191         DESTBIN="%{_bindir}" \
192         DESTSBIN="%{_sbindir}" \
193         DESTMAN="%{_mandir}" \
194         DESTHELP="%{_datadir}" \
195         DESTETC="%{_sysconfdir}" \
196         DESTRUN="/var/run" \
197         INSTALL_LIB=" " \
198         INSTALL_EXEC=" "
199
200 strip $RPM_BUILD_ROOT{%{_sbin}/*,%{_bindir}/*} || :
201 cd ..
202
203 cd doc/man
204 make clean
205 make install \
206         MANROFF=cat \
207         CATEXT=\$\$N \
208         DESTDIR=$RPM_BUILD_ROOT \
209         DESTMAN=%{_mandir} \
210         MANDIR=man
211
212 cd ../../
213 install -d $RPM_BUILD_ROOT/var/{log,lib/named/{M,S}}
214
215 install src/bin/named/test/127.*    $RPM_BUILD_ROOT/var/lib/named/M
216 install src/bin/named/test/loca*    $RPM_BUILD_ROOT/var/lib/named/M
217 install src/conf/workstation/root.* $RPM_BUILD_ROOT/var/lib/named/root.hint
218 install %{SOURCE6}              $RPM_BUILD_ROOT/etc
219
220 cp src/bin/named/named.conf EXAMPLE-CONFIG
221
222 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/named
223 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/named
224 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/named
225 touch $RPM_BUILD_ROOT/var/log/named
226
227 mv $RPM_BUILD_ROOT%{_bindir}/nsupdate $RPM_BUILD_ROOT%{_sbindir}
228 rm -f $RPM_BUILD_ROOT%{_bindir}/mkservdb \
229         $RPM_BUILD_ROOT%{_mandir}/man5/resolver.5
230
231 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man[13578]/* \
232         src/README src/Version src/CHANGES EXAMPLE-CONFIG 
233
234 %pre
235 if [ -f /etc/named.boot ]; then
236         cp /etc/named.boot /etc/named.boot.2conf
237         mv -f /etc/named.boot /etc/named.rpmsave
238         echo "Warrnig: /etc/named.boot saved as /etc/named.rpmsave" 1>&2
239 fi
240 if ! id -g named; then
241         %{_sbindir}/groupadd -g 58 named
242 fi
243 if ! id -u named; then
244         %{_sbindir}/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named
245 fi
246 %{_bindir}/update-db
247
248 %post
249 /sbin/chkconfig --add named
250
251 if [ -f /var/lock/subsys/named ]; then
252         /etc/rc.d/init.d/named restart 1>&2
253 else
254         echo "Type \"/etc/rc.d/init.d/named start\" to start named" 1>&2
255 fi
256
257 if [ -f /etc/named.boot.2conf ]; then
258         /usr/sbin/named-bootconf </etc/named.boot.2conf >/etc/named.conf
259         rm /etc/named.boot.2conf
260 fi
261
262 umask 137
263 /bin/touch /var/log/named
264 chown root.named /var/log/named
265
266 %preun
267 if [ "$1" = "0" ]; then
268         if [ -f /var/lock/subsys/named ]; then
269                 /etc/rc.d/init.d/named stop 1>&2
270         fi
271         /sbin/chkconfig --del named
272 fi    
273
274 %postun
275 if [ "$1" = "0" ]; then
276         %{_sbindir}/groupdel named
277         %{_sbindir}/userdel named
278         %{_bindir}/update-db
279 fi
280
281 %clean
282 rm -rf $RPM_BUILD_ROOT
283
284 %files
285 %defattr(644,root,root,755)
286 %doc {src/README,src/Version,src/CHANGES,EXAMPLE-CONFIG}.gz
287
288 %attr(754,root,root) /etc/rc.d/init.d/named
289 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/named
290 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) /etc/named.conf
291 %attr(640,root,root) %config %verify(not size mtime md5) /etc/logrotate.d/named
292
293 %attr(755,root,root) %{_sbindir}/*
294
295 %{_mandir}/man8/named.8*
296 %{_mandir}/man8/ndc.8*
297 %{_mandir}/man8/named-xfer.8*
298 %{_mandir}/man8/named-bootconf.8*
299 %{_mandir}/man7/hostname.7*
300 %{_mandir}/man5/irs.conf.5*
301 %{_mandir}/man5/named.conf.5*
302 %{_mandir}/man1/dnskeygen.1*
303 %{_mandir}/man8/nsupdate.8*
304
305 %attr(770,root,named) %dir /var/lib/named
306 %attr(750,root,root) %dir /var/lib/named/M
307 %attr(770,root,named) %dir /var/lib/named/S
308
309 /var/lib/named/M/*
310 /var/lib/named/root.*
311
312 %attr(660,root,named) %ghost /var/log/named
313
314 %files utils
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_bindir}/*
317
318 %{_datadir}/nslookup.help
319
320 %{_mandir}/man1/dig.1*
321 %{_mandir}/man1/host.1*
322 %{_mandir}/man1/dnsquery.1*
323 %{_mandir}/man8/nslookup.8*
324
325 %files devel
326 %defattr(644,root,root,755)
327
328 %{_includedir}/bind
329 %{_libdir}/*.a
330 %{_mandir}/man3/*
331
332 %files doc
333 %defattr(644,root,root,755)
334 %doc doc/html doc/rfc doc/misc doc/notes
This page took 0.050963 seconds and 3 git commands to generate.