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