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
402 install -d $RPM_BUILD_ROOT%{_sysconfdir}/dnscache/supervise
403 install -d $RPM_BUILD_ROOT/var/log/djbdns/dnscache
404 touch $RPM_BUILD_ROOT/var/log/djbdns/dnscache/{lock,state}
405 cd $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
406 install -d log/supervise
407 touch log/supervise/{lock,status}
408 mkfifo log/supervise/{control,ok}
409 touch supervise/{lock,status}
410 mkfifo supervise/{control,ok}
412 echo %{_sysconfdir}/dnscache/root>env/ROOT
413 echo 127.0.0.1 >env/IP
414 echo 0.0.0.0 >env/IPSEND
415 echo 1000000 >env/CACHESIZE
416 echo 3000000 >env/DATALIMIT
422 exec envdir ./env sh -c '
423 exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
428 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
432 touch root/ip/127.0.0.1
434 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/@
435 dd if=/dev/zero of=seed bs=128c count=1
439 install -d $RPM_BUILD_ROOT%{_sysconfdir}/tinydns/supervise
440 install -d $RPM_BUILD_ROOT/var/log/djbdns/tinydns
441 touch $RPM_BUILD_ROOT/var/log/djbdns/tinydns/{lock,state}
442 cd $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
443 install -d log/supervise
444 touch log/supervise/{lock,status}
445 mkfifo log/supervise/{control,ok}
446 touch supervise/{lock,status}
447 mkfifo supervise/{control,ok}
450 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
453 echo %{_sysconfdir}/tinydns/root>env/ROOT
454 echo 127.0.0.1 >env/IP
458 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
462 cat>root/add-ns<<'___'
464 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
466 cat>root/add-childns<<'___'
468 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
470 cat>root/add-host<<'___'
472 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
474 cat>root/add-host6<<'___'
476 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
478 cat>root/add-alias<<'___'
480 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
482 cat>root/add-alias6<<'___'
484 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
486 cat>root/add-mx<<'___'
488 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
490 cat>root/Makefile<<'___'
492 %{_bindir}/tinydns-data
497 install -d $RPM_BUILD_ROOT%{_sysconfdir}/pickdns/supervise
498 install -d $RPM_BUILD_ROOT/var/log/djbdns/pickdns
499 touch $RPM_BUILD_ROOT/var/log/djbdns/pickdns/{lock,state}
500 cd $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
501 install -d log/supervise
502 touch log/supervise/{lock,status}
503 mkfifo log/supervise/{control,ok}
504 touch supervise/{lock,status}
505 mkfifo supervise/{control,ok}
508 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
511 echo %{_sysconfdir}/pickdns/root>env/ROOT
512 echo 127.0.0.1 >env/IP
516 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
520 cat>root/Makefile<<___
522 %{_bindir}/pickdns-data
526 install -d $RPM_BUILD_ROOT%{_sysconfdir}/walldns/supervise
527 install -d $RPM_BUILD_ROOT/var/log/djbdns/walldns
528 touch $RPM_BUILD_ROOT/var/log/djbdns/walldns/{lock,state}
529 cd $RPM_BUILD_ROOT%{_sysconfdir}/walldns
530 install -d log/supervise
531 touch log/supervise/{lock,status}
532 mkfifo log/supervise/{control,ok}
533 touch supervise/{lock,status}
534 mkfifo supervise/{control,ok}
537 exec setuidgid dnslog multilog t ./main
540 echo %{_sysconfdir}/walldns/root>env/ROOT
541 echo 127.0.0.1 >env/IP
545 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
551 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rbldns/supervise
552 install -d $RPM_BUILD_ROOT/var/log/djbdns/rbldns
553 touch $RPM_BUILD_ROOT/var/log/djbdns/rbldns/{lock,state}
554 cd $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
555 install -d log/supervise
556 touch log/supervise/{lock,status}
557 mkfifo log/supervise/{control,ok}
558 touch supervise/{lock,status}
559 mkfifo supervise/{control,ok}
562 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
565 echo %{_sysconfdir}/rbldns/root>env/ROOT
566 echo 127.0.0.1 >env/IP
567 echo in-addr.arpa >env/BASE
571 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
575 cat>root/Makefile<<___
577 %{_bindir}/rbldns-data
581 # !10.11.12.13:See http://bad.example.com
582 # :127.0.0.2:blacklisted"
590 install -d $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns/supervise
591 install -d $RPM_BUILD_ROOT/var/log/djbdns/axfrdns
592 touch $RPM_BUILD_ROOT/var/log/djbdns/axfrdns/{lock,state}
593 cd $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
594 install -d log/supervise
595 touch log/supervise/{lock,status}
596 mkfifo log/supervise/{control,ok}
597 touch supervise/{lock,status}
598 mkfifo supervise/{control,ok}
601 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
604 echo %{_sysconfdir}/tinydns/root>env/ROOT
605 echo 127.0.0.1 >env/IP
609 exec envdir ./env sh -c '
610 exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
615 tcprules tcp.cdb tcp.tmp < tcp
618 # sample line: 1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
622 ##### daemontools symlinks #####
623 install -d $RPM_BUILD_ROOT/service
624 cd $RPM_BUILD_ROOT/service
625 ln -s ..%{_sysconfdir}/dnscache
626 ln -s ..%{_sysconfdir}/tinydns
627 ln -s ..%{_sysconfdir}/pickdns
628 ln -s ..%{_sysconfdir}/walldns
629 ln -s ..%{_sysconfdir}/rbldns
630 ln -s ..%{_sysconfdir}/axfrdns
633 rm -rf $RPM_BUILD_ROOT
636 %groupadd -g 32 -r -f djbdns
637 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
640 if [ "$1" = "0" ]; then
646 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
649 if [ ! -s /etc/dnscache/seed ]; then
650 dd if=/dev/urandom of=/etc/dnscache/seed bs=128c count=1
652 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
653 echo "Warning: dnscache and pickdns can't work on the same"
654 echo "IP address. You have to edit either /etc/dnscache/env/IP"
655 echo "or /etc/pickdns/env/IP."
657 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
658 echo "Warning: dnscache and rbldns can't work on the same"
659 echo "IP address. You have to edit either /etc/dnscache/env/IP"
660 echo "or /etc/rbldns/env/IP."
662 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
663 echo "Warning: dnscache and tinydns can't work on the same"
664 echo "IP address. You have to edit either /etc/dnscache/env/IP"
665 echo "or /etc/tinydns/env/IP."
667 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
668 echo "Warning: dnscache and walldns can't work on the same"
669 echo "IP address. You have to edit either /etc/dnscache/env/IP"
670 echo "or /etc/walldns/env/IP."
673 if [ -f /service/dnscache/supervise/lock ]; then
674 svc -t /service/dnscache{,/log}
678 if [ "$1" = "0" ]; then
679 # http://cr.yp.to/daemontools/faq/create.html#remove
680 if [ -f /service/dnscache/supervise/lock ]; then
688 if [ "$1" = "0" ]; then
693 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
696 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
697 echo "Warning: dnscache and tinydns can't work on the same"
698 echo "IP address. You have to edit either /etc/dnscache/env/IP"
699 echo "or /etc/tinydns/env/IP."
701 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
702 echo "Warning: pickdns and tinydns can't work on the same"
703 echo "IP address. You have to edit either /etc/pickdns/env/IP"
704 echo "or /etc/tinydns/env/IP."
706 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
707 echo "Warning: rbldns and tinydns can't work on the same"
708 echo "IP address. You have to edit either /etc/rbldns/env/IP"
709 echo "or /etc/tinydns/env/IP."
711 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
712 echo "Warning: tinydns and walldns can't work on the same"
713 echo "IP address. You have to edit either /etc/tinydns/env/IP"
714 echo "or /etc/walldns/env/IP."
717 if [ -f /service/tinydns/supervise/lock ]; then
718 svc -t /service/tinydns{,/log}
722 if [ "$1" = "0" ]; then
723 # http://cr.yp.to/daemontools/faq/create.html#remove
724 if [ -f /service/tinydns/supervise/lock ]; then
732 if [ "$1" = "0" ]; then
737 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
740 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
741 echo "Warning: dnscache and pickdns can't work on the same"
742 echo "IP address. You have to edit either /etc/dnscache/env/IP"
743 echo "or /etc/pickdns/env/IP."
745 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
746 echo "Warning: pickdns and rbldns can't work on the same"
747 echo "IP address. You have to edit either /etc/pickdns/env/IP"
748 echo "or /etc/rbldns/env/IP."
750 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
751 echo "Warning: pickdns and tinydns can't work on the same"
752 echo "IP address. You have to edit either /etc/pickdns/env/IP"
753 echo "or /etc/tinydns/env/IP."
755 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
756 echo "Warning: pickdns and walldns can't work on the same"
757 echo "IP address. You have to edit either /etc/pickdns/env/IP"
758 echo "or /etc/walldns/env/IP."
761 if [ -f /service/pickdns/supervise/lock ]; then
762 svc -t /service/pickdns{,/log}
766 if [ "$1" = "0" ]; then
767 # http://cr.yp.to/daemontools/faq/create.html#remove
768 if [ -f /service/pickdns/supervise/lock ]; then
776 if [ "$1" = "0" ]; then
781 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
784 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
785 echo "Warning: dnscache and walldns can't work on the same"
786 echo "IP address. You have to edit either /etc/dnscache/env/IP"
787 echo "or /etc/walldns/env/IP."
789 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
790 echo "Warning: pickdns and walldns can't work on the same"
791 echo "IP address. You have to edit either /etc/pickdns/env/IP"
792 echo "or /etc/walldns/env/IP."
794 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
795 echo "Warning: rbldns and walldns can't work on the same"
796 echo "IP address. You have to edit either /etc/rbldns/env/IP"
797 echo "or /etc/walldns/env/IP."
799 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
800 echo "Warning: tinydns and walldns can't work on the same"
801 echo "IP address. You have to edit either /etc/tinydns/env/IP"
802 echo "or /etc/walldns/env/IP."
805 if [ -f /service/walldns/supervise/lock ]; then
806 svc -t /service/walldns{,/log}
810 if [ "$1" = "0" ]; then
811 # http://cr.yp.to/daemontools/faq/create.html#remove
812 if [ -f /service/walldns/supervise/lock ]; then
820 if [ "$1" = "0" ]; then
825 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
828 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
829 echo "Warning: dnscache and rbldns can't work on the same"
830 echo "IP address. You have to edit either /etc/dnscache/env/IP"
831 echo "or /etc/rbldns/env/IP."
833 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
834 echo "Warning: pickdns and rbldns can't work on the same"
835 echo "IP address. You have to edit either /etc/pickdns/env/IP"
836 echo "or /etc/rbldns/env/IP."
838 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
839 echo "Warning: rbldns and tinydns can't work on the same"
840 echo "IP address. You have to edit either /etc/rbldns/env/IP"
841 echo "or /etc/tinydns/env/IP."
843 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
844 echo "Warning: rbldns and walldns can't work on the same"
845 echo "IP address. You have to edit either /etc/rbldns/env/IP"
846 echo "or /etc/walldns/env/IP."
849 if [ -f /service/rbldns/supervise/lock ]; then
850 svc -t /service/rbldns{,/log}
854 if [ "$1" = "0" ]; then
855 # http://cr.yp.to/daemontools/faq/create.html#remove
856 if [ -f /service/rbldns/supervise/lock ]; then
864 if [ "$1" = "0" ]; then
869 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
872 if [ "$1" = "0" ]; then
873 # http://cr.yp.to/daemontools/faq/create.html#remove
874 if [ -f /service/axfrdns/supervise/lock ]; then
882 if [ "$1" = "0" ]; then
887 %defattr(644,root,root,755)
888 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
889 %attr(755,root,root) %{_bindir}/cachetest
890 %attr(755,root,root) %{_bindir}/dns[f-t]*
891 %attr(755,root,root) %{_bindir}/axfr-get
893 %{_mandir}/man8/axfr-get*
894 %dir %attr(751,root,root) %dir /var/log/djbdns
897 %defattr(644,root,root,755)
898 %attr(755,root,root) %{_bindir}/dnscache*
899 %config %{_sysconfdir}/dnsroots.global
900 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
901 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
902 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
904 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
905 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscache/log/run
906 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
907 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
908 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
909 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
910 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
912 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
913 %config %{_sysconfdir}/dnscache/env/*
914 %attr(755,root,root) %{_sysconfdir}/dnscache/run
915 %dir %{_sysconfdir}/dnscache/root
916 %dir %{_sysconfdir}/dnscache/root/ip
917 %dir %{_sysconfdir}/dnscache/root/servers
918 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
919 %config %{_sysconfdir}/dnscache/root/servers/*
920 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
921 %{_mandir}/man8/dnscache*
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_bindir}/tinydns*
927 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
928 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
929 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
931 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/log/run
932 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
933 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
934 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
935 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
936 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
937 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
939 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
940 %config %{_sysconfdir}/tinydns/env/*
941 %attr(755,root,root) %{_sysconfdir}/tinydns/run
942 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
944 %config %{_sysconfdir}/tinydns/root/data
945 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
946 %{_mandir}/man8/tinydns*
949 %files tinydns-notify
950 %defattr(644,root,root,755)
951 %attr(755,root,root) %{_bindir}/tinydns-notify
954 %defattr(644,root,root,755)
955 %attr(755,root,root) %{_bindir}/pickdns*
956 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
957 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
958 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
960 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/log/run
961 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
962 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
963 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
964 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
965 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
966 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
968 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
969 %config %{_sysconfdir}/pickdns/env/*
970 %attr(755,root,root) %{_sysconfdir}/pickdns/run
971 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
972 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
973 %config %{_sysconfdir}/pickdns/root/data
974 %{_mandir}/man8/pickdns*
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_bindir}/walldns*
980 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
981 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
982 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
984 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/walldns/log/run
985 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
986 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
987 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
988 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
989 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
990 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
992 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
993 %config %{_sysconfdir}/walldns/env/*
994 %attr(755,root,root) %{_sysconfdir}/walldns/run
995 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
996 %{_mandir}/man8/walldns*
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_bindir}/rbldns*
1002 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
1003 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
1004 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
1006 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/log/run
1007 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
1008 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
1009 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
1010 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
1011 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
1012 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
1014 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
1015 %config %{_sysconfdir}/rbldns/env/*
1016 %attr(755,root,root) %{_sysconfdir}/rbldns/run
1017 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
1018 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
1019 %config %{_sysconfdir}/rbldns/root/data
1020 %{_mandir}/man8/rbldns*
1024 %defattr(644,root,root,755)
1025 %attr(755,root,root) %{_bindir}/axfrdns*
1026 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
1027 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
1028 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
1030 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/log/run
1031 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1032 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1033 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1034 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1035 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1036 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1038 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1039 %config %{_sysconfdir}/axfrdns/env/*
1040 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1042 %config %{_sysconfdir}/axfrdns/tcp
1043 %{_mandir}/man8/axfrdns*