]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
fccb380290670a24710e6328701410cf6f526892
[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:        9.1.0
8 Release:        4
9 Epoch:          3
10 License:        Distributable
11 Group:          Networking/Daemons
12 Group(de):      Netzwerkwesen/Server
13 Group(pl):      Sieciowe/Serwery
14 Source0:        ftp://ftp.isc.org/isc/bind9/%{version}/%{name}-%{version}.tar.gz
15 Source1:        %{name}-conf.tar.gz
16 Source2:        named.init
17 Source3:        named.sysconfig
18 Source4:        named.logrotate
19 Source5:        nslookup.8
20 Source6:        resolver.5
21 BuildRequires:  sed
22 BuildRequires:  flex
23 BuildRequires:  openssl-devel
24 BuildRequires:  byacc
25 Prereq:         rc-scripts >= 0.2.0
26 Requires:       %{name}-libs = %{version}
27 Prereq:         /sbin/chkconfig
28 Prereq:         %{name}-libs
29 #Requires(pre,post):    fileutils
30 #Requires(pre,postun):  shadow
31 #Requires(post,preun):  chkconfig
32 #Requires(post,preun):  rc-scripts
33 URL:            http://www.isc.org/products/BIND/bind9.html
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Obsoletes:      caching-nameserver
36 Conflicts:      %{name}-chroot
37 Conflicts:      kernel < 2.2.18
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(de):      Netzwerkwesen/Werkzeuge
88 Group(pl):      Sieciowe/Narzêdzia
89 Requires:       %{name}-libs = %{version}
90
91 %description utils
92 Bind-utils contains a collection of utilities for querying DNS (Domain
93 Name Service) name servers to find out information about Internet
94 hosts. These tools will provide you with the IP addresses for given
95 host names, as well as other information about registered domains and
96 network addresses.
97
98 You should install bind-utils if you need to get information from DNS
99 name servers.
100
101 %description -l de utils
102 Dienstprogrammsammlung zum Abfragen von Namen-Servern und Hosts. Diese
103 Tools bestimmen die IP-Adresse eines angegebenen Host-Namen und finden
104 Informationen über registrierte Domains und Netzwerk-Adressen.
105
106 %description -l fr utils
107 Ensemble d'utilitaires pour interroger les serveurs de noms et
108 rechercher des hôtes. Ces outils vous permettent de déterminer les
109 adresses IP pour des noms d'hôtes donnés, et trouver des informations
110 sur les noms de domaine déclarés et les adresses réseau.
111
112 %description -l pl utils
113 Pakiet ten zawiera zbiór aplikacji umo¿liwiaj±cych odpytywanie
114 serwerów nazw z innych domen w celu uzyskania informacji o komupterach
115 i ich adresach IP.
116
117 %description -l tr utils
118 Bu pakette isim sunucularýný sorgulamak ve makina adreslerini çözmek
119 için kullanýlan araçlar bulunmaktadýr.
120
121 %package libs
122 Summary:        DNS libraries
123 Summary(pl):    Biblioteki DNS
124 Group:          Libraries
125 Group(de):      Libraries
126 Group(fr):      Librairies
127 Group(pl):      Biblioteki
128
129 %description libs
130 The bind-libs package contains all libraries required for
131 running BIND and bind utils.
132
133 %package devel
134 Summary:        DNS development includes and libs
135 Summary(pl):    Pliki nag³ówkowe i biblioteka statyczna
136 Group:          Development/Libraries
137 Group(de):      Entwicklung/Libraries
138 Group(fr):      Development/Librairies
139 Group(pl):      Programowanie/Biblioteki
140 Requires:       %{name}-libs = %{version}
141
142 %description devel
143 The bind-devel package contains all the include files and the library
144 required for DNS (Domain Name Service) development for BIND.
145
146 You should install bind-devel if you want to develop bind DNS
147 applications. If you install bind-devel, you'll also need to install
148 bind.
149
150 %description -l pl devel
151 Pakiet zawiera pliki nag³ówkowe i bibliotekê statyczn±. Je¿eli
152 bêdziesz pisa³ programy pod binda, lub kompilowa³ kod ¼ród³owy
153 oprogramowania korzystaj±cego z tych plików nag³ówkowych czy
154 biblioteki powiniene¶ zainstalowaæ ten pakiet.
155
156 %package static
157 Summary:        DNS static libs
158 Summary(pl):    Biblioteka statyczna
159 Group:          Development/Libraries
160 Group(de):      Entwicklung/Libraries
161 Group(fr):      Development/Librairies
162 Group(pl):      Programowanie/Biblioteki
163
164 %description static
165 Static bind libraries.
166
167 %description -l pl static
168 Statyczne biblioteki binda.
169
170 %prep
171 %setup -q -a1
172
173 %build
174 autoconf
175 %configure \
176         --with-openssl=%{_prefix} \
177         --with-libtool \
178         --enable-ipv6
179 %{__make}
180
181 %install
182 rm -rf $RPM_BUILD_ROOT
183
184 install -d $RPM_BUILD_ROOT{%{_includedir},%{_bindir},%{_sbindir},%{_includedir}}
185 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,logrotate.d,sysconfig}
186 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}
187 install -d $RPM_BUILD_ROOT%{_var}/{lib/named/{M,S,dev,etc},run,log}
188
189 %{__make} install \
190         DESTDIR=$RPM_BUILD_ROOT
191
192 install doc/man/bin/*.1                 $RPM_BUILD_ROOT%{_mandir}/man1
193 install doc/man/bin/*.5                 $RPM_BUILD_ROOT%{_mandir}/man5
194 install %{SOURCE6}                      $RPM_BUILD_ROOT%{_mandir}/man5
195 install doc/man/{bin/*.8,dnssec/*.8}    $RPM_BUILD_ROOT%{_mandir}/man8
196 install %{SOURCE5}                      $RPM_BUILD_ROOT%{_mandir}/man8
197
198 install conf-pld/*.zone                 $RPM_BUILD_ROOT%{_var}/lib/named/M
199 install conf-pld/*.hint                 $RPM_BUILD_ROOT%{_var}/lib/named
200 install conf-pld/*.conf                 $RPM_BUILD_ROOT%{_var}/lib/named/etc
201 install bin/tests/named.conf            EXAMPLE-CONFIG-named
202 install bin/tests/ndc.conf              EXAMPLE-CONFIG-ndc
203 install %{SOURCE2}                      $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/named
204 install %{SOURCE3}                      $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/named
205 install %{SOURCE4}                      $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/named
206 ln -s %{_var}/lib/named/etc/named.conf  $RPM_BUILD_ROOT%{_sysconfdir}/named.conf
207 ln -s %{_var}/lib/named/named.log       $RPM_BUILD_ROOT%{_var}/log/named
208 touch           $RPM_BUILD_ROOT%{_var}/lib/named/{named.log,dev/{random,null}}
209
210 gzip -9nf README EXAMPLE-CONFIG-* doc/misc/*
211
212 %pre
213 if [ -f %{_sysconfdir}/named.boot ]; then
214         cp %{_sysconfdir}/named.boot /etc/named.boot.2conf
215         mv -f %{_sysconfdir}/named.boot /etc/named.rpmsave
216         echo "Warrnig:%{_sysconfdir}/named.boot saved as /etc/named.rpmsave" 1>&2
217 fi
218 if ! id -g named > /dev/null 2>&1 ; then
219         %{_sbindir}/groupadd -g 58 named
220 fi
221 if ! id -u named > /dev/null 2>&1 ; then
222         %{_sbindir}/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named
223 fi
224
225 %post
226 /sbin/chkconfig --add named
227
228 if [ -f /var/lock/subsys/named ]; then
229         %{_sysconfdir}/rc.d/init.d/named restart 1>&2
230 else
231         echo "Type \"%{_sysconfdir}/rc.d/init.d/named start\" to start named" 1>&2
232 fi
233
234 %preun
235 if [ "$1" = "0" ]; then
236         if [ -f /var/lock/subsys/named ]; then
237                 %{_sysconfdir}/rc.d/init.d/named stop 1>&2
238         fi
239         /sbin/chkconfig --del named
240 fi    
241
242 %postun
243 if [ "$1" = "0" ]; then
244         %{_sbindir}/userdel named
245         %{_sbindir}/groupdel named
246 fi
247
248 %post   libs -p /sbin/ldconfig
249 %postun libs -p /sbin/ldconfig
250
251 %clean
252 rm -rf $RPM_BUILD_ROOT
253
254 %files
255 %defattr(644,root,root,755)
256 %doc *.gz doc/misc/*.gz doc/arm/*
257
258 %attr(754,root,root)  %{_sysconfdir}/rc.d/init.d/named
259 %attr(640,root,root)  %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/named
260 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/named.conf
261 %attr(640,root,root)  %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/named
262
263 %attr(755,root,root) %{_sbindir}/*
264 %attr(755,root,root) %{_bindir}/nsupdate
265
266 %{_mandir}/man8/dns*
267 %{_mandir}/man8/lwres*
268 %{_mandir}/man8/named*
269 %{_mandir}/man8/rndc*
270 %{_mandir}/man5/rndc*
271 %{_mandir}/man8/nsupdate*
272
273 %attr(770,root,named) %dir %{_var}/lib/named
274 %attr(750,root,named) %dir %{_var}/lib/named/M
275 %attr(770,root,named) %dir %{_var}/lib/named/S
276 %attr(770,root,named) %dir %{_var}/lib/named/dev
277
278 %{_var}/lib/named/M/*
279 %{_var}/lib/named/root.*
280 %{_var}/lib/named/etc/*
281
282 %ghost %{_var}/lib/named/dev/*
283 %attr(660,named,named) %ghost %{_var}/log/named
284
285 %files utils
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_bindir}/dig
288 %attr(755,root,root) %{_bindir}/host
289 %attr(755,root,root) %{_bindir}/nslookup
290 %{_mandir}/man1/dig.1*
291 %{_mandir}/man1/host.1*
292 %{_mandir}/man8/nslookup.8*
293
294 %files libs
295 %defattr(644,root,root,755)
296 %attr(755,root,root)  %{_libdir}/*.so.*.*
297
298 %files devel
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_bindir}/*.sh
301 %{_includedir}/*
302 %{_libdir}/*.so
303
304 %files static
305 %defattr(644,root,root,755)
306 %{_libdir}/*.a
This page took 0.036643 seconds and 2 git commands to generate.