]> git.pld-linux.org Git - packages/bind.git/blob - bind.spec
- really removed chroot crap
[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:        2
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:         /sbin/chkconfig
26 Requires:       rc-scripts >= 0.2.0
27 Requires:       %{name}-libs = %{version}
28 Obsoletes:      caching-nameserver
29 Conflicts:      %{name}-chroot
30 Conflicts:      kernel < 2.2.18
31 URL:            http://www.isc.org/products/BIND/bind9.html
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 BIND (Berkeley Internet Name Domain) is an implementation of the DNS
36 (Domain Name System) protocols. BIND includes a DNS server (named),
37 which resolves host names to IP addresses, and a resolver library
38 (routines for applications to use when interfacing with DNS). A DNS
39 server allows clients to name resources or objects and share the
40 information with other network machines. The named DNS server can be
41 used on workstations as a caching name server, but is generally only
42 needed on one machine for an entire network. Note that the
43 configuration files for making BIND act as a simple caching nameserver
44 are included in the caching-nameserver package.
45
46 Install the bind package if you need a DNS server for your network. If
47 you want bind to act a caching name server, you will also need to
48 install the 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 Workstations als
53 caching Namen-Server verwendet werden, ist aber i.d.R. nur auf einem
54 Recher des Netzwerks erforderlich.
55
56 %description -l fr
57 Contient le serveur de noms named, utilisé pour définir les
58 traductions nom d'hôte vers adresse IP (et vice versa). Il peut être
59 utilisé sur les stations de travail comme serveur de nom en cache mais
60 n'est souvent 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),
66 ale generalnie wystarczy tylko jedna jednostka wyposa¿ona w ten
67 program na fragment sieci.
68
69 %description -l tr
70 Bu paket, makina adýný IP numarasýna (ya da tersi) çevirmek için
71 kullanýlan alan adý sunucusunu içerir. Ýþ istasyonlarýnda bir önbellek
72 isim sunucusu olarak da kullanýlabilir ama genellikle bütün bir að
73 için sadece bir makina ü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(de):      Netzwerkwesen/Werkzeuge
83 Group(pl):      Sieciowe/Narzêdzia
84 Requires:       %{name}-libs = %{version}
85
86 %description utils
87 Bind-utils contains a collection of utilities for querying DNS (Domain
88 Name Service) name servers to find out information about Internet
89 hosts. These tools will provide you with the IP addresses for given
90 host names, as well as other information about registered domains and
91 network addresses.
92
93 You should install bind-utils if you need to get information from DNS
94 name servers.
95
96 %description -l de utils
97 Dienstprogrammsammlung zum Abfragen von Namen-Servern und Hosts. Diese
98 Tools bestimmen die IP-Adresse eines angegebenen Host-Namen und finden
99 Informationen über registrierte Domains und Netzwerk-Adressen.
100
101 %description -l fr utils
102 Ensemble d'utilitaires pour interroger les serveurs de noms et
103 rechercher des hôtes. Ces outils vous permettent de déterminer les
104 adresses IP pour des noms d'hôtes donnés, et trouver des informations
105 sur les noms de domaine déclarés et les adresses réseau.
106
107 %description -l pl utils
108 Pakiet ten zawiera zbiór aplikacji umo¿liwiaj±cych odpytywanie
109 serwerów nazw z innych domen w celu uzyskania informacji o komupterach
110 i ich adresach IP.
111
112 %description -l tr utils
113 Bu pakette isim sunucularýný sorgulamak ve makina adreslerini çözmek
114 için kullanýlan araçlar bulunmaktadýr.
115
116 %package libs
117 Summary:        DNS libraries
118 Summary(pl):    Biblioteki DNS
119 Group:          Libraries
120 Group(de):      Libraries
121 Group(fr):      Librairies
122 Group(pl):      Biblioteki
123
124 %description libs
125 The bind-libs package contains all libraries required for
126 running BIND and bind utils.
127
128 %package devel
129 Summary:        DNS development includes and libs
130 Summary(pl):    Pliki nag³ówkowe i biblioteka statyczna
131 Group:          Development/Libraries
132 Group(de):      Entwicklung/Libraries
133 Group(fr):      Development/Librairies
134 Group(pl):      Programowanie/Biblioteki
135 Requires:       %{name}-libs = %{version}
136
137 %description devel
138 The bind-devel package contains all the include files and the library
139 required for DNS (Domain Name Service) development for BIND.
140
141 You should install bind-devel if you want to develop bind DNS
142 applications. If you install bind-devel, you'll also need to install
143 bind.
144
145 %description -l pl devel
146 Pakiet zawiera pliki nag³ówkowe i bibliotekê statyczn±. Je¿eli
147 bêdziesz pisa³ programy pod binda, lub kompilowa³ kod ¼ród³owy
148 oprogramowania korzystaj±cego z tych plików nag³ówkowych czy
149 biblioteki powiniene¶ zainstalowaæ ten pakiet.
150
151 %package static
152 Summary:        DNS static libs
153 Summary(pl):    Biblioteka statyczna
154 Group:          Development/Libraries
155 Group(de):      Entwicklung/Libraries
156 Group(fr):      Development/Librairies
157 Group(pl):      Programowanie/Biblioteki
158
159 %description static
160 Static bind libraries.
161
162 %description -l pl static
163 Statyczne biblioteki binda.
164
165 %prep
166 %setup -q -a1
167
168 %build
169 autoconf
170 %configure \
171         --with-openssl=%{_prefix} \
172         --with-libtool \
173         --enable-ipv6
174 %{__make}
175
176 %install
177 rm -rf $RPM_BUILD_ROOT
178
179 install -d $RPM_BUILD_ROOT{%{_includedir},%{_bindir},%{_sbindir},%{_includedir}}
180 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,logrotate.d,sysconfig}
181 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}
182 install -d $RPM_BUILD_ROOT%{_var}/{lib/named/{M,S,dev,etc},run,log}
183
184 %{__make} install \
185         DESTDIR=$RPM_BUILD_ROOT
186
187 install doc/man/bin/*.1                 $RPM_BUILD_ROOT%{_mandir}/man1
188 install doc/man/bin/*.5                 $RPM_BUILD_ROOT%{_mandir}/man5
189 install %{SOURCE6}                      $RPM_BUILD_ROOT%{_mandir}/man5
190 install doc/man/{bin/*.8,dnssec/*.8}    $RPM_BUILD_ROOT%{_mandir}/man8
191 install %{SOURCE5}                      $RPM_BUILD_ROOT%{_mandir}/man8
192
193 install conf-pld/*.zone                 $RPM_BUILD_ROOT%{_var}/lib/named/M
194 install conf-pld/*.hint                 $RPM_BUILD_ROOT%{_var}/lib/named
195 install conf-pld/*.conf                 $RPM_BUILD_ROOT%{_var}/lib/named/etc
196 install bin/tests/named.conf            EXAMPLE-CONFIG-named
197 install bin/tests/ndc.conf              EXAMPLE-CONFIG-ndc
198 install %{SOURCE2}                      $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/named
199 install %{SOURCE3}                      $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/named
200 install %{SOURCE4}                      $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/named
201 ln -s %{_var}/lib/named/etc/named.conf  $RPM_BUILD_ROOT%{_sysconfdir}/named.conf
202 ln -s %{_var}/lib/named/named.log       $RPM_BUILD_ROOT%{_var}/log/named
203 touch           $RPM_BUILD_ROOT%{_var}/lib/named/{named.log,dev/{random,null}}
204
205 gzip -9nf README EXAMPLE-CONFIG-* doc/misc/*
206
207 %pre
208 if [ -f %{_sysconfdir}/named.boot ]; then
209         cp %{_sysconfdir}/named.boot /etc/named.boot.2conf
210         mv -f %{_sysconfdir}/named.boot /etc/named.rpmsave
211         echo "Warrnig:%{_sysconfdir}/named.boot saved as /etc/named.rpmsave" 1>&2
212 fi
213 if ! id -g named > /dev/null 2>&1 ; then
214         %{_sbindir}/groupadd -g 58 named
215 fi
216 if ! id -u named > /dev/null 2>&1 ; then
217         %{_sbindir}/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named
218 fi
219
220 %post
221 /sbin/chkconfig --add named
222
223 if [ -f /var/lock/subsys/named ]; then
224         %{_sysconfdir}/rc.d/init.d/named restart 1>&2
225 else
226         echo "Type \"%{_sysconfdir}/rc.d/init.d/named start\" to start named" 1>&2
227 fi
228 umask 117
229 /bin/touch              %{_var}/lib/named/named.log
230 chown named.named       %{_var}/lib/named/named.log
231 ln -sf %{_var}/lib/named/named.log      %{_var}/log/named
232
233 umask 022
234 /bin/mknod -m u+rw,go+r         %{_var}/lib/named/dev/random c 1 8 > /dev/null 2>&1
235 /bin/mknod -m a+rw              %{_var}/lib/named/dev/null c 1 3 > /dev/null 2>&1
236
237 %preun
238 if [ "$1" = "0" ]; then
239         if [ -f /var/lock/subsys/named ]; then
240                 %{_sysconfdir}/rc.d/init.d/named stop 1>&2
241         fi
242         /sbin/chkconfig --del named
243 fi    
244
245 %postun
246 if [ "$1" = "0" ]; then
247         %{_sbindir}/userdel named
248         %{_sbindir}/groupdel named
249 fi
250
251 %post libs -p /sbin/ldconfig
252 %postun libs -p /sbin/ldconfig
253
254 %clean
255 rm -rf $RPM_BUILD_ROOT
256
257 %files
258 %defattr(644,root,root,755)
259 %doc *.gz doc/misc/*.gz doc/arm/*
260
261 %attr(754,root,root)  %{_sysconfdir}/rc.d/init.d/named
262 %attr(640,root,root)  %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/named
263 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/named.conf
264 %attr(640,root,root)  %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/named
265
266 %attr(755,root,root) %{_sbindir}/*
267 %attr(755,root,root) %{_bindir}/nsupdate
268
269 %{_mandir}/man8/dns*
270 %{_mandir}/man8/lwres*
271 %{_mandir}/man8/named*
272 %{_mandir}/man8/rndc*
273 %{_mandir}/man5/rndc*
274 %{_mandir}/man8/nsupdate*
275
276 %attr(770,root,named) %dir %{_var}/lib/named
277 %attr(750,root,named) %dir %{_var}/lib/named/M
278 %attr(770,root,named) %dir %{_var}/lib/named/S
279 %attr(770,root,named) %dir %{_var}/lib/named/dev
280
281 %{_var}/lib/named/M/*
282 %{_var}/lib/named/root.*
283 %{_var}/lib/named/etc/*
284
285 %ghost %{_var}/lib/named/dev/*
286 %attr(660,named,named) %ghost %{_var}/log/named
287
288 %files utils
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_bindir}/dig
291 %attr(755,root,root) %{_bindir}/host
292 %attr(755,root,root) %{_bindir}/nslookup
293 %{_mandir}/man1/dig.1*
294 %{_mandir}/man1/host.1*
295 %{_mandir}/man8/nslookup.8*
296
297 %files libs
298 %defattr(644,root,root,755)
299 %attr(755,root,root)  %{_libdir}/*.so.*.*
300
301 %files devel
302 %defattr(644,root,root,755)
303 %attr(755,root,root) %{_bindir}/*.sh
304 %{_includedir}/*
305 %{_libdir}/*.so
306
307 %files static
308 %defattr(644,root,root,755)
309 %{_libdir}/*.a
This page took 0.041012 seconds and 3 git commands to generate.