]> git.pld-linux.org Git - packages/djbdns.git/blob - djbdns.spec
- Req varios dns users
[packages/djbdns.git] / djbdns.spec
1 Summary:        DJB DNS
2 Summary(pl):    DJB DNS
3 Name:           djbdns
4 Version:        1.05
5 Release:        13
6 License:        http://cr.yp.to/distributors.html (free to use)
7 Group:          Networking/Daemons
8 Source0:        http://cr.yp.to/djbdns/%{name}-%{version}.tar.gz
9 Source1:        %{name}-doc.tar.gz
10 Source2:        ftp://ftp.innominate.org/gpa/djb/%{name}-%{version}-man.tar.gz
11 Patch0:         dnscache-1.05-multiple-ip.patch
12 Patch1:         http://www.fefe.de/dns/%{name}-1.05-ipv6.diff
13 #               based on http://www.ohse.de/uwe/patches/djbdns-1.05-multiip.diff
14 Patch2:         %{name}-1.05-multiip.diff
15 Patch3:         http://iksz.hu/package/djbdns-conf/djbdns-1.05-multi_tinydns_data.patch
16 Patch4:         %{name}-srv.patch
17 Patch5:         %{name}-glibc.patch
18 URL:            http://cr.yp.to/djbdns.html
19 Requires(pre):  user-dnslog
20 Provides:       nameserver
21 Obsoletes:      caching-nameserver
22 Obsoletes:      nameserver
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This is a set of DNS servers with security in mind. If you find a
27 security hole you can get a prize.
28
29 This package contains some basic DNS debugging tools and some
30 documentation. If you need a DNS server install one of the following
31 packages:
32
33  - djbdns-dnscache - a local DNS cache
34  - djbdns-tinydns - a DNS server
35  - djbdns-pickdns - a DNS load-balancing server
36  - djbdns-walldns - a reverse DNS wall
37  - djbdns-rbldns - an IP-address-listing DNS server
38  - djbdns-axfrdns - a DNS zone transfer server
39
40 %description -l de
41 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
42 ein Preis, wenn man ein Sicherheitsloch findet.
43
44 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
45 Wenn du einen DNS-Server braucht, installe ein von den folgenden
46 Paketen:
47
48  - djbdns-dnscache - ein lokaler DNS-Cache
49  - djbdns-tinydns - ein DNS-Server
50  - djbdns-pickdns - ein Belastung ausgleichender DNS-Server
51  - djbdns-walldns - eine Wand Rückgekehrten DNSs
52  - djbdns-rbldns - ein IP-Adressen-Listen-DNS-Server
53  - djbdns-axfrdns - ein DNS-Zonen-Transfer-Server
54
55 %description -l pl
56 Jest to alternatywny zestaw serwerów DNS'u, którego g³ównym celem jest
57 bezpieczeñstwo. Za znalezienie dziury w tym systemie zosta³a
58 wyznaczona nawet nagroda.
59
60 Ten pakiet zawiera kilka podstawowych narzêdzi DNS oraz trochê
61 dokumentacji. Je¶li potrzebujesz serwera DNS zainstaluj jeden z
62 nastêpuj±cych pakietów:
63
64  - djbdns-dnscache - lokalny cache DNS
65  - djbdns-tinydns - serwer DNS
66  - djbdns-pickdns - serwer DNS do równowa¿enia obci±¿eñ
67  - djbdns-walldns - ¶ciana dla odwrotnych zapytañ DNS
68  - djbdns-rbldns - serwer DNS list adresów IP
69  - djbdns-axfrdns - serwer transferów stref DNS
70
71 %package dnscache
72 Summary:        DJB's local DNS cache
73 Summary(de):    DJBs lokaler DNS-Cache
74 Summary(pl):    Lokalny cache DNS od DJB
75 Group:          Networking/Daemons
76 PreReq:         %{name} = %{version}
77 Requires(pre):  user-dnscache
78 Requires(post): diffutils
79 Requires(post): fileutils
80 Requires(preun):        daemontools
81 Requires:       daemontools >= 0.70-5
82 Obsoletes:      dnscache
83
84 %description dnscache
85 dnscache is a local DNS cache from the djbdns package. It accepts
86 recursive DNS queries from local clients such as web browsers and mail
87 transfer agents. It collects responses from remote DNS servers. It
88 caches the responses to save time later.
89
90 %description dnscache -l de
91 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
92 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
93 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
94 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
95 zu sparen.
96
97 %description dnscache -l pl
98 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
99 rekursywne zapytania DNS od lokalnych klientów takich, jak
100 przegl±darki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
101 od zdalnych serwerów DNS. Zapamiêtuje on odpowiedzi, ¿eby pó¼niej
102 oszczêdziæ czas.
103
104 %package tinydns
105 Summary:        DJB's DNS server
106 Summary(de):    DJBs DNS-Server
107 Summary(pl):    Serwer DNS od DJB
108 Group:          Networking/Daemons
109 PreReq:         %{name} = %{version}
110 Requires(pre):  user-tinydns
111 Requires(post): diffutils
112 Requires(preun):        daemontools
113 Requires:       daemontools >= 0.70-5
114 Requires:       make
115 Obsoletes:      tinydns
116
117 %description tinydns
118 tinydns is a DNS server from the djbdns package. It accepts iterative
119 DNS queries from hosts around the Internet and responds with
120 locally-configured information.
121
122 %description tinydns -l de
123 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
124 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
125 lokal-konfigurierten Informationen.
126
127 %description tinydns -l pl
128 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
129 zapytania DNS od komputerów z ca³ego Internetu i odpowiada przy u¿yciu
130 lokalnie skonfigurowanych informacji.
131
132 %package pickdns
133 Summary:        DJB's load-balancing DNS server
134 Summary(de):    DJBs Belastung ausgleichender DNS-Server
135 Summary(pl):    Serwer DNS równowa¿±cy obci±¿enie od DJB
136 Group:          Networking/Daemons
137 PreReq:         %{name} = %{version}
138 Requires(pre):  user-pickdns
139 Requires(post): diffutils
140 Requires(preun):        daemontools
141 Requires:       daemontools >= 0.70-5
142 Requires:       make
143 Obsoletes:      pickdns
144
145 %description pickdns
146 pickdns is a DNS load-balancing server from the djbdns package. It
147 accepts iterative DNS queries from hosts around the Internet and
148 responds with a dynamic selection of locally configured IP addresses
149 with 5-second TTLs.
150
151 %description pickdns -l de
152 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
153 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
154 Internet und antwortet mit eine dynamische Auswahl von den
155 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
156
157 %description pickdns -l pl
158 pickdns jest równowa¿±cym obci±¿enie serwerem DNS z pakietu djbdns.
159 Odbiera on iteracyjne zapytania DNS od komputerów z ca³ego internetu i
160 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
161 5-sekundowymi TTLami.
162
163 %package walldns
164 Summary:        DJB's reverse DNS wall
165 Summary(de):    DJBs Wand rückgekehrten DNSs
166 Summary(pl):    ¦ciana dla odwrotnych zapytañ DNS od DJB
167 Group:          Networking/Daemons
168 PreReq:         %{name} = %{version}
169 Requires(pre):  user-walldns
170 Requires(post): diffutils
171 Requires(preun):        daemontools
172 Requires:       daemontools >= 0.70-5
173 Obsoletes:      walldns
174
175 %description walldns
176 walldns is a reverse DNS wall from the djbdns package. It accepts
177 iterative DNS queries for in-addr.arpa domains from hosts around the
178 Internet and supplies generic responses that avoid revealing local
179 host information.
180
181 %description walldns -l de
182 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
183 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
184 Hosts aus allem Internet und liefert Antworte, die vermeiden
185 Informationen über die lokalen Hosts zu aufzudecken.
186
187 %description walldns -l pl
188 walldns jest ¶cian± dla odwrotnych zapytañ DNS z pakietu djbdns.
189 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
190 komputerów z ca³ego Internetu i dostarcza odpowiedzi, które unikaj±
191 ujawniania informacji o lokalnych komputerach.
192
193 %package rbldns
194 Summary:        DJB's IP-address-listing DNS server
195 Summary(de):    DJBs IP-Adressen-Listen-DNS-Server
196 Summary(pl):    Serwer DNS list adresów IP od DJB
197 Group:          Networking/Daemons
198 PreReq:         %{name} = %{version}
199 Requires(pre):  user-rbldns
200 Requires(post): diffutils
201 Requires(preun):        daemontools
202 Requires:       daemontools >= 0.70-5
203 Requires:       make
204 Obsoletes:      rbldns
205
206 %description rbldns
207 rbldns is an IP-address-listing DNS server from the djbdns package. It
208 accepts iterative DNS queries from hosts around the Internet asking
209 about various IP addresses. It provides responses showing whether the
210 addresses are on a locally configured list, such as RBL or DUL.
211
212 %description rbldns -l de
213 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
214 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
215 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
216 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
217 Beispiel RBL oder DUL.
218
219 %description rbldns -l pl
220 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
221 iteracyjne zapytania DNS od komputerów z ca³ego Internetu pytaj±ce o
222 ró¿ne adresy IP. Dostarcza on odpowiedzi pokazuj±cych, czy adresy te
223 s± na lokalnie skonfigurowanej li¶cie takiej, jak RBL lub DUL.
224
225 %package axfrdns
226 Summary:        DJB's DNS zone-transfer server
227 Summary(de):    DJBs DNS-Zonen-Transfer-Server
228 Summary(pl):    Serwer transferów stref DNS od DJB
229 Group:          Networking/Daemons
230 PreReq:         %{name} = %{version}
231 Requires(pre):  user-axfrdns
232 Requires(preun):        daemontools
233 Requires:       %{name}-tinydns = %{version}
234 Requires:       daemontools >= 0.70-5
235 Requires:       make
236 Requires:       ucspi-tcp
237 Obsoletes:      axfrdns
238
239 %description axfrdns
240 axfrdns is a DNS zone transfer server from the djbdns package. It
241 reads a zone-transfer request in DNS-over-TCP format from its standard
242 input and responds with locally configured information.
243
244 %description axfrdns -l de
245 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
246 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
247 standarden Eingabe und antwortet mit den lokal-konfigurierten
248 Informationen.
249
250 %description axfrdns -l pl
251 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
252 on ze standardowego wej¶cia pro¶bê o transfer strefy w formacie
253 DNS-over-TCP i odpowiada przy u¿yciu lokalnie skonfigurowanych
254 informacji.
255
256 %prep
257 %setup -q -a1 -a2
258
259 %patch0 -p1
260 %patch1 -p1
261 %patch2 -p1
262 %patch3 -p1
263 %patch4 -p1
264 %patch5
265 cd doc
266 ln -s merge/djbdns/* .
267
268 %build
269 echo %{__cc} %{rpmcflags} >conf-cc
270 echo %{_prefix} > conf-home
271 %{__make}
272
273 %install
274 rm -rf $RPM_BUILD_ROOT
275 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
276 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
277
278 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
279 install axfr-get        $RPM_BUILD_ROOT%{_bindir}
280 install axfrdns         $RPM_BUILD_ROOT%{_bindir}
281 install axfrdns-conf    $RPM_BUILD_ROOT%{_bindir}
282 install cachetest       $RPM_BUILD_ROOT%{_bindir}
283 install dnscache        $RPM_BUILD_ROOT%{_bindir}
284 install dnscache-conf   $RPM_BUILD_ROOT%{_bindir}
285 install dnsfilter       $RPM_BUILD_ROOT%{_bindir}
286 install dnsip           $RPM_BUILD_ROOT%{_bindir}
287 install dnsipq          $RPM_BUILD_ROOT%{_bindir}
288 install dnsmx           $RPM_BUILD_ROOT%{_bindir}
289 install dnsname         $RPM_BUILD_ROOT%{_bindir}
290 install dnsq            $RPM_BUILD_ROOT%{_bindir}
291 install dnsqr           $RPM_BUILD_ROOT%{_bindir}
292 install dnstrace        $RPM_BUILD_ROOT%{_bindir}
293 install dnstxt          $RPM_BUILD_ROOT%{_bindir}
294 install pickdns         $RPM_BUILD_ROOT%{_bindir}
295 install pickdns-conf    $RPM_BUILD_ROOT%{_bindir}
296 install pickdns-data    $RPM_BUILD_ROOT%{_bindir}
297 install random-ip       $RPM_BUILD_ROOT%{_bindir}
298 install rbldns          $RPM_BUILD_ROOT%{_bindir}
299 install rbldns-conf     $RPM_BUILD_ROOT%{_bindir}
300 install rbldns-data     $RPM_BUILD_ROOT%{_bindir}
301 install rts             $RPM_BUILD_ROOT%{_bindir}
302 install tinydns         $RPM_BUILD_ROOT%{_bindir}
303 install tinydns-conf    $RPM_BUILD_ROOT%{_bindir}
304 install tinydns-data    $RPM_BUILD_ROOT%{_bindir}
305 install tinydns-edit    $RPM_BUILD_ROOT%{_bindir}
306 install tinydns-get     $RPM_BUILD_ROOT%{_bindir}
307 install walldns         $RPM_BUILD_ROOT%{_bindir}
308 install walldns-conf    $RPM_BUILD_ROOT%{_bindir}
309 install djbdns-man/*.1  $RPM_BUILD_ROOT%{_mandir}/man1
310 install djbdns-man/*.5  $RPM_BUILD_ROOT%{_mandir}/man5
311 install djbdns-man/*.8  $RPM_BUILD_ROOT%{_mandir}/man8
312
313 ##### DNSCACHE #####
314
315 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
316 cd $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
317 mkdir log
318 mkdir log/main
319 touch log/status
320 mkdir env
321 echo %{_sysconfdir}/dnscache/root>env/ROOT
322 echo 127.0.0.1                   >env/IP
323 echo 0.0.0.0                     >env/IPSEND
324 echo 1000000                     >env/CACHESIZE
325 echo 3000000                     >env/DATALIMIT
326 cat>run<<___
327 #!/bin/sh
328 exec 2>&1
329 exec <seed
330 exec envdir ./env sh -c '
331   exec envuidgid dnscache softlimit -o250 -d "\$DATALIMIT" %{_bindir}/dnscache
332 '
333 ___
334 cat>log/run<<___
335 #!/bin/sh
336 exec setuidgid dnslog multilog t ./main
337 ___
338 mkdir root
339 mkdir root/ip
340 touch root/ip/127.0.0.1
341 mkdir root/servers
342 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/\@
343 dd if=/dev/zero of=seed bs=128c count=1
344
345 ##### TINYDNS #####
346
347 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
348 cd $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
349 mkdir log
350 mkdir log/main
351 touch log/status
352 cat>log/run<<___
353 #!/bin/sh
354 exec setuidgid dnslog multilog t ./main
355 ___
356 mkdir env
357 echo %{_sysconfdir}/tinydns/root>env/ROOT
358 echo 127.0.0.1                  >env/IP
359 cat>run<<___
360 #!/bin/sh
361 exec 2>&1
362 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
363 ___
364 mkdir root
365 touch root/data
366 cat>root/add-ns<<___
367 #!/bin/sh
368 exec %{_bindir}/tinydns-edit data data.new add ns \${1+"\$@"}
369 ___
370 cat>root/add-childns<<___
371 #!/bin/sh
372 exec %{_bindir}/tinydns-edit data data.new add childns \${1+"\$@"}
373 ___
374 cat>root/add-host<<___
375 #!/bin/sh
376 exec %{_bindir}/tinydns-edit data data.new add host \${1+"\$@"}
377 ___
378 cat>root/add-host6<<___
379 #!/bin/sh
380 exec %{_bindir}/tinydns-edit data data.new add host6 \${1+"\$@"}
381 ___
382 cat>root/add-alias<<___
383 #!/bin/sh
384 exec %{_bindir}/tinydns-edit data data.new add alias \${1+"\$@"}
385 ___
386 cat>root/add-alias6<<___
387 #!/bin/sh
388 exec %{_bindir}/tinydns-edit data data.new add alias6 \${1+"\$@"}
389 ___
390 cat>root/add-mx<<___
391 #!/bin/sh
392 exec %{_bindir}/tinydns-edit data data.new add mx \${1+"\$@"}
393 ___
394 cat>root/Makefile<<___
395 data.cdb: data
396         %{_bindir}/tinydns-data
397 ___
398
399 ##### PICKDNS #####
400
401 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
402 cd $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
403 mkdir log
404 mkdir log/main
405 touch log/status
406 cat>log/run<<___
407 #!/bin/sh
408 exec setuidgid dnslog multilog t ./main
409 ___
410 mkdir env
411 echo %{_sysconfdir}/pickdns/root>env/ROOT
412 echo 127.0.0.1                  >env/IP
413 cat>run<<___
414 #!/bin/sh
415 exec 2>&1
416 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
417 ___
418 mkdir root
419 touch root/data
420 cat>root/Makefile<<___
421 data.cdb: data
422         %{_bindir}/pickdns-data
423 ___
424
425 ##### WALLDNS #####
426 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/walldns
427 cd $RPM_BUILD_ROOT%{_sysconfdir}/walldns
428 mkdir log
429 mkdir log/main
430 touch log/status
431 cat>log/run<<___
432 #!/bin/sh
433 exec setuidgid dnslog multilog t ./main
434 ___
435 mkdir env
436 echo %{_sysconfdir}/walldns/root>env/ROOT
437 echo 127.0.0.1                  >env/IP
438 cat>run<<___
439 #!/bin/sh
440 exec 2>&1
441 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
442 ___
443 mkdir root
444
445 ##### RBLDNS #####
446
447 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
448 cd $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
449 mkdir log
450 mkdir log/main
451 touch log/status
452 cat>log/run<<___
453 #!/bin/sh
454 exec setuidgid dnslog multilog t ./main
455 ___
456 mkdir env
457 echo %{_sysconfdir}/rbldns/root>env/ROOT
458 echo 127.0.0.1                 >env/IP
459 echo in-addr.arpa              >env/BASE
460 cat>run<<___
461 #!/bin/sh
462 exec 2>&1
463 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
464 ___
465 mkdir root
466 touch root/data
467 cat>root/Makefile<<___
468 data.cdb: data
469         %{_bindir}/rbldns-data
470 ___
471
472 ##### AXFRDNS #####
473
474 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
475 cd $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
476 mkdir log
477 mkdir log/main
478 touch log/status
479 cat>log/run<<___
480 #!/bin/sh
481 exec setuidgid dnslog multilog t ./main
482 ___
483 mkdir env
484 echo %{_sysconfdir}/tinydns/root>env/ROOT
485 echo 127.0.0.1                  >env/IP
486 cat>run<<___
487 #!/bin/sh
488 exec 2>&1
489 exec envdir ./env sh -c '
490   exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "\$IP" 53 %{_bindir}/axfrdns
491 '
492 ___
493 cat>Makefile<<___
494 tcp.cdb: tcp
495         tcprules tcp.cdb tcp.tmp < tcp
496 ___
497 cat>tcp<<___
498 # sample line:  1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
499 :deny
500 ___
501
502 ##### daemontools symlinks #####
503 install -d $RPM_BUILD_ROOT/service
504 cd $RPM_BUILD_ROOT/service
505 ln -s ..%{_sysconfdir}/dnscache
506 ln -s ..%{_sysconfdir}/tinydns
507 ln -s ..%{_sysconfdir}/pickdns
508 ln -s ..%{_sysconfdir}/walldns
509 ln -s ..%{_sysconfdir}/rbldns
510 ln -s ..%{_sysconfdir}/axfrdns
511
512 %clean
513 rm -rf $RPM_BUILD_ROOT
514
515 %pre
516 if [ -n "`id -u dnslog 2>/dev/null`" ]; then
517         if [ "`id -u dnslog`" != "32" ]; then
518                 echo "Error: user dnslog doesn't have uid=32. Correct this before installing djbdns." 1>&2
519                 exit 1
520         fi
521 else
522         /usr/sbin/useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog 1>&2
523 fi
524
525 %post dnscache
526 if [ \! -s /etc/dnscache/seed ]; then
527         dd if=/dev/urandom of=/etc/dnscache/seed bs=128c count=1
528 fi
529 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
530         echo "Warning: dnscache and pickdns can't work on the same"
531         echo "IP address. You have to edit either /etc/dnscache/env/IP"
532         echo "or /etc/pickdns/env/IP."
533 fi
534 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
535         echo "Warning: dnscache and rbldns can't work on the same"
536         echo "IP address. You have to edit either /etc/dnscache/env/IP"
537         echo "or /etc/rbldns/env/IP."
538 fi
539 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
540         echo "Warning: dnscache and tinydns can't work on the same"
541         echo "IP address. You have to edit either /etc/dnscache/env/IP"
542         echo "or /etc/tinydns/env/IP."
543 fi
544 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
545         echo "Warning: dnscache and walldns can't work on the same"
546         echo "IP address. You have to edit either /etc/dnscache/env/IP"
547         echo "or /etc/walldns/env/IP."
548 fi
549
550 %preun dnscache
551 if [ "$1" = "0" ]; then
552         svc -d /service/dnscache
553 fi
554
555 %post tinydns
556 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
557         echo "Warning: dnscache and tinydns can't work on the same"
558         echo "IP address. You have to edit either /etc/dnscache/env/IP"
559         echo "or /etc/tinydns/env/IP."
560 fi
561 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
562         echo "Warning: pickdns and tinydns can't work on the same"
563         echo "IP address. You have to edit either /etc/pickdns/env/IP"
564         echo "or /etc/tinydns/env/IP."
565 fi
566 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
567         echo "Warning: rbldns and tinydns can't work on the same"
568         echo "IP address. You have to edit either /etc/rbldns/env/IP"
569         echo "or /etc/tinydns/env/IP."
570 fi
571 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
572         echo "Warning: tinydns and walldns can't work on the same"
573         echo "IP address. You have to edit either /etc/tinydns/env/IP"
574         echo "or /etc/walldns/env/IP."
575 fi
576
577 %preun tinydns
578 if [ "$1" = "0" ]; then
579         svc -d /service/tinydns
580 fi
581
582 %post pickdns
583 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
584         echo "Warning: dnscache and pickdns can't work on the same"
585         echo "IP address. You have to edit either /etc/dnscache/env/IP"
586         echo "or /etc/pickdns/env/IP."
587 fi
588 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
589         echo "Warning: pickdns and rbldns can't work on the same"
590         echo "IP address. You have to edit either /etc/pickdns/env/IP"
591         echo "or /etc/rbldns/env/IP."
592 fi
593 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
594         echo "Warning: pickdns and tinydns can't work on the same"
595         echo "IP address. You have to edit either /etc/pickdns/env/IP"
596         echo "or /etc/tinydns/env/IP."
597 fi
598 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
599         echo "Warning: pickdns and walldns can't work on the same"
600         echo "IP address. You have to edit either /etc/pickdns/env/IP"
601         echo "or /etc/walldns/env/IP."
602 fi
603
604 %preun pickdns
605 if [ "$1" = "0" ]; then
606         svc -d /service/pickdns
607 fi
608
609 %post walldns
610 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
611         echo "Warning: dnscache and walldns can't work on the same"
612         echo "IP address. You have to edit either /etc/dnscache/env/IP"
613         echo "or /etc/walldns/env/IP."
614 fi
615 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
616         echo "Warning: pickdns and walldns can't work on the same"
617         echo "IP address. You have to edit either /etc/pickdns/env/IP"
618         echo "or /etc/walldns/env/IP."
619 fi
620 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
621         echo "Warning: rbldns and walldns can't work on the same"
622         echo "IP address. You have to edit either /etc/rbldns/env/IP"
623         echo "or /etc/walldns/env/IP."
624 fi
625 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
626         echo "Warning: tinydns and walldns can't work on the same"
627         echo "IP address. You have to edit either /etc/tinydns/env/IP"
628         echo "or /etc/walldns/env/IP."
629 fi
630
631 %preun walldns
632 if [ "$1" = "0" ]; then
633         svc -d /service/walldns
634 fi
635
636 %post rbldns
637 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
638         echo "Warning: dnscache and rbldns can't work on the same"
639         echo "IP address. You have to edit either /etc/dnscache/env/IP"
640         echo "or /etc/rbldns/env/IP."
641 fi
642 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
643         echo "Warning: pickdns and rbldns can't work on the same"
644         echo "IP address. You have to edit either /etc/pickdns/env/IP"
645         echo "or /etc/rbldns/env/IP."
646 fi
647 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
648         echo "Warning: rbldns and tinydns can't work on the same"
649         echo "IP address. You have to edit either /etc/rbldns/env/IP"
650         echo "or /etc/tinydns/env/IP."
651 fi
652 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
653         echo "Warning: rbldns and walldns can't work on the same"
654         echo "IP address. You have to edit either /etc/rbldns/env/IP"
655         echo "or /etc/walldns/env/IP."
656 fi
657
658 %preun rbldns
659 if [ "$1" = "0" ]; then
660         svc -d /service/rbldns
661 fi
662
663 %preun axfrdns
664 if [ "$1" = "0" ]; then
665         svc -d /service/axfrdns
666 fi
667
668 %files
669 %defattr(644,root,root,755)
670 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
671 %attr(755,root,root) %{_bindir}/cachetest
672 %attr(755,root,root) %{_bindir}/dns[f-t]*
673 %attr(755,root,root) %{_bindir}/axfr-get
674 %{_mandir}/man[15]/*
675 %{_mandir}/man8/axfr-get*
676
677 %files dnscache
678 %defattr(644,root,root,755)
679 %attr(755,root,root) %{_bindir}/dnscache*
680 %config %attr(644,root,root) %{_sysconfdir}/dnsroots.global
681 %dir %attr(3755,root,root) %{_sysconfdir}/dnscache
682 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/log
683 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/dnscache/log/main
684 %attr(644,dnslog,djbdns) %{_sysconfdir}/dnscache/log/status
685 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
686 %config %attr(644,root,root) %{_sysconfdir}/dnscache/env/*
687 %attr(755,root,root) %{_sysconfdir}/dnscache/run
688 %attr(755,root,root) %{_sysconfdir}/dnscache/log/run
689 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root
690 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root/*
691 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
692 %config %attr(644,root,root) %{_sysconfdir}/dnscache/root/servers/*
693 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
694 %{_mandir}/man8/dnscache*
695 /service/dnscache
696
697 %files tinydns
698 %defattr(644,root,root,755)
699 %attr(755,root,root) %{_bindir}/tinydns*
700 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
701 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/log
702 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/tinydns/log/main
703 %attr(644,dnslog,djbdns) %{_sysconfdir}/tinydns/log/status
704 %attr(755,root,root) %{_sysconfdir}/tinydns/log/run
705 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
706 %config %attr(644,root,root) %{_sysconfdir}/tinydns/env/*
707 %attr(755,root,root) %{_sysconfdir}/tinydns/run
708 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
709 %attr(644,root,root) %{_sysconfdir}/tinydns/root/Makefile
710 %config %attr(644,root,root) %{_sysconfdir}/tinydns/root/data
711 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
712 %{_mandir}/man8/tinydns*
713 /service/tinydns
714
715 %files pickdns
716 %defattr(644,root,root,755)
717 %attr(755,root,root) %{_bindir}/pickdns*
718 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
719 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/log
720 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/pickdns/log/main
721 %attr(644,dnslog,djbdns) %{_sysconfdir}/pickdns/log/status
722 %attr(755,root,root) %{_sysconfdir}/pickdns/log/run
723 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
724 %config %attr(644,root,root) %{_sysconfdir}/pickdns/env/*
725 %attr(755,root,root) %{_sysconfdir}/pickdns/run
726 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
727 %attr(644,root,root) %{_sysconfdir}/pickdns/root/Makefile
728 %config %attr(644,root,root) %{_sysconfdir}/pickdns/root/data
729 %{_mandir}/man8/pickdns*
730 /service/pickdns
731
732 %files walldns
733 %defattr(644,root,root,755)
734 %attr(755,root,root) %{_bindir}/walldns*
735 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
736 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/log
737 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/walldns/log/main
738 %attr(644,dnslog,djbdns) %{_sysconfdir}/walldns/log/status
739 %attr(755,root,root) %{_sysconfdir}/walldns/log/run
740 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
741 %config %attr(644,root,root) %{_sysconfdir}/walldns/env/*
742 %attr(755,root,root) %{_sysconfdir}/walldns/run
743 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
744 %{_mandir}/man8/walldns*
745 /service/walldns
746
747 %files rbldns
748 %defattr(644,root,root,755)
749 %attr(755,root,root) %{_bindir}/rbldns*
750 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
751 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/log
752 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/rbldns/log/main
753 %attr(644,dnslog,djbdns) %{_sysconfdir}/rbldns/log/status
754 %attr(755,root,root) %{_sysconfdir}/rbldns/log/run
755 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
756 %config %attr(644,root,root) %{_sysconfdir}/rbldns/env/*
757 %attr(755,root,root) %{_sysconfdir}/rbldns/run
758 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
759 %attr(644,root,root) %{_sysconfdir}/rbldns/root/Makefile
760 %config %attr(644,root,root) %{_sysconfdir}/rbldns/root/data
761 %{_mandir}/man8/rbldns*
762 /service/rbldns
763
764 %files axfrdns
765 %defattr(644,root,root,755)
766 %attr(755,root,root) %{_bindir}/axfrdns*
767 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
768 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/log
769 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/main
770 %attr(644,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/status
771 %attr(755,root,root) %{_sysconfdir}/axfrdns/log/run
772 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
773 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/env/*
774 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
775 %attr(644,root,root) %{_sysconfdir}/axfrdns/Makefile
776 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/tcp
777 %{_mandir}/man8/axfrdns*
778 /service/axfrdns
This page took 0.096063 seconds and 4 git commands to generate.