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 URL: http://cr.yp.to/djbdns.html
34 BuildRequires: rpm-perlprov
35 BuildRequires: rpmbuild(macros) >= 1.202
36 Requires(postun): /usr/sbin/groupdel
37 Requires(postun): /usr/sbin/userdel
38 Requires(pre): /bin/id
39 Requires(pre): /usr/bin/getgid
40 Requires(pre): /usr/sbin/groupadd
41 Requires(pre): /usr/sbin/useradd
42 Provides: group(djbdns)
44 Provides: user(dnslog)
45 Obsoletes: caching-nameserver
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 This is a set of DNS servers with security in mind. If you find a
50 security hole you can get a prize.
52 This package contains some basic DNS debugging tools and some
53 documentation. If you need a DNS server install one of the following
56 - djbdns-dnscache - a local DNS cache
57 - djbdns-tinydns - a DNS server
58 - djbdns-tinydns-notify - a tool to send NOTIFY requests
59 - djbdns-pickdns - a DNS load-balancing server
60 - djbdns-walldns - a reverse DNS wall
61 - djbdns-rbldns - an IP-address-listing DNS server
62 - djbdns-axfrdns - a DNS zone transfer server
65 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
66 ein Preis, wenn man ein Sicherheitsloch findet.
68 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
69 Wenn du einen DNS-Server braucht, installe ein von den folgenden
72 - djbdns-dnscache - ein lokaler DNS-Cache
73 - djbdns-tinydns - ein DNS-Server
74 - djbdns-pickdns - ein Belastung ausgleichender DNS-Server
75 - djbdns-walldns - eine Wand Rückgekehrten DNSs
76 - djbdns-rbldns - ein IP-Adressen-Listen-DNS-Server
77 - djbdns-axfrdns - ein DNS-Zonen-Transfer-Server
80 Jest to alternatywny zestaw serwerów DNS'u, którego g³ównym celem jest
81 bezpieczeñstwo. Za znalezienie dziury w tym systemie zosta³a
82 wyznaczona nawet nagroda.
84 Ten pakiet zawiera kilka podstawowych narzêdzi DNS oraz trochê
85 dokumentacji. Je¶li potrzebujesz serwera DNS zainstaluj jeden z
86 nastêpuj±cych pakietów:
88 - djbdns-dnscache - lokalny cache DNS
89 - djbdns-tinydns - serwer DNS
90 - djbdns-tinydns-notify - narzêdzie do wysy³ania komunikatów NOTIFY
91 - djbdns-pickdns - serwer DNS do równowa¿enia obci±¿eñ
92 - djbdns-walldns - ¶ciana dla odwrotnych zapytañ DNS
93 - djbdns-rbldns - serwer DNS list adresów IP
94 - djbdns-axfrdns - serwer transferów stref DNS
97 Summary: DJB's local DNS cache
98 Summary(de): DJBs lokaler DNS-Cache
99 Summary(pl): Lokalny cache DNS od DJB
100 Group: Networking/Daemons
101 Requires(post): diffutils
102 Requires(post): fileutils
103 Requires(postun): /usr/sbin/groupdel
104 Requires(postun): /usr/sbin/userdel
105 Requires(pre): /bin/id
106 Requires(pre): /usr/sbin/groupadd
107 Requires(pre): /usr/sbin/useradd
108 Requires(preun): daemontools
109 Requires: %{name} = %{version}
110 Requires: daemontools >= 0.70-5
111 Provides: user(dnscache)
114 %description dnscache
115 dnscache is a local DNS cache from the djbdns package. It accepts
116 recursive DNS queries from local clients such as web browsers and mail
117 transfer agents. It collects responses from remote DNS servers. It
118 caches the responses to save time later.
120 %description dnscache -l de
121 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
122 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
123 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
124 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
127 %description dnscache -l pl
128 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
129 rekursywne zapytania DNS od lokalnych klientów takich, jak
130 przegl±darki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
131 od zdalnych serwerów DNS. Zapamiêtuje on odpowiedzi, ¿eby pó¼niej
135 Summary: DJB's DNS server
136 Summary(de): DJBs DNS-Server
137 Summary(pl): Serwer DNS od DJB
138 Group: Networking/Daemons
139 Requires(post): diffutils
140 Requires(postun): /usr/sbin/groupdel
141 Requires(postun): /usr/sbin/userdel
142 Requires(pre): /bin/id
143 Requires(pre): /usr/sbin/groupadd
144 Requires(pre): /usr/sbin/useradd
145 Requires(preun): daemontools
146 Requires: %{name} = %{version}
147 Requires: daemontools >= 0.70-5
149 Provides: user(tinydns)
153 tinydns is a DNS server from the djbdns package. It accepts iterative
154 DNS queries from hosts around the Internet and responds with
155 locally-configured information.
157 %description tinydns -l de
158 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
159 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
160 lokal-konfigurierten Informationen.
162 %description tinydns -l pl
163 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
164 zapytania DNS od komputerów z ca³ego Internetu i odpowiada przy u¿yciu
165 lokalnie skonfigurowanych informacji.
167 %package tinydns-notify
168 Summary: DNS NOTIFY sending tool
169 Summary(pl): Narzêdzie do wysy³ania komunikatów DNS NOTIFY
171 Group: Networking/Daemons
172 URL: http://www.sericyb.com.au/tinydns-notify
173 Requires: %{name} = %{version}
174 Requires: perl-Net-DNS
175 Requires: perl-modules
176 Obsoletes: tinydns-notify
178 %description tinydns-notify
179 tinydns-notify is a tool written in Perl, which extracts zones and
180 their nameservers from tinydns-data files and sends DNS NOTIFY
181 requests to nameservers listed in notify-list file.
183 %description tinydns-notify -l pl
184 tinydns-notify jest napisanym w Perlu narzêdziem, które czyta pliki
185 stref i odpowiadaj±ce im serwery nazw z plików tinydns-data, a
186 nastêpnie wysy³a ¿±dania NOTIFY do serwerów wyspecyfikowanych w pliku
190 Summary: DJB's load-balancing DNS server
191 Summary(de): DJBs Belastung ausgleichender DNS-Server
192 Summary(pl): Serwer DNS równowa¿±cy obci±¿enie od DJB
193 Group: Networking/Daemons
194 Requires(post): diffutils
195 Requires(postun): /usr/sbin/groupdel
196 Requires(postun): /usr/sbin/userdel
197 Requires(pre): /bin/id
198 Requires(pre): /usr/sbin/groupadd
199 Requires(pre): /usr/sbin/useradd
200 Requires(preun): daemontools
201 Requires: %{name} = %{version}
202 Requires: daemontools >= 0.70-5
204 Provides: user(pickdns)
208 pickdns is a DNS load-balancing server from the djbdns package. It
209 accepts iterative DNS queries from hosts around the Internet and
210 responds with a dynamic selection of locally configured IP addresses
213 %description pickdns -l de
214 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
215 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
216 Internet und antwortet mit eine dynamische Auswahl von den
217 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
219 %description pickdns -l pl
220 pickdns jest równowa¿±cym obci±¿enie serwerem DNS z pakietu djbdns.
221 Odbiera on iteracyjne zapytania DNS od komputerów z ca³ego internetu i
222 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
223 5-sekundowymi TTLami.
226 Summary: DJB's reverse DNS wall
227 Summary(de): DJBs Wand rückgekehrten DNSs
228 Summary(pl): ¦ciana dla odwrotnych zapytañ DNS od DJB
229 Group: Networking/Daemons
230 Requires(post): diffutils
231 Requires(postun): /usr/sbin/groupdel
232 Requires(postun): /usr/sbin/userdel
233 Requires(pre): /bin/id
234 Requires(pre): /usr/sbin/groupadd
235 Requires(pre): /usr/sbin/useradd
236 Requires(preun): daemontools
237 Requires: %{name} = %{version}
238 Requires: daemontools >= 0.70-5
239 Provides: user(walldns)
243 walldns is a reverse DNS wall from the djbdns package. It accepts
244 iterative DNS queries for in-addr.arpa domains from hosts around the
245 Internet and supplies generic responses that avoid revealing local
248 %description walldns -l de
249 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
250 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
251 Hosts aus allem Internet und liefert Antworte, die vermeiden
252 Informationen über die lokalen Hosts zu aufzudecken.
254 %description walldns -l pl
255 walldns jest ¶cian± dla odwrotnych zapytañ DNS z pakietu djbdns.
256 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
257 komputerów z ca³ego Internetu i dostarcza odpowiedzi, które unikaj±
258 ujawniania informacji o lokalnych komputerach.
261 Summary: DJB's IP-address-listing DNS server
262 Summary(de): DJBs IP-Adressen-Listen-DNS-Server
263 Summary(pl): Serwer DNS list adresów IP od DJB
264 Group: Networking/Daemons
265 Requires(post): diffutils
266 Requires(postun): /usr/sbin/groupdel
267 Requires(postun): /usr/sbin/userdel
268 Requires(pre): /bin/id
269 Requires(pre): /usr/sbin/groupadd
270 Requires(pre): /usr/sbin/useradd
271 Requires(preun): daemontools
272 Requires: %{name} = %{version}
273 Requires: daemontools >= 0.70-5
275 Provides: user(rbldns)
280 rbldns is an IP-address-listing DNS server from the djbdns package. It
281 accepts iterative DNS queries from hosts around the Internet asking
282 about various IP addresses. It provides responses showing whether the
283 addresses are on a locally configured list, such as RBL or DUL.
285 %description rbldns -l de
286 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
287 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
288 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
289 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
290 Beispiel RBL oder DUL.
292 %description rbldns -l pl
293 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
294 iteracyjne zapytania DNS od komputerów z ca³ego Internetu pytaj±ce o
295 ró¿ne adresy IP. Dostarcza on odpowiedzi pokazuj±cych, czy adresy te
296 s± na lokalnie skonfigurowanej li¶cie takiej, jak RBL lub DUL.
299 Summary: DJB's DNS zone-transfer server
300 Summary(de): DJBs DNS-Zonen-Transfer-Server
301 Summary(pl): Serwer transferów stref DNS od DJB
302 Group: Networking/Daemons
303 Requires(postun): /usr/sbin/groupdel
304 Requires(postun): /usr/sbin/userdel
305 Requires(pre): /bin/id
306 Requires(pre): /usr/sbin/groupadd
307 Requires(pre): /usr/sbin/useradd
308 Requires(preun): daemontools
309 Requires: %{name} = %{version}
310 Requires: %{name}-tinydns = %{version}
311 Requires: daemontools >= 0.70-5
314 Provides: user(axfrdns)
318 axfrdns is a DNS zone transfer server from the djbdns package. It
319 reads a zone-transfer request in DNS-over-TCP format from its standard
320 input and responds with locally configured information.
322 %description axfrdns -l de
323 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
324 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
325 standarden Eingabe und antwortet mit den lokal-konfigurierten
328 %description axfrdns -l pl
329 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
330 on ze standardowego wej¶cia pro¶bê o transfer strefy w formacie
331 DNS-over-TCP i odpowiada przy u¿yciu lokalnie skonfigurowanych
348 ln -s merge/djbdns/* .
351 echo %{__cc} %{rpmcflags} >conf-cc
352 echo %{_prefix} > conf-home
356 rm -rf $RPM_BUILD_ROOT
357 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
358 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
360 install tinydns-notify $RPM_BUILD_ROOT%{_bindir}
361 install tinydns-log $RPM_BUILD_ROOT%{_bindir}
363 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
364 install axfr-get $RPM_BUILD_ROOT%{_bindir}
365 install axfrdns $RPM_BUILD_ROOT%{_bindir}
366 install axfrdns-conf $RPM_BUILD_ROOT%{_bindir}
367 install cachetest $RPM_BUILD_ROOT%{_bindir}
368 install dnscache $RPM_BUILD_ROOT%{_bindir}
369 install dnscache-conf $RPM_BUILD_ROOT%{_bindir}
370 install dnsfilter $RPM_BUILD_ROOT%{_bindir}
371 install dnsip $RPM_BUILD_ROOT%{_bindir}
372 install dnsipq $RPM_BUILD_ROOT%{_bindir}
373 install dnsmx $RPM_BUILD_ROOT%{_bindir}
374 install dnsname $RPM_BUILD_ROOT%{_bindir}
375 install dnsq $RPM_BUILD_ROOT%{_bindir}
376 install dnsqr $RPM_BUILD_ROOT%{_bindir}
377 install dnstrace $RPM_BUILD_ROOT%{_bindir}
378 install dnstxt $RPM_BUILD_ROOT%{_bindir}
379 install pickdns $RPM_BUILD_ROOT%{_bindir}
380 install pickdns-conf $RPM_BUILD_ROOT%{_bindir}
381 install pickdns-data $RPM_BUILD_ROOT%{_bindir}
382 install random-ip $RPM_BUILD_ROOT%{_bindir}
383 install rbldns $RPM_BUILD_ROOT%{_bindir}
384 install rbldns-conf $RPM_BUILD_ROOT%{_bindir}
385 install rbldns-data $RPM_BUILD_ROOT%{_bindir}
386 install tinydns $RPM_BUILD_ROOT%{_bindir}
387 install tinydns-conf $RPM_BUILD_ROOT%{_bindir}
388 install tinydns-data $RPM_BUILD_ROOT%{_bindir}
389 install tinydns-edit $RPM_BUILD_ROOT%{_bindir}
390 install tinydns-get $RPM_BUILD_ROOT%{_bindir}
391 install walldns $RPM_BUILD_ROOT%{_bindir}
392 install walldns-conf $RPM_BUILD_ROOT%{_bindir}
393 install djbdns-man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
394 install djbdns-man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
395 install djbdns-man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
399 install -d $RPM_BUILD_ROOT%{_sysconfdir}/dnscache/supervise
400 install -d $RPM_BUILD_ROOT/var/log/djbdns/dnscache
401 touch $RPM_BUILD_ROOT/var/log/djbdns/dnscache/{lock,state}
402 cd $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
403 install -d log/supervise
404 touch log/supervise/{lock,status}
405 mkfifo log/supervise/{control,ok}
406 touch supervise/{lock,status}
407 mkfifo supervise/{control,ok}
409 echo %{_sysconfdir}/dnscache/root>env/ROOT
410 echo 127.0.0.1 >env/IP
411 echo 0.0.0.0 >env/IPSEND
412 echo 1000000 >env/CACHESIZE
413 echo 3000000 >env/DATALIMIT
419 exec envdir ./env sh -c '
420 exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
425 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
429 touch root/ip/127.0.0.1
431 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/@
432 dd if=/dev/zero of=seed bs=128c count=1
436 install -d $RPM_BUILD_ROOT%{_sysconfdir}/tinydns/supervise
437 install -d $RPM_BUILD_ROOT/var/log/djbdns/tinydns
438 touch $RPM_BUILD_ROOT/var/log/djbdns/tinydns/{lock,state}
439 cd $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
440 install -d log/supervise
441 touch log/supervise/{lock,status}
442 mkfifo log/supervise/{control,ok}
443 touch supervise/{lock,status}
444 mkfifo supervise/{control,ok}
447 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
450 echo %{_sysconfdir}/tinydns/root>env/ROOT
451 echo 127.0.0.1 >env/IP
455 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
459 cat>root/add-ns<<'___'
461 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
463 cat>root/add-childns<<'___'
465 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
467 cat>root/add-host<<'___'
469 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
471 cat>root/add-host6<<'___'
473 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
475 cat>root/add-alias<<'___'
477 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
479 cat>root/add-alias6<<'___'
481 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
483 cat>root/add-mx<<'___'
485 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
487 cat>root/Makefile<<'___'
489 %{_bindir}/tinydns-data
494 install -d $RPM_BUILD_ROOT%{_sysconfdir}/pickdns/supervise
495 install -d $RPM_BUILD_ROOT/var/log/djbdns/pickdns
496 touch $RPM_BUILD_ROOT/var/log/djbdns/pickdns/{lock,state}
497 cd $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
498 install -d log/supervise
499 touch log/supervise/{lock,status}
500 mkfifo log/supervise/{control,ok}
501 touch supervise/{lock,status}
502 mkfifo supervise/{control,ok}
505 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
508 echo %{_sysconfdir}/pickdns/root>env/ROOT
509 echo 127.0.0.1 >env/IP
513 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
517 cat>root/Makefile<<___
519 %{_bindir}/pickdns-data
523 install -d $RPM_BUILD_ROOT%{_sysconfdir}/walldns/supervise
524 install -d $RPM_BUILD_ROOT/var/log/djbdns/walldns
525 touch $RPM_BUILD_ROOT/var/log/djbdns/walldns/{lock,state}
526 cd $RPM_BUILD_ROOT%{_sysconfdir}/walldns
527 install -d log/supervise
528 touch log/supervise/{lock,status}
529 mkfifo log/supervise/{control,ok}
530 touch supervise/{lock,status}
531 mkfifo supervise/{control,ok}
534 exec setuidgid dnslog multilog t ./main
537 echo %{_sysconfdir}/walldns/root>env/ROOT
538 echo 127.0.0.1 >env/IP
542 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
548 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rbldns/supervise
549 install -d $RPM_BUILD_ROOT/var/log/djbdns/rbldns
550 touch $RPM_BUILD_ROOT/var/log/djbdns/rbldns/{lock,state}
551 cd $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
552 install -d log/supervise
553 touch log/supervise/{lock,status}
554 mkfifo log/supervise/{control,ok}
555 touch supervise/{lock,status}
556 mkfifo supervise/{control,ok}
559 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
562 echo %{_sysconfdir}/rbldns/root>env/ROOT
563 echo 127.0.0.1 >env/IP
564 echo in-addr.arpa >env/BASE
568 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
572 cat>root/Makefile<<___
574 %{_bindir}/rbldns-data
578 # !10.11.12.13:See http://bad.example.com
579 # :127.0.0.2:blacklisted"
587 install -d $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns/supervise
588 install -d $RPM_BUILD_ROOT/var/log/djbdns/axfrdns
589 touch $RPM_BUILD_ROOT/var/log/djbdns/axfrdns/{lock,state}
590 cd $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
591 install -d log/supervise
592 touch log/supervise/{lock,status}
593 mkfifo log/supervise/{control,ok}
594 touch supervise/{lock,status}
595 mkfifo supervise/{control,ok}
598 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
601 echo %{_sysconfdir}/tinydns/root>env/ROOT
602 echo 127.0.0.1 >env/IP
606 exec envdir ./env sh -c '
607 exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
612 tcprules tcp.cdb tcp.tmp < tcp
615 # sample line: 1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
619 ##### daemontools symlinks #####
620 install -d $RPM_BUILD_ROOT/service
621 cd $RPM_BUILD_ROOT/service
622 ln -s ..%{_sysconfdir}/dnscache
623 ln -s ..%{_sysconfdir}/tinydns
624 ln -s ..%{_sysconfdir}/pickdns
625 ln -s ..%{_sysconfdir}/walldns
626 ln -s ..%{_sysconfdir}/rbldns
627 ln -s ..%{_sysconfdir}/axfrdns
630 rm -rf $RPM_BUILD_ROOT
633 %groupadd -g 32 -r -f djbdns
634 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
637 if [ "$1" = "0" ]; then
643 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
646 if [ ! -s /etc/dnscache/seed ]; then
647 dd if=/dev/urandom of=/etc/dnscache/seed bs=128c count=1
649 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
650 echo "Warning: dnscache and pickdns can't work on the same"
651 echo "IP address. You have to edit either /etc/dnscache/env/IP"
652 echo "or /etc/pickdns/env/IP."
654 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
655 echo "Warning: dnscache and rbldns can't work on the same"
656 echo "IP address. You have to edit either /etc/dnscache/env/IP"
657 echo "or /etc/rbldns/env/IP."
659 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
660 echo "Warning: dnscache and tinydns can't work on the same"
661 echo "IP address. You have to edit either /etc/dnscache/env/IP"
662 echo "or /etc/tinydns/env/IP."
664 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
665 echo "Warning: dnscache and walldns can't work on the same"
666 echo "IP address. You have to edit either /etc/dnscache/env/IP"
667 echo "or /etc/walldns/env/IP."
670 if [ -f /service/dnscache/supervise/lock ]; then
671 svc -t /service/dnscache{,/log}
675 if [ "$1" = "0" ]; then
676 # http://cr.yp.to/daemontools/faq/create.html#remove
677 if [ -f /service/dnscache/supervise/lock ]; then
685 if [ "$1" = "0" ]; then
690 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
693 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
694 echo "Warning: dnscache and tinydns can't work on the same"
695 echo "IP address. You have to edit either /etc/dnscache/env/IP"
696 echo "or /etc/tinydns/env/IP."
698 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
699 echo "Warning: pickdns and tinydns can't work on the same"
700 echo "IP address. You have to edit either /etc/pickdns/env/IP"
701 echo "or /etc/tinydns/env/IP."
703 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
704 echo "Warning: rbldns and tinydns can't work on the same"
705 echo "IP address. You have to edit either /etc/rbldns/env/IP"
706 echo "or /etc/tinydns/env/IP."
708 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
709 echo "Warning: tinydns and walldns can't work on the same"
710 echo "IP address. You have to edit either /etc/tinydns/env/IP"
711 echo "or /etc/walldns/env/IP."
714 if [ -f /service/tinydns/supervise/lock ]; then
715 svc -t /service/tinydns{,/log}
719 if [ "$1" = "0" ]; then
720 # http://cr.yp.to/daemontools/faq/create.html#remove
721 if [ -f /service/tinydns/supervise/lock ]; then
729 if [ "$1" = "0" ]; then
734 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
737 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
738 echo "Warning: dnscache and pickdns can't work on the same"
739 echo "IP address. You have to edit either /etc/dnscache/env/IP"
740 echo "or /etc/pickdns/env/IP."
742 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
743 echo "Warning: pickdns and rbldns can't work on the same"
744 echo "IP address. You have to edit either /etc/pickdns/env/IP"
745 echo "or /etc/rbldns/env/IP."
747 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
748 echo "Warning: pickdns and tinydns can't work on the same"
749 echo "IP address. You have to edit either /etc/pickdns/env/IP"
750 echo "or /etc/tinydns/env/IP."
752 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
753 echo "Warning: pickdns and walldns can't work on the same"
754 echo "IP address. You have to edit either /etc/pickdns/env/IP"
755 echo "or /etc/walldns/env/IP."
758 if [ -f /service/pickdns/supervise/lock ]; then
759 svc -t /service/pickdns{,/log}
763 if [ "$1" = "0" ]; then
764 # http://cr.yp.to/daemontools/faq/create.html#remove
765 if [ -f /service/pickdns/supervise/lock ]; then
773 if [ "$1" = "0" ]; then
778 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
781 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
782 echo "Warning: dnscache and walldns can't work on the same"
783 echo "IP address. You have to edit either /etc/dnscache/env/IP"
784 echo "or /etc/walldns/env/IP."
786 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
787 echo "Warning: pickdns and walldns can't work on the same"
788 echo "IP address. You have to edit either /etc/pickdns/env/IP"
789 echo "or /etc/walldns/env/IP."
791 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
792 echo "Warning: rbldns and walldns can't work on the same"
793 echo "IP address. You have to edit either /etc/rbldns/env/IP"
794 echo "or /etc/walldns/env/IP."
796 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
797 echo "Warning: tinydns and walldns can't work on the same"
798 echo "IP address. You have to edit either /etc/tinydns/env/IP"
799 echo "or /etc/walldns/env/IP."
802 if [ -f /service/walldns/supervise/lock ]; then
803 svc -t /service/walldns{,/log}
807 if [ "$1" = "0" ]; then
808 # http://cr.yp.to/daemontools/faq/create.html#remove
809 if [ -f /service/walldns/supervise/lock ]; then
817 if [ "$1" = "0" ]; then
822 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
825 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
826 echo "Warning: dnscache and rbldns can't work on the same"
827 echo "IP address. You have to edit either /etc/dnscache/env/IP"
828 echo "or /etc/rbldns/env/IP."
830 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
831 echo "Warning: pickdns and rbldns can't work on the same"
832 echo "IP address. You have to edit either /etc/pickdns/env/IP"
833 echo "or /etc/rbldns/env/IP."
835 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
836 echo "Warning: rbldns and tinydns can't work on the same"
837 echo "IP address. You have to edit either /etc/rbldns/env/IP"
838 echo "or /etc/tinydns/env/IP."
840 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
841 echo "Warning: rbldns and walldns can't work on the same"
842 echo "IP address. You have to edit either /etc/rbldns/env/IP"
843 echo "or /etc/walldns/env/IP."
846 if [ -f /service/rbldns/supervise/lock ]; then
847 svc -t /service/rbldns{,/log}
851 if [ "$1" = "0" ]; then
852 # http://cr.yp.to/daemontools/faq/create.html#remove
853 if [ -f /service/rbldns/supervise/lock ]; then
861 if [ "$1" = "0" ]; then
866 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
869 if [ "$1" = "0" ]; then
870 # http://cr.yp.to/daemontools/faq/create.html#remove
871 if [ -f /service/axfrdns/supervise/lock ]; then
879 if [ "$1" = "0" ]; then
884 %defattr(644,root,root,755)
885 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
886 %attr(755,root,root) %{_bindir}/cachetest
887 %attr(755,root,root) %{_bindir}/dns[f-t]*
888 %attr(755,root,root) %{_bindir}/axfr-get
890 %{_mandir}/man8/axfr-get*
891 %dir %attr(751,root,root) %dir /var/log/djbdns
894 %defattr(644,root,root,755)
895 %attr(755,root,root) %{_bindir}/dnscache*
896 %config %{_sysconfdir}/dnsroots.global
897 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
898 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
899 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
901 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
902 %attr(755,root,root) %{_sysconfdir}/dnscache/log/run
903 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
904 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
905 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
906 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
907 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
909 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
910 %config %{_sysconfdir}/dnscache/env/*
911 %attr(755,root,root) %{_sysconfdir}/dnscache/run
912 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root
913 # FIXME no globs for suid/sgid files
914 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root/*
915 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
916 %config %{_sysconfdir}/dnscache/root/servers/*
917 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
918 %{_mandir}/man8/dnscache*
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/tinydns*
924 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
925 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
926 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
928 %attr(755,root,root) %{_sysconfdir}/tinydns/log/run
929 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
930 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
931 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
932 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
933 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
934 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
936 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
937 %config %{_sysconfdir}/tinydns/env/*
938 %attr(755,root,root) %{_sysconfdir}/tinydns/run
939 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
940 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
941 %config %{_sysconfdir}/tinydns/root/data
942 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
943 %{_mandir}/man8/tinydns*
946 %files tinydns-notify
947 %defattr(644,root,root,755)
948 %attr(755,root,root) %{_bindir}/tinydns-notify
951 %defattr(644,root,root,755)
952 %attr(755,root,root) %{_bindir}/pickdns*
953 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
954 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
955 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
957 %attr(755,root,root) %{_sysconfdir}/pickdns/log/run
958 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
959 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
960 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
961 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
962 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
963 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
965 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
966 %config %{_sysconfdir}/pickdns/env/*
967 %attr(755,root,root) %{_sysconfdir}/pickdns/run
968 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
970 %config %{_sysconfdir}/pickdns/root/data
971 %{_mandir}/man8/pickdns*
975 %defattr(644,root,root,755)
976 %attr(755,root,root) %{_bindir}/walldns*
977 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
978 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
979 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
981 %attr(755,root,root) %{_sysconfdir}/walldns/log/run
982 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
983 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
984 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
985 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
986 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
987 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
989 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
990 %config %{_sysconfdir}/walldns/env/*
991 %attr(755,root,root) %{_sysconfdir}/walldns/run
992 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
993 %{_mandir}/man8/walldns*
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_bindir}/rbldns*
999 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
1000 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
1001 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
1003 %attr(755,root,root) %{_sysconfdir}/rbldns/log/run
1004 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
1005 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
1006 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
1007 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
1008 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
1009 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
1011 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
1012 %config %{_sysconfdir}/rbldns/env/*
1013 %attr(755,root,root) %{_sysconfdir}/rbldns/run
1014 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
1015 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
1016 %config %{_sysconfdir}/rbldns/root/data
1017 %{_mandir}/man8/rbldns*
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_bindir}/axfrdns*
1023 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
1024 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
1025 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
1027 %attr(755,root,root) %{_sysconfdir}/axfrdns/log/run
1028 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1029 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1030 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1031 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1032 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1033 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1035 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1036 %config %{_sysconfdir}/axfrdns/env/*
1037 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1038 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1039 %config %{_sysconfdir}/axfrdns/tcp
1040 %{_mandir}/man8/axfrdns*