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