2 # - warning: Installed (but unpackaged) file(s) found:
6 Summary(pl.UTF-8): DJB DNS
10 # http://cr.yp.to/distributors.html
11 License: Public Domain
12 Group: Networking/Daemons
13 Source0: http://cr.yp.to/djbdns/%{name}-%{version}.tar.gz
14 # Source0-md5: 3147c5cd56832aa3b41955c7a51cbeb2
15 Source1: %{name}-doc.tar.gz
16 # Source1-md5: 1d6aed1a5d3d3eda3958fa3e7d808fc8
17 Source2: ftp://ftp.innominate.org/gpa/djb/%{name}-%{version}-man.tar.gz
18 # Source2-md5: 2b4e71fa4592858e4508538f78d50f61
19 Source3: http://www.sericyb.com.au/tinydns-notify
20 # NoSource3-md5: 2213bdc8c58c10cb8770b7e5b0d67aea
21 Source4: http://www.sericyb.com.au/tinydns-log
22 # NoSource4-md5: a9af7707a7cb7c41e855f441e242e422
23 Patch0: dnscache-1.05-multiple-ip.patch
25 Patch1: http://www.fefe.de/dns/%{name}-1.05-test22.diff.bz2
26 Patch3: http://iksz.hu/package/djbdns-conf/%{name}-1.05-multi_tinydns_data.patch
27 Patch4: %{name}-srv.patch
28 Patch5: %{name}-glibc.patch
29 # http://www.iecc.com/rbldns-patch.txt
30 Patch6: %{name}-rbldns_a.patch
31 # http://core.segfault.pl/~hobbit/tinydns-include.patch
32 Patch8: %{name}-tinydns-include.patch
33 Patch9: %{name}-tinydns-log-ipv6.patch
34 # http://romana.now.ie/software/djbdns-cachestats.patch
35 Patch10: %{name}-cachestats.patch
36 URL: http://cr.yp.to/djbdns.html
37 BuildRequires: rpm-perlprov
38 BuildRequires: rpmbuild(macros) >= 1.202
39 Requires(postun): /usr/sbin/groupdel
40 Requires(postun): /usr/sbin/userdel
41 Requires(pre): /bin/id
42 Requires(pre): /usr/bin/getgid
43 Requires(pre): /usr/sbin/groupadd
44 Requires(pre): /usr/sbin/useradd
45 Provides: group(djbdns)
47 Provides: user(dnslog)
48 Obsoletes: caching-nameserver
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 This is a set of DNS servers with security in mind. If you find a
53 security hole you can get a prize.
55 This package contains some basic DNS debugging tools and some
56 documentation. If you need a DNS server install one of the following
59 - djbdns-dnscache - a local DNS cache
60 - djbdns-tinydns - a DNS server
61 - djbdns-tinydns-notify - a tool to send NOTIFY requests
62 - djbdns-pickdns - a DNS load-balancing server
63 - djbdns-walldns - a reverse DNS wall
64 - djbdns-rbldns - an IP-address-listing DNS server
65 - djbdns-axfrdns - a DNS zone transfer server
67 %description -l de.UTF-8
68 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
69 ein Preis, wenn man ein Sicherheitsloch findet.
71 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
72 Wenn du einen DNS-Server braucht, installe ein von den folgenden
75 - djbdns-dnscache - ein lokaler DNS-Cache
76 - djbdns-tinydns - ein DNS-Server
77 - djbdns-pickdns - ein Belastung ausgleichender DNS-Server
78 - djbdns-walldns - eine Wand Rückgekehrten DNSs
79 - djbdns-rbldns - ein IP-Adressen-Listen-DNS-Server
80 - djbdns-axfrdns - ein DNS-Zonen-Transfer-Server
82 %description -l pl.UTF-8
83 Jest to alternatywny zestaw serwerów DNS'u, którego głównym celem jest
84 bezpieczeństwo. Za znalezienie dziury w tym systemie została
85 wyznaczona nawet nagroda.
87 Ten pakiet zawiera kilka podstawowych narzędzi DNS oraz trochę
88 dokumentacji. Jeśli potrzebujesz serwera DNS zainstaluj jeden z
89 następujących pakietów:
91 - djbdns-dnscache - lokalny cache DNS
92 - djbdns-tinydns - serwer DNS
93 - djbdns-tinydns-notify - narzędzie do wysyłania komunikatów NOTIFY
94 - djbdns-pickdns - serwer DNS do równoważenia obciążeń
95 - djbdns-walldns - ściana dla odwrotnych zapytań DNS
96 - djbdns-rbldns - serwer DNS list adresów IP
97 - djbdns-axfrdns - serwer transferów stref DNS
100 Summary: DJB's local DNS cache
101 Summary(de.UTF-8): DJBs lokaler DNS-Cache
102 Summary(pl.UTF-8): Lokalny cache DNS od DJB
103 Group: Networking/Daemons
104 Requires(post): diffutils
105 Requires(post): fileutils
106 Requires(postun): /usr/sbin/groupdel
107 Requires(postun): /usr/sbin/userdel
108 Requires(pre): /bin/id
109 Requires(pre): /usr/sbin/groupadd
110 Requires(pre): /usr/sbin/useradd
111 Requires(preun): daemontools
112 Requires: %{name} = %{version}-%{release}
113 Requires: daemontools >= 0.70-5
114 Provides: user(dnscache)
117 %description dnscache
118 dnscache is a local DNS cache from the djbdns package. It accepts
119 recursive DNS queries from local clients such as web browsers and mail
120 transfer agents. It collects responses from remote DNS servers. It
121 caches the responses to save time later.
123 %description dnscache -l de.UTF-8
124 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
125 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
126 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
127 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
130 %description dnscache -l pl.UTF-8
131 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
132 rekursywne zapytania DNS od lokalnych klientów takich, jak
133 przeglądarki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
134 od zdalnych serwerów DNS. Zapamiętuje on odpowiedzi, żeby później
138 Summary: DJB's DNS server
139 Summary(de.UTF-8): DJBs DNS-Server
140 Summary(pl.UTF-8): Serwer DNS od DJB
141 Group: Networking/Daemons
142 Requires(post): diffutils
143 Requires(postun): /usr/sbin/groupdel
144 Requires(postun): /usr/sbin/userdel
145 Requires(pre): /bin/id
146 Requires(pre): /usr/sbin/groupadd
147 Requires(pre): /usr/sbin/useradd
148 Requires(preun): daemontools
149 Requires: %{name} = %{version}-%{release}
150 Requires: daemontools >= 0.70-5
152 Provides: user(tinydns)
156 tinydns is a DNS server from the djbdns package. It accepts iterative
157 DNS queries from hosts around the Internet and responds with
158 locally-configured information.
160 %description tinydns -l de.UTF-8
161 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
162 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
163 lokal-konfigurierten Informationen.
165 %description tinydns -l pl.UTF-8
166 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
167 zapytania DNS od komputerów z całego Internetu i odpowiada przy użyciu
168 lokalnie skonfigurowanych informacji.
170 %package tinydns-notify
171 Summary: DNS NOTIFY sending tool
172 Summary(pl.UTF-8): Narzędzie do wysyłania komunikatów DNS NOTIFY
174 Group: Networking/Daemons
175 URL: http://www.sericyb.com.au/tinydns-notify
176 Requires: %{name} = %{version}-%{release}
177 Requires: perl-Net-DNS
178 Requires: perl-modules
179 Obsoletes: tinydns-notify
181 %description tinydns-notify
182 tinydns-notify is a tool written in Perl, which extracts zones and
183 their nameservers from tinydns-data files and sends DNS NOTIFY
184 requests to nameservers listed in notify-list file.
186 %description tinydns-notify -l pl.UTF-8
187 tinydns-notify jest napisanym w Perlu narzędziem, które czyta pliki
188 stref i odpowiadające im serwery nazw z plików tinydns-data, a
189 następnie wysyła żądania NOTIFY do serwerów wyspecyfikowanych w pliku
193 Summary: DJB's load-balancing DNS server
194 Summary(de.UTF-8): DJBs Belastung ausgleichender DNS-Server
195 Summary(pl.UTF-8): Serwer DNS równoważący obciążenie od DJB
196 Group: Networking/Daemons
197 Requires(post): diffutils
198 Requires(postun): /usr/sbin/groupdel
199 Requires(postun): /usr/sbin/userdel
200 Requires(pre): /bin/id
201 Requires(pre): /usr/sbin/groupadd
202 Requires(pre): /usr/sbin/useradd
203 Requires(preun): daemontools
204 Requires: %{name} = %{version}-%{release}
205 Requires: daemontools >= 0.70-5
207 Provides: user(pickdns)
211 pickdns is a DNS load-balancing server from the djbdns package. It
212 accepts iterative DNS queries from hosts around the Internet and
213 responds with a dynamic selection of locally configured IP addresses
216 %description pickdns -l de.UTF-8
217 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
218 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
219 Internet und antwortet mit eine dynamische Auswahl von den
220 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
222 %description pickdns -l pl.UTF-8
223 pickdns jest równoważącym obciążenie serwerem DNS z pakietu djbdns.
224 Odbiera on iteracyjne zapytania DNS od komputerów z całego internetu i
225 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
226 5-sekundowymi TTLami.
229 Summary: DJB's reverse DNS wall
230 Summary(de.UTF-8): DJBs Wand rückgekehrten DNSs
231 Summary(pl.UTF-8): Ściana dla odwrotnych zapytań DNS od DJB
232 Group: Networking/Daemons
233 Requires(post): diffutils
234 Requires(postun): /usr/sbin/groupdel
235 Requires(postun): /usr/sbin/userdel
236 Requires(pre): /bin/id
237 Requires(pre): /usr/sbin/groupadd
238 Requires(pre): /usr/sbin/useradd
239 Requires(preun): daemontools
240 Requires: %{name} = %{version}-%{release}
241 Requires: daemontools >= 0.70-5
242 Provides: user(walldns)
246 walldns is a reverse DNS wall from the djbdns package. It accepts
247 iterative DNS queries for in-addr.arpa domains from hosts around the
248 Internet and supplies generic responses that avoid revealing local
251 %description walldns -l de.UTF-8
252 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
253 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
254 Hosts aus allem Internet und liefert Antworte, die vermeiden
255 Informationen über die lokalen Hosts zu aufzudecken.
257 %description walldns -l pl.UTF-8
258 walldns jest ścianą dla odwrotnych zapytań DNS z pakietu djbdns.
259 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
260 komputerów z całego Internetu i dostarcza odpowiedzi, które unikają
261 ujawniania informacji o lokalnych komputerach.
264 Summary: DJB's IP-address-listing DNS server
265 Summary(de.UTF-8): DJBs IP-Adressen-Listen-DNS-Server
266 Summary(pl.UTF-8): Serwer DNS list adresów IP od DJB
267 Group: Networking/Daemons
268 Requires(post): diffutils
269 Requires(postun): /usr/sbin/groupdel
270 Requires(postun): /usr/sbin/userdel
271 Requires(pre): /bin/id
272 Requires(pre): /usr/sbin/groupadd
273 Requires(pre): /usr/sbin/useradd
274 Requires(preun): daemontools
275 Requires: %{name} = %{version}-%{release}
276 Requires: daemontools >= 0.70-5
278 Provides: user(rbldns)
283 rbldns is an IP-address-listing DNS server from the djbdns package. It
284 accepts iterative DNS queries from hosts around the Internet asking
285 about various IP addresses. It provides responses showing whether the
286 addresses are on a locally configured list, such as RBL or DUL.
288 %description rbldns -l de.UTF-8
289 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
290 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
291 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
292 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
293 Beispiel RBL oder DUL.
295 %description rbldns -l pl.UTF-8
296 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
297 iteracyjne zapytania DNS od komputerów z całego Internetu pytające o
298 różne adresy IP. Dostarcza on odpowiedzi pokazujących, czy adresy te
299 są na lokalnie skonfigurowanej liście takiej, jak RBL lub DUL.
302 Summary: DJB's DNS zone-transfer server
303 Summary(de.UTF-8): DJBs DNS-Zonen-Transfer-Server
304 Summary(pl.UTF-8): Serwer transferów stref DNS od DJB
305 Group: Networking/Daemons
306 Requires(postun): /usr/sbin/groupdel
307 Requires(postun): /usr/sbin/userdel
308 Requires(pre): /bin/id
309 Requires(pre): /usr/sbin/groupadd
310 Requires(pre): /usr/sbin/useradd
311 Requires(preun): daemontools
312 Requires: %{name} = %{version}-%{release}
313 Requires: %{name}-tinydns = %{version}-%{release}
314 Requires: daemontools >= 0.70-5
317 Provides: user(axfrdns)
321 axfrdns is a DNS zone transfer server from the djbdns package. It
322 reads a zone-transfer request in DNS-over-TCP format from its standard
323 input and responds with locally configured information.
325 %description axfrdns -l de.UTF-8
326 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
327 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
328 standarden Eingabe und antwortet mit den lokal-konfigurierten
331 %description axfrdns -l pl.UTF-8
332 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
333 on ze standardowego wejścia prośbę o transfer strefy w formacie
334 DNS-over-TCP i odpowiada przy użyciu lokalnie skonfigurowanych
352 ln -s merge/djbdns/* .
355 echo %{__cc} %{rpmcflags} >conf-cc
356 echo %{_prefix} > conf-home
360 rm -rf $RPM_BUILD_ROOT
361 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
362 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
364 install tinydns-notify $RPM_BUILD_ROOT%{_bindir}
365 install tinydns-log $RPM_BUILD_ROOT%{_bindir}
367 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
368 install axfr-get $RPM_BUILD_ROOT%{_bindir}
369 install axfrdns $RPM_BUILD_ROOT%{_bindir}
370 install axfrdns-conf $RPM_BUILD_ROOT%{_bindir}
371 install cachetest $RPM_BUILD_ROOT%{_bindir}
372 install dnscache $RPM_BUILD_ROOT%{_bindir}
373 install dnscache-conf $RPM_BUILD_ROOT%{_bindir}
374 install dnsfilter $RPM_BUILD_ROOT%{_bindir}
375 install dnsip $RPM_BUILD_ROOT%{_bindir}
376 install dnsipq $RPM_BUILD_ROOT%{_bindir}
377 install dnsmx $RPM_BUILD_ROOT%{_bindir}
378 install dnsname $RPM_BUILD_ROOT%{_bindir}
379 install dnsq $RPM_BUILD_ROOT%{_bindir}
380 install dnsqr $RPM_BUILD_ROOT%{_bindir}
381 install dnstrace $RPM_BUILD_ROOT%{_bindir}
382 install dnstxt $RPM_BUILD_ROOT%{_bindir}
383 install pickdns $RPM_BUILD_ROOT%{_bindir}
384 install pickdns-conf $RPM_BUILD_ROOT%{_bindir}
385 install pickdns-data $RPM_BUILD_ROOT%{_bindir}
386 install random-ip $RPM_BUILD_ROOT%{_bindir}
387 install rbldns $RPM_BUILD_ROOT%{_bindir}
388 install rbldns-conf $RPM_BUILD_ROOT%{_bindir}
389 install rbldns-data $RPM_BUILD_ROOT%{_bindir}
390 install tinydns $RPM_BUILD_ROOT%{_bindir}
391 install tinydns-conf $RPM_BUILD_ROOT%{_bindir}
392 install tinydns-data $RPM_BUILD_ROOT%{_bindir}
393 install tinydns-edit $RPM_BUILD_ROOT%{_bindir}
394 install tinydns-get $RPM_BUILD_ROOT%{_bindir}
395 install walldns $RPM_BUILD_ROOT%{_bindir}
396 install walldns-conf $RPM_BUILD_ROOT%{_bindir}
397 install djbdns-man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
398 install djbdns-man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
399 install djbdns-man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
401 make_supervise_service() {
404 local svcdir=$RPM_BUILD_ROOT%{_sysconfdir}/$service
405 local logdir=$RPM_BUILD_ROOT/var/log/djbdns/$service
407 install -d $svcdir/supervise $svcdir/log/supervise $logdir
408 touch $logdir/{lock,state}
410 touch $svcdir/log/supervise/{lock,status}
411 mkfifo $svcdir/log/supervise/{control,ok}
412 touch $svcdir/supervise/{lock,status}
413 mkfifo $svcdir/supervise/{control,ok}
417 make_supervise_service dnscache
418 s=$RPM_BUILD_ROOT%{_sysconfdir}/dnscache
420 echo %{_sysconfdir}/dnscache/root > $s/env/ROOT
421 echo 127.0.0.1 > $s/env/IP
422 echo 0.0.0.0 > $s/env/IPSEND
423 echo 1000000 > $s/env/CACHESIZE
424 echo 3000000 > $s/env/DATALIMIT
425 touch $s/env/IGNOREIP
430 exec envdir ./env sh -c '
431 exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
434 cat>$s/log/run<<'EOF'
436 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
440 touch $s/root/ip/127.0.0.1
441 mkdir $s/root/servers
442 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global $s/root/servers/@
443 dd if=/dev/zero of=$s/seed bs=128c count=1
446 make_supervise_service tinydns
447 s=$RPM_BUILD_ROOT%{_sysconfdir}/tinydns
450 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
453 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
454 echo 127.0.0.1 > $s/env/IP
458 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
462 cat>$s/root/add-ns<<'EOF'
464 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
466 cat>$s/root/add-childns<<'EOF'
468 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
470 cat>$s/root/add-host<<'EOF'
472 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
474 cat>$s/root/add-host6<<'EOF'
476 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
478 cat>$s/root/add-alias<<'EOF'
480 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
482 cat>$s/root/add-alias6<<'EOF'
484 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
486 cat>$s/root/add-mx<<'EOF'
488 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
490 cat>$s/root/Makefile<<'EOF'
492 %{_bindir}/tinydns-data
496 make_supervise_service pickdns
497 s=$RPM_BUILD_ROOT%{_sysconfdir}/pickdns
500 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
503 echo %{_sysconfdir}/pickdns/root > $s/env/ROOT
504 echo 127.0.0.1 > $s/env/IP
508 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
512 cat>$s/root/Makefile<<EOF
514 %{_bindir}/pickdns-data
518 make_supervise_service walldns
519 s=$RPM_BUILD_ROOT%{_sysconfdir}/walldns
522 exec setuidgid dnslog multilog t ./main
525 echo %{_sysconfdir}/walldns/root > $s/env/ROOT
526 echo 127.0.0.1 > $s/env/IP
530 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
535 make_supervise_service rbldns
536 s=$RPM_BUILD_ROOT%{_sysconfdir}/rbldns
539 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
542 echo %{_sysconfdir}/rbldns/root > $s/env/ROOT
543 echo 127.0.0.1 > $s/env/IP
544 echo in-addr.arpa > $s/env/BASE
548 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
552 cat>$s/root/Makefile<<EOF
554 %{_bindir}/rbldns-data
558 # !10.11.12.13:See http://bad.example.com
559 # :127.0.0.2:blacklisted"
566 make_supervise_service axfrdns
567 s=$RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
570 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
573 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
574 echo 127.0.0.1 > $s/env/IP
578 exec envdir ./env sh -c '
579 exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
582 cat>$s/Makefile<<'EOF'
584 tcprules tcp.cdb tcp.tmp < tcp
587 # sample line: 1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
591 ##### daemontools symlinks #####
592 install -d $RPM_BUILD_ROOT/service
593 cd $RPM_BUILD_ROOT/service
594 ln -s ..%{_sysconfdir}/dnscache
595 ln -s ..%{_sysconfdir}/tinydns
596 ln -s ..%{_sysconfdir}/pickdns
597 ln -s ..%{_sysconfdir}/walldns
598 ln -s ..%{_sysconfdir}/rbldns
599 ln -s ..%{_sysconfdir}/axfrdns
602 rm -rf $RPM_BUILD_ROOT
605 %groupadd -g 32 -r -f djbdns
606 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
609 if [ "$1" = "0" ]; then
615 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
618 if [ ! -s %{_sysconfdir}/dnscache/seed ]; then
619 dd if=/dev/urandom of=%{_sysconfdir}/dnscache/seed bs=128c count=1
621 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
622 echo "Warning: dnscache and pickdns can't work on the same"
623 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
624 echo "or %{_sysconfdir}/pickdns/env/IP."
626 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
627 echo "Warning: dnscache and rbldns can't work on the same"
628 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
629 echo "or %{_sysconfdir}/rbldns/env/IP."
631 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
632 echo "Warning: dnscache and tinydns can't work on the same"
633 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
634 echo "or %{_sysconfdir}/tinydns/env/IP."
636 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
637 echo "Warning: dnscache and walldns can't work on the same"
638 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
639 echo "or %{_sysconfdir}/walldns/env/IP."
642 if [ -f /service/dnscache/supervise/lock ]; then
643 svc -t /service/dnscache{,/log}
647 if [ "$1" = "0" ]; then
648 # http://cr.yp.to/daemontools/faq/create.html#remove
649 if [ -f /service/dnscache/supervise/lock ]; then
657 if [ "$1" = "0" ]; then
662 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
665 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
666 echo "Warning: dnscache and tinydns can't work on the same"
667 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
668 echo "or %{_sysconfdir}/tinydns/env/IP."
670 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
671 echo "Warning: pickdns and tinydns can't work on the same"
672 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
673 echo "or %{_sysconfdir}/tinydns/env/IP."
675 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
676 echo "Warning: rbldns and tinydns can't work on the same"
677 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
678 echo "or %{_sysconfdir}/tinydns/env/IP."
680 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
681 echo "Warning: tinydns and walldns can't work on the same"
682 echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
683 echo "or %{_sysconfdir}/walldns/env/IP."
686 if [ -f /service/tinydns/supervise/lock ]; then
687 svc -t /service/tinydns{,/log}
691 if [ "$1" = "0" ]; then
692 # http://cr.yp.to/daemontools/faq/create.html#remove
693 if [ -f /service/tinydns/supervise/lock ]; then
701 if [ "$1" = "0" ]; then
706 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
709 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
710 echo "Warning: dnscache and pickdns can't work on the same"
711 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
712 echo "or %{_sysconfdir}/pickdns/env/IP."
714 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
715 echo "Warning: pickdns and rbldns can't work on the same"
716 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
717 echo "or %{_sysconfdir}/rbldns/env/IP."
719 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
720 echo "Warning: pickdns and tinydns can't work on the same"
721 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
722 echo "or %{_sysconfdir}/tinydns/env/IP."
724 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
725 echo "Warning: pickdns and walldns can't work on the same"
726 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
727 echo "or %{_sysconfdir}/walldns/env/IP."
730 if [ -f /service/pickdns/supervise/lock ]; then
731 svc -t /service/pickdns{,/log}
735 if [ "$1" = "0" ]; then
736 # http://cr.yp.to/daemontools/faq/create.html#remove
737 if [ -f /service/pickdns/supervise/lock ]; then
745 if [ "$1" = "0" ]; then
750 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
753 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
754 echo "Warning: dnscache and walldns can't work on the same"
755 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
756 echo "or %{_sysconfdir}/walldns/env/IP."
758 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
759 echo "Warning: pickdns and walldns can't work on the same"
760 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
761 echo "or %{_sysconfdir}/walldns/env/IP."
763 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
764 echo "Warning: rbldns and walldns can't work on the same"
765 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
766 echo "or %{_sysconfdir}/walldns/env/IP."
768 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
769 echo "Warning: tinydns and walldns can't work on the same"
770 echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
771 echo "or %{_sysconfdir}/walldns/env/IP."
774 if [ -f /service/walldns/supervise/lock ]; then
775 svc -t /service/walldns{,/log}
779 if [ "$1" = "0" ]; then
780 # http://cr.yp.to/daemontools/faq/create.html#remove
781 if [ -f /service/walldns/supervise/lock ]; then
789 if [ "$1" = "0" ]; then
794 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
797 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
798 echo "Warning: dnscache and rbldns can't work on the same"
799 echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
800 echo "or %{_sysconfdir}/rbldns/env/IP."
802 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
803 echo "Warning: pickdns and rbldns can't work on the same"
804 echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
805 echo "or %{_sysconfdir}/rbldns/env/IP."
807 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
808 echo "Warning: rbldns and tinydns can't work on the same"
809 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
810 echo "or %{_sysconfdir}/tinydns/env/IP."
812 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
813 echo "Warning: rbldns and walldns can't work on the same"
814 echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
815 echo "or %{_sysconfdir}/walldns/env/IP."
818 if [ -f /service/rbldns/supervise/lock ]; then
819 svc -t /service/rbldns{,/log}
823 if [ "$1" = "0" ]; then
824 # http://cr.yp.to/daemontools/faq/create.html#remove
825 if [ -f /service/rbldns/supervise/lock ]; then
833 if [ "$1" = "0" ]; then
838 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
841 if [ "$1" = "0" ]; then
842 # http://cr.yp.to/daemontools/faq/create.html#remove
843 if [ -f /service/axfrdns/supervise/lock ]; then
851 if [ "$1" = "0" ]; then
856 %defattr(644,root,root,755)
857 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
858 %attr(755,root,root) %{_bindir}/cachetest
859 %attr(755,root,root) %{_bindir}/dns[f-t]*
860 %attr(755,root,root) %{_bindir}/axfr-get
862 %{_mandir}/man8/axfr-get*
863 %dir %attr(751,root,root) %dir /var/log/djbdns
866 %defattr(644,root,root,755)
867 %attr(755,root,root) %{_bindir}/dnscache*
868 %config %{_sysconfdir}/dnsroots.global
869 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
870 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
871 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
873 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
874 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscache/log/run
875 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
876 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
877 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
878 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
879 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
881 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
882 %config %{_sysconfdir}/dnscache/env/*
883 %attr(755,root,root) %{_sysconfdir}/dnscache/run
884 %dir %{_sysconfdir}/dnscache/root
885 %dir %{_sysconfdir}/dnscache/root/ip
886 %dir %{_sysconfdir}/dnscache/root/servers
887 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
888 %config %{_sysconfdir}/dnscache/root/servers/*
889 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
890 %{_mandir}/man8/dnscache*
894 %defattr(644,root,root,755)
895 %attr(755,root,root) %{_bindir}/tinydns*
896 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
897 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
898 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
900 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/log/run
901 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
902 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
903 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
904 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
905 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
906 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
908 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
909 %config %{_sysconfdir}/tinydns/env/*
910 %attr(755,root,root) %{_sysconfdir}/tinydns/run
911 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
912 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
913 %config %{_sysconfdir}/tinydns/root/data
914 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
915 %{_mandir}/man8/tinydns*
918 %files tinydns-notify
919 %defattr(644,root,root,755)
920 %attr(755,root,root) %{_bindir}/tinydns-notify
923 %defattr(644,root,root,755)
924 %attr(755,root,root) %{_bindir}/pickdns*
925 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
926 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
927 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
929 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/log/run
930 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
931 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
932 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
933 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
934 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
935 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
937 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
938 %config %{_sysconfdir}/pickdns/env/*
939 %attr(755,root,root) %{_sysconfdir}/pickdns/run
940 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
941 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
942 %config %{_sysconfdir}/pickdns/root/data
943 %{_mandir}/man8/pickdns*
947 %defattr(644,root,root,755)
948 %attr(755,root,root) %{_bindir}/walldns*
949 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
950 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
951 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
953 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/walldns/log/run
954 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
955 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
956 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
957 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
958 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
959 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
961 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
962 %config %{_sysconfdir}/walldns/env/*
963 %attr(755,root,root) %{_sysconfdir}/walldns/run
964 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
965 %{_mandir}/man8/walldns*
969 %defattr(644,root,root,755)
970 %attr(755,root,root) %{_bindir}/rbldns*
971 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
972 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
973 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
975 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/log/run
976 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
977 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
978 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
979 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
980 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
981 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
983 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
984 %config %{_sysconfdir}/rbldns/env/*
985 %attr(755,root,root) %{_sysconfdir}/rbldns/run
986 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
987 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
988 %config %{_sysconfdir}/rbldns/root/data
989 %{_mandir}/man8/rbldns*
993 %defattr(644,root,root,755)
994 %attr(755,root,root) %{_bindir}/axfrdns*
995 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
996 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
997 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
999 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/log/run
1000 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1001 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1002 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1003 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1004 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1005 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1007 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1008 %config %{_sysconfdir}/axfrdns/env/*
1009 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1010 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1011 %config %{_sysconfdir}/axfrdns/tcp
1012 %{_mandir}/man8/axfrdns*