2 # - warning: Installed (but unpackaged) file(s) found:
10 License: http://cr.yp.to/distributors.html (free to use)
11 Group: Networking/Daemons
12 Source0: http://cr.yp.to/djbdns/%{name}-%{version}.tar.gz
13 # Source0-md5: 3147c5cd56832aa3b41955c7a51cbeb2
14 Source1: %{name}-doc.tar.gz
15 # Source1-md5: 1d6aed1a5d3d3eda3958fa3e7d808fc8
16 Source2: ftp://ftp.innominate.org/gpa/djb/%{name}-%{version}-man.tar.gz
17 # Source2-md5: 2b4e71fa4592858e4508538f78d50f61
18 Source3: http://www.sericyb.com.au/tinydns-notify
19 # NoSource3-md5: 2213bdc8c58c10cb8770b7e5b0d67aea
20 Source4: http://www.sericyb.com.au/tinydns-log
21 # NoSource4-md5: a9af7707a7cb7c41e855f441e242e422
22 Patch0: dnscache-1.05-multiple-ip.patch
24 Patch1: http://www.fefe.de/dns/%{name}-1.05-test22.diff.bz2
25 Patch3: http://iksz.hu/package/djbdns-conf/%{name}-1.05-multi_tinydns_data.patch
26 Patch4: %{name}-srv.patch
27 Patch5: %{name}-glibc.patch
28 # http://www.iecc.com/rbldns-patch.txt
29 Patch6: %{name}-rbldns_a.patch
30 # http://core.segfault.pl/~hobbit/tinydns-include.patch
31 Patch8: %{name}-tinydns-include.patch
32 Patch9: %{name}-tinydns-log-ipv6.patch
33 # http://romana.now.ie/software/djbdns-cachestats.patch
34 Patch10: %{name}-cachestats.patch
35 URL: http://cr.yp.to/djbdns.html
36 BuildRequires: rpm-perlprov
37 BuildRequires: rpmbuild(macros) >= 1.202
38 Requires(postun): /usr/sbin/groupdel
39 Requires(postun): /usr/sbin/userdel
40 Requires(pre): /bin/id
41 Requires(pre): /usr/bin/getgid
42 Requires(pre): /usr/sbin/groupadd
43 Requires(pre): /usr/sbin/useradd
44 Provides: group(djbdns)
46 Provides: user(dnslog)
47 Obsoletes: caching-nameserver
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 This is a set of DNS servers with security in mind. If you find a
52 security hole you can get a prize.
54 This package contains some basic DNS debugging tools and some
55 documentation. If you need a DNS server install one of the following
58 - djbdns-dnscache - a local DNS cache
59 - djbdns-tinydns - a DNS server
60 - djbdns-tinydns-notify - a tool to send NOTIFY requests
61 - djbdns-pickdns - a DNS load-balancing server
62 - djbdns-walldns - a reverse DNS wall
63 - djbdns-rbldns - an IP-address-listing DNS server
64 - djbdns-axfrdns - a DNS zone transfer server
67 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
68 ein Preis, wenn man ein Sicherheitsloch findet.
70 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
71 Wenn du einen DNS-Server braucht, installe ein von den folgenden
74 - djbdns-dnscache - ein lokaler DNS-Cache
75 - djbdns-tinydns - ein DNS-Server
76 - djbdns-pickdns - ein Belastung ausgleichender DNS-Server
77 - djbdns-walldns - eine Wand Rückgekehrten DNSs
78 - djbdns-rbldns - ein IP-Adressen-Listen-DNS-Server
79 - djbdns-axfrdns - ein DNS-Zonen-Transfer-Server
82 Jest to alternatywny zestaw serwerów DNS'u, którego g³ównym celem jest
83 bezpieczeñstwo. Za znalezienie dziury w tym systemie zosta³a
84 wyznaczona nawet nagroda.
86 Ten pakiet zawiera kilka podstawowych narzêdzi DNS oraz trochê
87 dokumentacji. Je¶li potrzebujesz serwera DNS zainstaluj jeden z
88 nastêpuj±cych pakietów:
90 - djbdns-dnscache - lokalny cache DNS
91 - djbdns-tinydns - serwer DNS
92 - djbdns-tinydns-notify - narzêdzie do wysy³ania komunikatów NOTIFY
93 - djbdns-pickdns - serwer DNS do równowa¿enia obci±¿eñ
94 - djbdns-walldns - ¶ciana dla odwrotnych zapytañ DNS
95 - djbdns-rbldns - serwer DNS list adresów IP
96 - djbdns-axfrdns - serwer transferów stref DNS
99 Summary: DJB's local DNS cache
100 Summary(de): DJBs lokaler DNS-Cache
101 Summary(pl): Lokalny cache DNS od DJB
102 Group: Networking/Daemons
103 Requires(post): diffutils
104 Requires(post): fileutils
105 Requires(postun): /usr/sbin/groupdel
106 Requires(postun): /usr/sbin/userdel
107 Requires(pre): /bin/id
108 Requires(pre): /usr/sbin/groupadd
109 Requires(pre): /usr/sbin/useradd
110 Requires(preun): daemontools
111 Requires: %{name} = %{version}-%{release}
112 Requires: daemontools >= 0.70-5
113 Provides: user(dnscache)
116 %description dnscache
117 dnscache is a local DNS cache from the djbdns package. It accepts
118 recursive DNS queries from local clients such as web browsers and mail
119 transfer agents. It collects responses from remote DNS servers. It
120 caches the responses to save time later.
122 %description dnscache -l de
123 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
124 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
125 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
126 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
129 %description dnscache -l pl
130 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
131 rekursywne zapytania DNS od lokalnych klientów takich, jak
132 przegl±darki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
133 od zdalnych serwerów DNS. Zapamiêtuje on odpowiedzi, ¿eby pó¼niej
137 Summary: DJB's DNS server
138 Summary(de): DJBs DNS-Server
139 Summary(pl): Serwer DNS od DJB
140 Group: Networking/Daemons
141 Requires(post): diffutils
142 Requires(postun): /usr/sbin/groupdel
143 Requires(postun): /usr/sbin/userdel
144 Requires(pre): /bin/id
145 Requires(pre): /usr/sbin/groupadd
146 Requires(pre): /usr/sbin/useradd
147 Requires(preun): daemontools
148 Requires: %{name} = %{version}-%{release}
149 Requires: daemontools >= 0.70-5
151 Provides: user(tinydns)
155 tinydns is a DNS server from the djbdns package. It accepts iterative
156 DNS queries from hosts around the Internet and responds with
157 locally-configured information.
159 %description tinydns -l de
160 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
161 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
162 lokal-konfigurierten Informationen.
164 %description tinydns -l pl
165 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
166 zapytania DNS od komputerów z ca³ego Internetu i odpowiada przy u¿yciu
167 lokalnie skonfigurowanych informacji.
169 %package tinydns-notify
170 Summary: DNS NOTIFY sending tool
171 Summary(pl): Narzêdzie do wysy³ania komunikatów DNS NOTIFY
173 Group: Networking/Daemons
174 URL: http://www.sericyb.com.au/tinydns-notify
175 Requires: %{name} = %{version}-%{release}
176 Requires: perl-Net-DNS
177 Requires: perl-modules
178 Obsoletes: tinydns-notify
180 %description tinydns-notify
181 tinydns-notify is a tool written in Perl, which extracts zones and
182 their nameservers from tinydns-data files and sends DNS NOTIFY
183 requests to nameservers listed in notify-list file.
185 %description tinydns-notify -l pl
186 tinydns-notify jest napisanym w Perlu narzêdziem, które czyta pliki
187 stref i odpowiadaj±ce im serwery nazw z plików tinydns-data, a
188 nastêpnie wysy³a ¿±dania NOTIFY do serwerów wyspecyfikowanych w pliku
192 Summary: DJB's load-balancing DNS server
193 Summary(de): DJBs Belastung ausgleichender DNS-Server
194 Summary(pl): Serwer DNS równowa¿±cy obci±¿enie od DJB
195 Group: Networking/Daemons
196 Requires(post): diffutils
197 Requires(postun): /usr/sbin/groupdel
198 Requires(postun): /usr/sbin/userdel
199 Requires(pre): /bin/id
200 Requires(pre): /usr/sbin/groupadd
201 Requires(pre): /usr/sbin/useradd
202 Requires(preun): daemontools
203 Requires: %{name} = %{version}-%{release}
204 Requires: daemontools >= 0.70-5
206 Provides: user(pickdns)
210 pickdns is a DNS load-balancing server from the djbdns package. It
211 accepts iterative DNS queries from hosts around the Internet and
212 responds with a dynamic selection of locally configured IP addresses
215 %description pickdns -l de
216 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
217 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
218 Internet und antwortet mit eine dynamische Auswahl von den
219 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
221 %description pickdns -l pl
222 pickdns jest równowa¿±cym obci±¿enie serwerem DNS z pakietu djbdns.
223 Odbiera on iteracyjne zapytania DNS od komputerów z ca³ego internetu i
224 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
225 5-sekundowymi TTLami.
228 Summary: DJB's reverse DNS wall
229 Summary(de): DJBs Wand rückgekehrten DNSs
230 Summary(pl): ¦ciana dla odwrotnych zapytañ DNS od DJB
231 Group: Networking/Daemons
232 Requires(post): diffutils
233 Requires(postun): /usr/sbin/groupdel
234 Requires(postun): /usr/sbin/userdel
235 Requires(pre): /bin/id
236 Requires(pre): /usr/sbin/groupadd
237 Requires(pre): /usr/sbin/useradd
238 Requires(preun): daemontools
239 Requires: %{name} = %{version}-%{release}
240 Requires: daemontools >= 0.70-5
241 Provides: user(walldns)
245 walldns is a reverse DNS wall from the djbdns package. It accepts
246 iterative DNS queries for in-addr.arpa domains from hosts around the
247 Internet and supplies generic responses that avoid revealing local
250 %description walldns -l de
251 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
252 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
253 Hosts aus allem Internet und liefert Antworte, die vermeiden
254 Informationen über die lokalen Hosts zu aufzudecken.
256 %description walldns -l pl
257 walldns jest ¶cian± dla odwrotnych zapytañ DNS z pakietu djbdns.
258 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
259 komputerów z ca³ego Internetu i dostarcza odpowiedzi, które unikaj±
260 ujawniania informacji o lokalnych komputerach.
263 Summary: DJB's IP-address-listing DNS server
264 Summary(de): DJBs IP-Adressen-Listen-DNS-Server
265 Summary(pl): Serwer DNS list adresów IP od DJB
266 Group: Networking/Daemons
267 Requires(post): diffutils
268 Requires(postun): /usr/sbin/groupdel
269 Requires(postun): /usr/sbin/userdel
270 Requires(pre): /bin/id
271 Requires(pre): /usr/sbin/groupadd
272 Requires(pre): /usr/sbin/useradd
273 Requires(preun): daemontools
274 Requires: %{name} = %{version}-%{release}
275 Requires: daemontools >= 0.70-5
277 Provides: user(rbldns)
282 rbldns is an IP-address-listing DNS server from the djbdns package. It
283 accepts iterative DNS queries from hosts around the Internet asking
284 about various IP addresses. It provides responses showing whether the
285 addresses are on a locally configured list, such as RBL or DUL.
287 %description rbldns -l de
288 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
289 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
290 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
291 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
292 Beispiel RBL oder DUL.
294 %description rbldns -l pl
295 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
296 iteracyjne zapytania DNS od komputerów z ca³ego Internetu pytaj±ce o
297 ró¿ne adresy IP. Dostarcza on odpowiedzi pokazuj±cych, czy adresy te
298 s± na lokalnie skonfigurowanej li¶cie takiej, jak RBL lub DUL.
301 Summary: DJB's DNS zone-transfer server
302 Summary(de): DJBs DNS-Zonen-Transfer-Server
303 Summary(pl): Serwer transferów stref DNS od DJB
304 Group: Networking/Daemons
305 Requires(postun): /usr/sbin/groupdel
306 Requires(postun): /usr/sbin/userdel
307 Requires(pre): /bin/id
308 Requires(pre): /usr/sbin/groupadd
309 Requires(pre): /usr/sbin/useradd
310 Requires(preun): daemontools
311 Requires: %{name} = %{version}-%{release}
312 Requires: %{name}-tinydns = %{version}-%{release}
313 Requires: daemontools >= 0.70-5
316 Provides: user(axfrdns)
320 axfrdns is a DNS zone transfer server from the djbdns package. It
321 reads a zone-transfer request in DNS-over-TCP format from its standard
322 input and responds with locally configured information.
324 %description axfrdns -l de
325 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
326 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
327 standarden Eingabe und antwortet mit den lokal-konfigurierten
330 %description axfrdns -l pl
331 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
332 on ze standardowego wej¶cia pro¶bê o transfer strefy w formacie
333 DNS-over-TCP i odpowiada przy u¿yciu lokalnie skonfigurowanych
351 ln -s merge/djbdns/* .
354 echo %{__cc} %{rpmcflags} >conf-cc
355 echo %{_prefix} > conf-home
359 rm -rf $RPM_BUILD_ROOT
360 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
361 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
363 install tinydns-notify $RPM_BUILD_ROOT%{_bindir}
364 install tinydns-log $RPM_BUILD_ROOT%{_bindir}
366 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
367 install axfr-get $RPM_BUILD_ROOT%{_bindir}
368 install axfrdns $RPM_BUILD_ROOT%{_bindir}
369 install axfrdns-conf $RPM_BUILD_ROOT%{_bindir}
370 install cachetest $RPM_BUILD_ROOT%{_bindir}
371 install dnscache $RPM_BUILD_ROOT%{_bindir}
372 install dnscache-conf $RPM_BUILD_ROOT%{_bindir}
373 install dnsfilter $RPM_BUILD_ROOT%{_bindir}
374 install dnsip $RPM_BUILD_ROOT%{_bindir}
375 install dnsipq $RPM_BUILD_ROOT%{_bindir}
376 install dnsmx $RPM_BUILD_ROOT%{_bindir}
377 install dnsname $RPM_BUILD_ROOT%{_bindir}
378 install dnsq $RPM_BUILD_ROOT%{_bindir}
379 install dnsqr $RPM_BUILD_ROOT%{_bindir}
380 install dnstrace $RPM_BUILD_ROOT%{_bindir}
381 install dnstxt $RPM_BUILD_ROOT%{_bindir}
382 install pickdns $RPM_BUILD_ROOT%{_bindir}
383 install pickdns-conf $RPM_BUILD_ROOT%{_bindir}
384 install pickdns-data $RPM_BUILD_ROOT%{_bindir}
385 install random-ip $RPM_BUILD_ROOT%{_bindir}
386 install rbldns $RPM_BUILD_ROOT%{_bindir}
387 install rbldns-conf $RPM_BUILD_ROOT%{_bindir}
388 install rbldns-data $RPM_BUILD_ROOT%{_bindir}
389 install tinydns $RPM_BUILD_ROOT%{_bindir}
390 install tinydns-conf $RPM_BUILD_ROOT%{_bindir}
391 install tinydns-data $RPM_BUILD_ROOT%{_bindir}
392 install tinydns-edit $RPM_BUILD_ROOT%{_bindir}
393 install tinydns-get $RPM_BUILD_ROOT%{_bindir}
394 install walldns $RPM_BUILD_ROOT%{_bindir}
395 install walldns-conf $RPM_BUILD_ROOT%{_bindir}
396 install djbdns-man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
397 install djbdns-man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
398 install djbdns-man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
400 make_supervise_service() {
403 local svcdir=$RPM_BUILD_ROOT%{_sysconfdir}/$service
404 local logdir=$RPM_BUILD_ROOT/var/log/djbdns/$service
406 install -d $svcdir/supervise $svcdir/log/supervise $logdir
407 touch $logdir/{lock,state}
409 touch $svcdir/log/supervise/{lock,status}
410 mkfifo $svcdir/log/supervise/{control,ok}
411 touch $svcdir/supervise/{lock,status}
412 mkfifo $svcdir/supervise/{control,ok}
416 make_supervise_service dnscache
417 s=$RPM_BUILD_ROOT%{_sysconfdir}/dnscache
419 echo %{_sysconfdir}/dnscache/root > $s/env/ROOT
420 echo 127.0.0.1 > $s/env/IP
421 echo 0.0.0.0 > $s/env/IPSEND
422 echo 1000000 > $s/env/CACHESIZE
423 echo 3000000 > $s/env/DATALIMIT
424 touch $s/env/IGNOREIP
429 exec envdir ./env sh -c '
430 exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
433 cat>$s/log/run<<'EOF'
435 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
439 touch $s/root/ip/127.0.0.1
440 mkdir $s/root/servers
441 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global $s/root/servers/@
442 dd if=/dev/zero of=$s/seed bs=128c count=1
445 make_supervise_service tinydns
446 s=$RPM_BUILD_ROOT%{_sysconfdir}/tinydns
449 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
452 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
453 echo 127.0.0.1 > $s/env/IP
457 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
461 cat>$s/root/add-ns<<'EOF'
463 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
465 cat>$s/root/add-childns<<'EOF'
467 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
469 cat>$s/root/add-host<<'EOF'
471 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
473 cat>$s/root/add-host6<<'EOF'
475 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
477 cat>$s/root/add-alias<<'EOF'
479 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
481 cat>$s/root/add-alias6<<'EOF'
483 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
485 cat>$s/root/add-mx<<'EOF'
487 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
489 cat>$s/root/Makefile<<'EOF'
491 %{_bindir}/tinydns-data
495 make_supervise_service pickdns
496 s=$RPM_BUILD_ROOT%{_sysconfdir}/pickdns
499 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
502 echo %{_sysconfdir}/pickdns/root > $s/env/ROOT
503 echo 127.0.0.1 > $s/env/IP
507 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
511 cat>$s/root/Makefile<<EOF
513 %{_bindir}/pickdns-data
517 make_supervise_service walldns
518 s=$RPM_BUILD_ROOT%{_sysconfdir}/walldns
521 exec setuidgid dnslog multilog t ./main
524 echo %{_sysconfdir}/walldns/root > $s/env/ROOT
525 echo 127.0.0.1 > $s/env/IP
529 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
534 make_supervise_service rbldns
535 s=$RPM_BUILD_ROOT%{_sysconfdir}/rbldns
538 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
541 echo %{_sysconfdir}/rbldns/root > $s/env/ROOT
542 echo 127.0.0.1 > $s/env/IP
543 echo in-addr.arpa > $s/env/BASE
547 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
551 cat>$s/root/Makefile<<EOF
553 %{_bindir}/rbldns-data
557 # !10.11.12.13:See http://bad.example.com
558 # :127.0.0.2:blacklisted"
565 make_supervise_service axfrdns
566 s=$RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
569 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
572 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
573 echo 127.0.0.1 > $s/env/IP
577 exec envdir ./env sh -c '
578 exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
581 cat>$s/Makefile<<'EOF'
583 tcprules tcp.cdb tcp.tmp < tcp
586 # sample line: 1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
590 ##### daemontools symlinks #####
591 install -d $RPM_BUILD_ROOT/service
592 cd $RPM_BUILD_ROOT/service
593 ln -s ..%{_sysconfdir}/dnscache
594 ln -s ..%{_sysconfdir}/tinydns
595 ln -s ..%{_sysconfdir}/pickdns
596 ln -s ..%{_sysconfdir}/walldns
597 ln -s ..%{_sysconfdir}/rbldns
598 ln -s ..%{_sysconfdir}/axfrdns
601 rm -rf $RPM_BUILD_ROOT
604 %groupadd -g 32 -r -f djbdns
605 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
608 if [ "$1" = "0" ]; then
614 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
617 if [ ! -s %{_sysconfdir}/dnscache/seed ]; then
618 dd if=/dev/urandom of=%{_sysconfdir}/dnscache/seed bs=128c count=1
620 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
621 echo "Warning: dnscache and pickdns can't work on the same"
622 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
623 echo "or %{_sysconfdir}/pickdns/env/IP."
625 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
626 echo "Warning: dnscache and rbldns can't work on the same"
627 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
628 echo "or %{_sysconfdir}/rbldns/env/IP."
630 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
631 echo "Warning: dnscache and tinydns can't work on the same"
632 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
633 echo "or %{_sysconfdir}/tinydns/env/IP."
635 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
636 echo "Warning: dnscache and walldns can't work on the same"
637 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
638 echo "or %{_sysconfdir}/walldns/env/IP."
641 if [ -f /service/dnscache/supervise/lock ]; then
642 svc -t /service/dnscache{,/log}
646 if [ "$1" = "0" ]; then
647 # http://cr.yp.to/daemontools/faq/create.html#remove
648 if [ -f /service/dnscache/supervise/lock ]; then
656 if [ "$1" = "0" ]; then
661 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
664 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
665 echo "Warning: dnscache and tinydns can't work on the same"
666 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
667 echo "or %{_sysconfdir}/tinydns/env/IP."
669 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
670 echo "Warning: pickdns and tinydns can't work on the same"
671 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
672 echo "or %{_sysconfdir}/tinydns/env/IP."
674 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
675 echo "Warning: rbldns and tinydns can't work on the same"
676 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
677 echo "or %{_sysconfdir}/tinydns/env/IP."
679 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
680 echo "Warning: tinydns and walldns can't work on the same"
681 echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
682 echo "or %{_sysconfdir}/walldns/env/IP."
685 if [ -f /service/tinydns/supervise/lock ]; then
686 svc -t /service/tinydns{,/log}
690 if [ "$1" = "0" ]; then
691 # http://cr.yp.to/daemontools/faq/create.html#remove
692 if [ -f /service/tinydns/supervise/lock ]; then
700 if [ "$1" = "0" ]; then
705 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
708 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
709 echo "Warning: dnscache and pickdns can't work on the same"
710 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
711 echo "or %{_sysconfdir}/pickdns/env/IP."
713 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
714 echo "Warning: pickdns and rbldns can't work on the same"
715 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
716 echo "or %{_sysconfdir}/rbldns/env/IP."
718 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
719 echo "Warning: pickdns and tinydns can't work on the same"
720 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
721 echo "or %{_sysconfdir}/tinydns/env/IP."
723 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
724 echo "Warning: pickdns and walldns can't work on the same"
725 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
726 echo "or %{_sysconfdir}/walldns/env/IP."
729 if [ -f /service/pickdns/supervise/lock ]; then
730 svc -t /service/pickdns{,/log}
734 if [ "$1" = "0" ]; then
735 # http://cr.yp.to/daemontools/faq/create.html#remove
736 if [ -f /service/pickdns/supervise/lock ]; then
744 if [ "$1" = "0" ]; then
749 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
752 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
753 echo "Warning: dnscache and walldns can't work on the same"
754 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
755 echo "or %{_sysconfdir}/walldns/env/IP."
757 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
758 echo "Warning: pickdns and walldns can't work on the same"
759 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
760 echo "or %{_sysconfdir}/walldns/env/IP."
762 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
763 echo "Warning: rbldns and walldns can't work on the same"
764 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
765 echo "or %{_sysconfdir}/walldns/env/IP."
767 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
768 echo "Warning: tinydns and walldns can't work on the same"
769 echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
770 echo "or %{_sysconfdir}/walldns/env/IP."
773 if [ -f /service/walldns/supervise/lock ]; then
774 svc -t /service/walldns{,/log}
778 if [ "$1" = "0" ]; then
779 # http://cr.yp.to/daemontools/faq/create.html#remove
780 if [ -f /service/walldns/supervise/lock ]; then
788 if [ "$1" = "0" ]; then
793 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
796 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
797 echo "Warning: dnscache and rbldns can't work on the same"
798 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
799 echo "or %{_sysconfdir}/rbldns/env/IP."
801 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
802 echo "Warning: pickdns and rbldns can't work on the same"
803 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
804 echo "or %{_sysconfdir}/rbldns/env/IP."
806 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
807 echo "Warning: rbldns and tinydns can't work on the same"
808 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
809 echo "or %{_sysconfdir}/tinydns/env/IP."
811 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
812 echo "Warning: rbldns and walldns can't work on the same"
813 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
814 echo "or %{_sysconfdir}/walldns/env/IP."
817 if [ -f /service/rbldns/supervise/lock ]; then
818 svc -t /service/rbldns{,/log}
822 if [ "$1" = "0" ]; then
823 # http://cr.yp.to/daemontools/faq/create.html#remove
824 if [ -f /service/rbldns/supervise/lock ]; then
832 if [ "$1" = "0" ]; then
837 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
840 if [ "$1" = "0" ]; then
841 # http://cr.yp.to/daemontools/faq/create.html#remove
842 if [ -f /service/axfrdns/supervise/lock ]; then
850 if [ "$1" = "0" ]; then
855 %defattr(644,root,root,755)
856 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
857 %attr(755,root,root) %{_bindir}/cachetest
858 %attr(755,root,root) %{_bindir}/dns[f-t]*
859 %attr(755,root,root) %{_bindir}/axfr-get
861 %{_mandir}/man8/axfr-get*
862 %dir %attr(751,root,root) %dir /var/log/djbdns
865 %defattr(644,root,root,755)
866 %attr(755,root,root) %{_bindir}/dnscache*
867 %config %{_sysconfdir}/dnsroots.global
868 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
869 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
870 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
872 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
873 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscache/log/run
874 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
875 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
876 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
877 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
878 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
880 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
881 %config %{_sysconfdir}/dnscache/env/*
882 %attr(755,root,root) %{_sysconfdir}/dnscache/run
883 %dir %{_sysconfdir}/dnscache/root
884 %dir %{_sysconfdir}/dnscache/root/ip
885 %dir %{_sysconfdir}/dnscache/root/servers
886 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
887 %config %{_sysconfdir}/dnscache/root/servers/*
888 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
889 %{_mandir}/man8/dnscache*
893 %defattr(644,root,root,755)
894 %attr(755,root,root) %{_bindir}/tinydns*
895 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
896 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
897 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
899 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/log/run
900 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
901 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
902 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
903 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
904 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
905 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
907 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
908 %config %{_sysconfdir}/tinydns/env/*
909 %attr(755,root,root) %{_sysconfdir}/tinydns/run
910 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
912 %config %{_sysconfdir}/tinydns/root/data
913 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
914 %{_mandir}/man8/tinydns*
917 %files tinydns-notify
918 %defattr(644,root,root,755)
919 %attr(755,root,root) %{_bindir}/tinydns-notify
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/pickdns*
924 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
925 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
926 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
928 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/log/run
929 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
930 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
931 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
932 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
933 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
934 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
936 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
937 %config %{_sysconfdir}/pickdns/env/*
938 %attr(755,root,root) %{_sysconfdir}/pickdns/run
939 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
940 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
941 %config %{_sysconfdir}/pickdns/root/data
942 %{_mandir}/man8/pickdns*
946 %defattr(644,root,root,755)
947 %attr(755,root,root) %{_bindir}/walldns*
948 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
949 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
950 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
952 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/walldns/log/run
953 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
954 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
955 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
956 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
957 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
958 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
960 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
961 %config %{_sysconfdir}/walldns/env/*
962 %attr(755,root,root) %{_sysconfdir}/walldns/run
963 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
964 %{_mandir}/man8/walldns*
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_bindir}/rbldns*
970 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
971 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
972 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
974 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/log/run
975 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
976 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
977 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
978 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
979 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
980 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
982 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
983 %config %{_sysconfdir}/rbldns/env/*
984 %attr(755,root,root) %{_sysconfdir}/rbldns/run
985 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
986 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
987 %config %{_sysconfdir}/rbldns/root/data
988 %{_mandir}/man8/rbldns*
992 %defattr(644,root,root,755)
993 %attr(755,root,root) %{_bindir}/axfrdns*
994 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
995 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
996 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
998 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/log/run
999 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1000 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1001 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1002 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1003 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1004 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1006 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1007 %config %{_sysconfdir}/axfrdns/env/*
1008 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1010 %config %{_sysconfdir}/axfrdns/tcp
1011 %{_mandir}/man8/axfrdns*