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