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