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