]> git.pld-linux.org Git - packages/djbdns.git/blob - djbdns.spec
7d1064f2bc569c07f97099f70bdc861cda1e70be
[packages/djbdns.git] / djbdns.spec
1 # TODO
2 #  - warning: Installed (but unpackaged) file(s) found:
3 #   /etc/rbldns/data
4 #   /usr/bin/random-ip
5 Summary:        DJB DNS
6 Summary(pl.UTF-8):      DJB DNS
7 Name:           djbdns
8 Version:        1.05
9 Release:        23.2
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
24 # adds IPv6 support
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 Patch11:        %{name}-ipv6-incfix.patch
37 URL:            http://cr.yp.to/djbdns.html
38 BuildRequires:  rpm-perlprov
39 BuildRequires:  rpmbuild(macros) >= 1.202
40 Requires(postun):       /usr/sbin/groupdel
41 Requires(postun):       /usr/sbin/userdel
42 Requires(pre):  /bin/id
43 Requires(pre):  /usr/bin/getgid
44 Requires(pre):  /usr/sbin/groupadd
45 Requires(pre):  /usr/sbin/useradd
46 Provides:       group(djbdns)
47 Provides:       nameserver
48 Provides:       user(dnslog)
49 Obsoletes:      caching-nameserver
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %description
53 This is a set of DNS servers with security in mind. If you find a
54 security hole you can get a prize.
55
56 This package contains some basic DNS debugging tools and some
57 documentation. If you need a DNS server install one of the following
58 packages:
59
60  - djbdns-dnscache - a local DNS cache
61  - djbdns-dnscachex - an external DNS cache
62  - djbdns-tinydns - a DNS server
63  - djbdns-tinydns-notify - a tool to send NOTIFY requests
64  - djbdns-pickdns - a DNS load-balancing server
65  - djbdns-walldns - a reverse DNS wall
66  - djbdns-rbldns - an IP-address-listing DNS server
67  - djbdns-axfrdns - a DNS zone transfer server
68
69 %description -l de.UTF-8
70 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
71 ein Preis, wenn man ein Sicherheitsloch findet.
72
73 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
74 Wenn du einen DNS-Server braucht, installe ein von den folgenden
75 Paketen:
76
77  - djbdns-dnscache - ein lokaler DNS-Cache
78  - djbdns-tinydns - ein DNS-Server
79  - djbdns-pickdns - ein Belastung ausgleichender DNS-Server
80  - djbdns-walldns - eine Wand Rückgekehrten DNSs
81  - djbdns-rbldns - ein IP-Adressen-Listen-DNS-Server
82  - djbdns-axfrdns - ein DNS-Zonen-Transfer-Server
83
84 %description -l pl.UTF-8
85 Jest to alternatywny zestaw serwerów DNS'u, którego głównym celem jest
86 bezpieczeństwo. Za znalezienie dziury w tym systemie została
87 wyznaczona nawet nagroda.
88
89 Ten pakiet zawiera kilka podstawowych narzędzi DNS oraz trochę
90 dokumentacji. Jeśli potrzebujesz serwera DNS zainstaluj jeden z
91 następujących pakietów:
92
93  - djbdns-dnscache - lokalny cache DNS
94  - djbdns-tinydns - serwer DNS
95  - djbdns-tinydns-notify - narzędzie do wysyłania komunikatów NOTIFY
96  - djbdns-pickdns - serwer DNS do równoważenia obciążeń
97  - djbdns-walldns - ściana dla odwrotnych zapytań DNS
98  - djbdns-rbldns - serwer DNS list adresów IP
99  - djbdns-axfrdns - serwer transferów stref DNS
100
101 %package dnscache
102 Summary:        DJB's local DNS cache
103 Summary(de.UTF-8):      DJBs lokaler DNS-Cache
104 Summary(pl.UTF-8):      Lokalny cache DNS od DJB
105 Group:          Networking/Daemons
106 Requires(post): diffutils
107 Requires(post): fileutils
108 Requires(postun):       /usr/sbin/groupdel
109 Requires(postun):       /usr/sbin/userdel
110 Requires(pre):  /bin/id
111 Requires(pre):  /usr/sbin/groupadd
112 Requires(pre):  /usr/sbin/useradd
113 Requires(preun):        daemontools
114 Requires:       %{name} = %{version}-%{release}
115 Requires:       daemontools >= 0.70-5
116 Provides:       user(dnscache)
117 Obsoletes:      dnscache
118
119 %description dnscache
120 dnscache is a local DNS cache from the djbdns package. It accepts
121 recursive DNS queries from local clients such as web browsers and mail
122 transfer agents. It collects responses from remote DNS servers. It
123 caches the responses to save time later.
124
125 %description dnscache -l de.UTF-8
126 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
127 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
128 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
129 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
130 zu sparen.
131
132 %description dnscache -l pl.UTF-8
133 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
134 rekursywne zapytania DNS od lokalnych klientów takich, jak
135 przeglądarki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
136 od zdalnych serwerów DNS. Zapamiętuje on odpowiedzi, żeby później
137 oszczędzić czas.
138
139 %package dnscachex
140 Summary:        DJB's external DNS cache
141 Summary(pl.UTF-8):      Zewnętrzny cache DNS od DJB
142 Group:          Networking/Daemons
143 Requires(post): diffutils
144 Requires(post): fileutils
145 Requires(preun):        daemontools
146 Requires:       %{name}-dnscache = %{version}-%{release}
147
148 %description dnscachex
149 dnscachex is an external DNS cache from the djbdns package. It accepts
150 recursive DNS queries from external clients such as web browsers and
151 mail transfer agents. It collects responses from remote DNS servers.
152 It caches the responses to save time later.
153
154 %description dnscachex -l pl.UTF-8
155 dnscache jest zewnętrznym cachem DNS z pakietu djbdns. Przyjmuje on
156 rekursywne zapytania DNS od zewnętrznych klientów takich jak
157 przeglądarki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
158 od zdalnych serwerów DNS. Zapamiętuje on odpowiedzi, żeby później
159 oszczędzić czas.
160
161 %package tinydns
162 Summary:        DJB's DNS server
163 Summary(de.UTF-8):      DJBs DNS-Server
164 Summary(pl.UTF-8):      Serwer DNS od DJB
165 Group:          Networking/Daemons
166 Requires(post): diffutils
167 Requires(postun):       /usr/sbin/groupdel
168 Requires(postun):       /usr/sbin/userdel
169 Requires(pre):  /bin/id
170 Requires(pre):  /usr/sbin/groupadd
171 Requires(pre):  /usr/sbin/useradd
172 Requires(preun):        daemontools
173 Requires:       %{name} = %{version}-%{release}
174 Requires:       daemontools >= 0.70-5
175 Requires:       make
176 Provides:       user(tinydns)
177 Obsoletes:      tinydns
178
179 %description tinydns
180 tinydns is a DNS server from the djbdns package. It accepts iterative
181 DNS queries from hosts around the Internet and responds with
182 locally-configured information.
183
184 %description tinydns -l de.UTF-8
185 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
186 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
187 lokal-konfigurierten Informationen.
188
189 %description tinydns -l pl.UTF-8
190 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
191 zapytania DNS od komputerów z całego Internetu i odpowiada przy użyciu
192 lokalnie skonfigurowanych informacji.
193
194 %package tinydns-notify
195 Summary:        DNS NOTIFY sending tool
196 Summary(pl.UTF-8):      Narzędzie do wysyłania komunikatów DNS NOTIFY
197 License:        Free to use
198 Group:          Networking/Daemons
199 URL:            http://www.sericyb.com.au/tinydns-notify
200 Requires:       %{name} = %{version}-%{release}
201 Requires:       perl-Net-DNS
202 Requires:       perl-modules
203 Obsoletes:      tinydns-notify
204
205 %description tinydns-notify
206 tinydns-notify is a tool written in Perl, which extracts zones and
207 their nameservers from tinydns-data files and sends DNS NOTIFY
208 requests to nameservers listed in notify-list file.
209
210 %description tinydns-notify -l pl.UTF-8
211 tinydns-notify jest napisanym w Perlu narzędziem, które czyta pliki
212 stref i odpowiadające im serwery nazw z plików tinydns-data, a
213 następnie wysyła żądania NOTIFY do serwerów wyspecyfikowanych w pliku
214 notify-list.
215
216 %package pickdns
217 Summary:        DJB's load-balancing DNS server
218 Summary(de.UTF-8):      DJBs Belastung ausgleichender DNS-Server
219 Summary(pl.UTF-8):      Serwer DNS równoważący obciążenie od DJB
220 Group:          Networking/Daemons
221 Requires(post): diffutils
222 Requires(postun):       /usr/sbin/groupdel
223 Requires(postun):       /usr/sbin/userdel
224 Requires(pre):  /bin/id
225 Requires(pre):  /usr/sbin/groupadd
226 Requires(pre):  /usr/sbin/useradd
227 Requires(preun):        daemontools
228 Requires:       %{name} = %{version}-%{release}
229 Requires:       daemontools >= 0.70-5
230 Requires:       make
231 Provides:       user(pickdns)
232 Obsoletes:      pickdns
233
234 %description pickdns
235 pickdns is a DNS load-balancing server from the djbdns package. It
236 accepts iterative DNS queries from hosts around the Internet and
237 responds with a dynamic selection of locally configured IP addresses
238 with 5-second TTLs.
239
240 %description pickdns -l de.UTF-8
241 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
242 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
243 Internet und antwortet mit eine dynamische Auswahl von den
244 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
245
246 %description pickdns -l pl.UTF-8
247 pickdns jest równoważącym obciążenie serwerem DNS z pakietu djbdns.
248 Odbiera on iteracyjne zapytania DNS od komputerów z całego internetu i
249 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
250 5-sekundowymi TTLami.
251
252 %package walldns
253 Summary:        DJB's reverse DNS wall
254 Summary(de.UTF-8):      DJBs Wand rückgekehrten DNSs
255 Summary(pl.UTF-8):      Ściana dla odwrotnych zapytań DNS od DJB
256 Group:          Networking/Daemons
257 Requires(post): diffutils
258 Requires(postun):       /usr/sbin/groupdel
259 Requires(postun):       /usr/sbin/userdel
260 Requires(pre):  /bin/id
261 Requires(pre):  /usr/sbin/groupadd
262 Requires(pre):  /usr/sbin/useradd
263 Requires(preun):        daemontools
264 Requires:       %{name} = %{version}-%{release}
265 Requires:       daemontools >= 0.70-5
266 Provides:       user(walldns)
267 Obsoletes:      walldns
268
269 %description walldns
270 walldns is a reverse DNS wall from the djbdns package. It accepts
271 iterative DNS queries for in-addr.arpa domains from hosts around the
272 Internet and supplies generic responses that avoid revealing local
273 host information.
274
275 %description walldns -l de.UTF-8
276 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
277 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
278 Hosts aus allem Internet und liefert Antworte, die vermeiden
279 Informationen über die lokalen Hosts zu aufzudecken.
280
281 %description walldns -l pl.UTF-8
282 walldns jest ścianą dla odwrotnych zapytań DNS z pakietu djbdns.
283 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
284 komputerów z całego Internetu i dostarcza odpowiedzi, które unikają
285 ujawniania informacji o lokalnych komputerach.
286
287 %package rbldns
288 Summary:        DJB's IP-address-listing DNS server
289 Summary(de.UTF-8):      DJBs IP-Adressen-Listen-DNS-Server
290 Summary(pl.UTF-8):      Serwer DNS list adresów IP od DJB
291 Group:          Networking/Daemons
292 Requires(post): diffutils
293 Requires(postun):       /usr/sbin/groupdel
294 Requires(postun):       /usr/sbin/userdel
295 Requires(pre):  /bin/id
296 Requires(pre):  /usr/sbin/groupadd
297 Requires(pre):  /usr/sbin/useradd
298 Requires(preun):        daemontools
299 Requires:       %{name} = %{version}-%{release}
300 Requires:       daemontools >= 0.70-5
301 Requires:       make
302 Provides:       user(rbldns)
303 Obsoletes:      rbldns
304 #Obsoletes:     rbldnsd
305
306 %description rbldns
307 rbldns is an IP-address-listing DNS server from the djbdns package. It
308 accepts iterative DNS queries from hosts around the Internet asking
309 about various IP addresses. It provides responses showing whether the
310 addresses are on a locally configured list, such as RBL or DUL.
311
312 %description rbldns -l de.UTF-8
313 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
314 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
315 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
316 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
317 Beispiel RBL oder DUL.
318
319 %description rbldns -l pl.UTF-8
320 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
321 iteracyjne zapytania DNS od komputerów z całego Internetu pytające o
322 różne adresy IP. Dostarcza on odpowiedzi pokazujących, czy adresy te
323 są na lokalnie skonfigurowanej liście takiej, jak RBL lub DUL.
324
325 %package axfrdns
326 Summary:        DJB's DNS zone-transfer server
327 Summary(de.UTF-8):      DJBs DNS-Zonen-Transfer-Server
328 Summary(pl.UTF-8):      Serwer transferów stref DNS od DJB
329 Group:          Networking/Daemons
330 Requires(postun):       /usr/sbin/groupdel
331 Requires(postun):       /usr/sbin/userdel
332 Requires(pre):  /bin/id
333 Requires(pre):  /usr/sbin/groupadd
334 Requires(pre):  /usr/sbin/useradd
335 Requires(preun):        daemontools
336 Requires:       %{name} = %{version}-%{release}
337 Requires:       %{name}-tinydns = %{version}-%{release}
338 Requires:       daemontools >= 0.70-5
339 Requires:       make
340 Requires:       ucspi-tcp
341 Provides:       user(axfrdns)
342 Obsoletes:      axfrdns
343
344 %description axfrdns
345 axfrdns is a DNS zone transfer server from the djbdns package. It
346 reads a zone-transfer request in DNS-over-TCP format from its standard
347 input and responds with locally configured information.
348
349 %description axfrdns -l de.UTF-8
350 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
351 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
352 standarden Eingabe und antwortet mit den lokal-konfigurierten
353 Informationen.
354
355 %description axfrdns -l pl.UTF-8
356 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
357 on ze standardowego wejścia prośbę o transfer strefy w formacie
358 DNS-over-TCP i odpowiada przy użyciu lokalnie skonfigurowanych
359 informacji.
360
361 %prep
362 %setup -q -a1 -a2
363 install %{SOURCE3} .
364 install %{SOURCE4} .
365
366 %patch1 -p1
367 %patch0 -p1
368 %patch3 -p1
369 %patch4 -p1
370 %patch5
371 %patch6 -p1
372 %patch8 -p1
373 %patch9 -p1
374 %patch10 -p1
375 %patch11 -p1
376 cd doc
377 ln -s merge/djbdns/* .
378
379 %build
380 echo %{__cc} %{rpmcflags} >conf-cc
381 echo %{_prefix} > conf-home
382 %{__make}
383
384 %install
385 rm -rf $RPM_BUILD_ROOT
386 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
387 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
388
389 install tinydns-notify  $RPM_BUILD_ROOT%{_bindir}
390 install tinydns-log             $RPM_BUILD_ROOT%{_bindir}
391
392 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
393 install axfr-get        $RPM_BUILD_ROOT%{_bindir}
394 install axfrdns         $RPM_BUILD_ROOT%{_bindir}
395 install axfrdns-conf    $RPM_BUILD_ROOT%{_bindir}
396 install cachetest       $RPM_BUILD_ROOT%{_bindir}
397 install dnscache        $RPM_BUILD_ROOT%{_bindir}
398 install dnscache-conf   $RPM_BUILD_ROOT%{_bindir}
399 install dnsfilter       $RPM_BUILD_ROOT%{_bindir}
400 install dnsip           $RPM_BUILD_ROOT%{_bindir}
401 install dnsipq          $RPM_BUILD_ROOT%{_bindir}
402 install dnsmx           $RPM_BUILD_ROOT%{_bindir}
403 install dnsname         $RPM_BUILD_ROOT%{_bindir}
404 install dnsq            $RPM_BUILD_ROOT%{_bindir}
405 install dnsqr           $RPM_BUILD_ROOT%{_bindir}
406 install dnstrace        $RPM_BUILD_ROOT%{_bindir}
407 install dnstxt          $RPM_BUILD_ROOT%{_bindir}
408 install pickdns         $RPM_BUILD_ROOT%{_bindir}
409 install pickdns-conf    $RPM_BUILD_ROOT%{_bindir}
410 install pickdns-data    $RPM_BUILD_ROOT%{_bindir}
411 install random-ip       $RPM_BUILD_ROOT%{_bindir}
412 install rbldns          $RPM_BUILD_ROOT%{_bindir}
413 install rbldns-conf     $RPM_BUILD_ROOT%{_bindir}
414 install rbldns-data     $RPM_BUILD_ROOT%{_bindir}
415 install tinydns         $RPM_BUILD_ROOT%{_bindir}
416 install tinydns-conf    $RPM_BUILD_ROOT%{_bindir}
417 install tinydns-data    $RPM_BUILD_ROOT%{_bindir}
418 install tinydns-edit    $RPM_BUILD_ROOT%{_bindir}
419 install tinydns-get     $RPM_BUILD_ROOT%{_bindir}
420 install walldns         $RPM_BUILD_ROOT%{_bindir}
421 install walldns-conf    $RPM_BUILD_ROOT%{_bindir}
422 install djbdns-man/*.1  $RPM_BUILD_ROOT%{_mandir}/man1
423 install djbdns-man/*.5  $RPM_BUILD_ROOT%{_mandir}/man5
424 install djbdns-man/*.8  $RPM_BUILD_ROOT%{_mandir}/man8
425
426 make_supervise_service() {
427         %{?debug:set -x}
428         local service="$1"
429         local svcdir=$RPM_BUILD_ROOT%{_sysconfdir}/$service
430         local logdir=$RPM_BUILD_ROOT/var/log/djbdns/$service
431
432         install -d $svcdir/supervise $svcdir/log/supervise $logdir
433         touch $logdir/{lock,state}
434
435         touch $svcdir/log/supervise/{lock,status}
436         mkfifo $svcdir/log/supervise/{control,ok}
437         touch $svcdir/supervise/{lock,status}
438         mkfifo $svcdir/supervise/{control,ok}
439 }
440
441 ##### DNSCACHE #####
442 make_supervise_service dnscache
443 s=$RPM_BUILD_ROOT%{_sysconfdir}/dnscache
444 mkdir $s/env
445 echo %{_sysconfdir}/dnscache/root > $s/env/ROOT
446 echo 127.0.0.1                    > $s/env/IP
447 echo 0.0.0.0                      > $s/env/IPSEND
448 echo 1000000                      > $s/env/CACHESIZE
449 echo 3000000                      > $s/env/DATALIMIT
450 touch $s/env/IGNOREIP
451 cat>$s/run<<'EOF'
452 #!/bin/sh
453 exec 2>&1
454 exec <seed
455 exec envdir ./env sh -c '
456   exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
457 '
458 EOF
459 cat>$s/log/run<<'EOF'
460 #!/bin/sh
461 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
462 EOF
463 mkdir $s/root
464 mkdir $s/root/ip
465 touch $s/root/ip/127.0.0.1
466 mkdir $s/root/servers
467 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global $s/root/servers/@
468 dd if=/dev/zero of=$s/seed bs=128c count=1
469
470 ##### DNSCACHEX #####
471 make_supervise_service dnscachex
472 s=$RPM_BUILD_ROOT%{_sysconfdir}/dnscachex
473 mkdir $s/env
474 echo %{_sysconfdir}/dnscachex/root > $s/env/ROOT
475 echo 127.0.0.1                    > $s/env/IP
476 echo 0.0.0.0                      > $s/env/IPSEND
477 echo 1000000                      > $s/env/CACHESIZE
478 echo 3000000                      > $s/env/DATALIMIT
479 touch $s/env/IGNOREIP
480 cat>$s/run<<'EOF'
481 #!/bin/sh
482 exec 2>&1
483 exec <seed
484 exec envdir ./env sh -c '
485   exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
486 '
487 EOF
488 cat>$s/log/run<<'EOF'
489 #!/bin/sh
490 exec setuidgid dnslog multilog t /var/log/djbdns/dnscachex
491 EOF
492 mkdir $s/root
493 mkdir $s/root/ip
494 touch $s/root/ip/127.0.0.1
495 mkdir $s/root/servers
496 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global $s/root/servers/@
497 dd if=/dev/zero of=$s/seed bs=128c count=1
498
499 ##### TINYDNS #####
500 make_supervise_service tinydns
501 s=$RPM_BUILD_ROOT%{_sysconfdir}/tinydns
502 cat>$s/log/run<<EOF
503 #!/bin/sh
504 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
505 EOF
506 mkdir $s/env
507 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
508 echo 127.0.0.1                   > $s/env/IP
509 cat>$s/run<<EOF
510 #!/bin/sh
511 exec 2>&1
512 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
513 EOF
514 mkdir $s/root
515 touch $s/root/data
516 cat>$s/root/add-ns<<'EOF'
517 #!/bin/sh
518 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
519 EOF
520 cat>$s/root/add-childns<<'EOF'
521 #!/bin/sh
522 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
523 EOF
524 cat>$s/root/add-host<<'EOF'
525 #!/bin/sh
526 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
527 EOF
528 cat>$s/root/add-host6<<'EOF'
529 #!/bin/sh
530 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
531 EOF
532 cat>$s/root/add-alias<<'EOF'
533 #!/bin/sh
534 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
535 EOF
536 cat>$s/root/add-alias6<<'EOF'
537 #!/bin/sh
538 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
539 EOF
540 cat>$s/root/add-mx<<'EOF'
541 #!/bin/sh
542 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
543 EOF
544 cat>$s/root/Makefile<<'EOF'
545 data.cdb: data
546         %{_bindir}/tinydns-data
547 EOF
548
549 ##### PICKDNS #####
550 make_supervise_service pickdns
551 s=$RPM_BUILD_ROOT%{_sysconfdir}/pickdns
552 cat>$s/log/run<<EOF
553 #!/bin/sh
554 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
555 EOF
556 mkdir $s/env
557 echo %{_sysconfdir}/pickdns/root > $s/env/ROOT
558 echo 127.0.0.1                   > $s/env/IP
559 cat>$s/run<<EOF
560 #!/bin/sh
561 exec 2>&1
562 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
563 EOF
564 mkdir $s/root
565 touch $s/root/data
566 cat>$s/root/Makefile<<EOF
567 data.cdb: data
568         %{_bindir}/pickdns-data
569 EOF
570
571 ##### WALLDNS #####
572 make_supervise_service walldns
573 s=$RPM_BUILD_ROOT%{_sysconfdir}/walldns
574 cat>$s/log/run<<EOF
575 #!/bin/sh
576 exec setuidgid dnslog multilog t ./main
577 EOF
578 mkdir $s/env
579 echo %{_sysconfdir}/walldns/root > $s/env/ROOT
580 echo 127.0.0.1                   > $s/env/IP
581 cat>$s/run<<EOF
582 #!/bin/sh
583 exec 2>&1
584 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
585 EOF
586 mkdir $s/root
587
588 ##### RBLDNS #####
589 make_supervise_service rbldns
590 s=$RPM_BUILD_ROOT%{_sysconfdir}/rbldns
591 cat>$s/log/run<<EOF
592 #!/bin/sh
593 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
594 EOF
595 mkdir $s/env
596 echo %{_sysconfdir}/rbldns/root > $s/env/ROOT
597 echo 127.0.0.1                  > $s/env/IP
598 echo in-addr.arpa               > $s/env/BASE
599 cat>$s/run<<EOF
600 #!/bin/sh
601 exec 2>&1
602 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
603 EOF
604 mkdir $s/root
605 touch $s/root/data
606 cat>$s/root/Makefile<<EOF
607 data.cdb: data
608         %{_bindir}/rbldns-data
609 EOF
610 cat>$s/data<<EOF
611 # example
612 # !10.11.12.13:See http://bad.example.com
613 # :127.0.0.2:blacklisted"
614 # 1.2.3.0/24
615 EOF
616
617
618
619 ##### AXFRDNS #####
620 make_supervise_service axfrdns
621 s=$RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
622 cat>$s/log/run<<EOF
623 #!/bin/sh
624 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
625 EOF
626 mkdir $s/env
627 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
628 echo 127.0.0.1                   > $s/env/IP
629 cat>$s/run<<'EOF'
630 #!/bin/sh
631 exec 2>&1
632 exec envdir ./env sh -c '
633   exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
634 '
635 EOF
636 cat>$s/Makefile<<'EOF'
637 tcp.cdb: tcp
638         tcprules tcp.cdb tcp.tmp < tcp
639 EOF
640 cat>$s/tcp<<'EOF'
641 # sample line:  1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
642 :deny
643 EOF
644
645 ##### daemontools symlinks #####
646 install -d $RPM_BUILD_ROOT/service
647 cd $RPM_BUILD_ROOT/service
648 ln -s ..%{_sysconfdir}/dnscache
649 ln -s ..%{_sysconfdir}/dnscachex
650 ln -s ..%{_sysconfdir}/tinydns
651 ln -s ..%{_sysconfdir}/pickdns
652 ln -s ..%{_sysconfdir}/walldns
653 ln -s ..%{_sysconfdir}/rbldns
654 ln -s ..%{_sysconfdir}/axfrdns
655
656 %clean
657 rm -rf $RPM_BUILD_ROOT
658
659 %pre
660 %groupadd -g 32 -r -f djbdns
661 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
662
663 %postun
664 if [ "$1" = "0" ]; then
665         %userremove dnslog
666         %groupremove djbdns
667 fi
668
669 %pre dnscache
670 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
671
672 %post dnscache
673 if [ ! -s %{_sysconfdir}/dnscache/seed ]; then
674         dd if=/dev/urandom of=%{_sysconfdir}/dnscache/seed bs=128c count=1
675 fi
676 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
677         echo "Warning: dnscache and pickdns can't work on the same"
678         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
679         echo "or %{_sysconfdir}/pickdns/env/IP."
680 fi
681 if diff -u %{_sysconfdir}/{dnscache,dnscachex}/env/IP >/dev/zero 2>&1;then
682         echo "Warning: dnscache and dnscachex can't work on the same"
683         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
684         echo "or %{_sysconfdir}/dnscachex/env/IP."
685 fi
686 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
687         echo "Warning: dnscache and rbldns can't work on the same"
688         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
689         echo "or %{_sysconfdir}/rbldns/env/IP."
690 fi
691 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
692         echo "Warning: dnscache and tinydns can't work on the same"
693         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
694         echo "or %{_sysconfdir}/tinydns/env/IP."
695 fi
696 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
697         echo "Warning: dnscache and walldns can't work on the same"
698         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
699         echo "or %{_sysconfdir}/walldns/env/IP."
700 fi
701
702 if [ -f /service/dnscache/supervise/lock ]; then
703         svc -t /service/dnscache{,/log}
704 fi
705
706 %preun dnscache
707 if [ "$1" = "0" ]; then
708         # http://cr.yp.to/daemontools/faq/create.html#remove
709         if [ -f /service/dnscache/supervise/lock ]; then
710                 cd /service/dnscache
711                 rm /service/dnscache
712                 svc -dx . log
713         fi
714 fi
715
716 %postun dnscache
717 if [ "$1" = "0" ]; then
718         %userremove dnscache
719 fi
720
721 %post dnscachex
722 if [ ! -s %{_sysconfdir}/dnscachex/seed ]; then
723         dd if=/dev/urandom of=%{_sysconfdir}/dnscachex/seed bs=128c count=1
724 fi
725 if diff -u %{_sysconfdir}/{dnscachex,dnscache}/env/IP >/dev/zero 2>&1;then
726         echo "Warning: dnscachex and dnscache can't work on the same"
727         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
728         echo "or %{_sysconfdir}/dnscache/env/IP."
729 fi
730 if diff -u %{_sysconfdir}/{dnscachex,pickdns}/env/IP >/dev/zero 2>&1;then
731         echo "Warning: dnscachex and pickdns can't work on the same"
732         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
733         echo "or %{_sysconfdir}/pickdns/env/IP."
734 fi
735 if diff -u %{_sysconfdir}/{dnscachex,rbldns}/env/IP >/dev/zero 2>&1;then
736         echo "Warning: dnscachex and rbldns can't work on the same"
737         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
738         echo "or %{_sysconfdir}/rbldns/env/IP."
739 fi
740 if diff -u %{_sysconfdir}/{dnscachex,tinydns}/env/IP >/dev/zero 2>&1;then
741         echo "Warning: dnscachex and tinydns can't work on the same"
742         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
743         echo "or %{_sysconfdir}/tinydns/env/IP."
744 fi
745 if diff -u %{_sysconfdir}/{dnscachex,walldns}/env/IP >/dev/zero 2>&1;then
746         echo "Warning: dnscachex and walldns can't work on the same"
747         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
748         echo "or %{_sysconfdir}/walldns/env/IP."
749 fi
750
751 if [ -f /service/dnscachex/supervise/lock ]; then
752         svc -t /service/dnscachex{,/log}
753 fi
754
755 %preun dnscachex
756 if [ "$1" = "0" ]; then
757         # http://cr.yp.to/daemontools/faq/create.html#remove
758         if [ -f /service/dnscachex/supervise/lock ]; then
759                 cd /service/dnscachex
760                 rm /service/dnscachex
761                 svc -dx . log
762         fi
763 fi
764
765 %pre tinydns
766 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
767
768 %post tinydns
769 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
770         echo "Warning: dnscache and tinydns can't work on the same"
771         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
772         echo "or %{_sysconfdir}/tinydns/env/IP."
773 fi
774 if diff -u %{_sysconfdir}/{dnscachex,tinydns}/env/IP >/dev/zero 2>&1;then
775         echo "Warning: dnscachex and tinydns can't work on the same"
776         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
777         echo "or %{_sysconfdir}/tinydns/env/IP."
778 fi
779 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
780         echo "Warning: pickdns and tinydns can't work on the same"
781         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
782         echo "or %{_sysconfdir}/tinydns/env/IP."
783 fi
784 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
785         echo "Warning: rbldns and tinydns can't work on the same"
786         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
787         echo "or %{_sysconfdir}/tinydns/env/IP."
788 fi
789 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
790         echo "Warning: tinydns and walldns can't work on the same"
791         echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
792         echo "or %{_sysconfdir}/walldns/env/IP."
793 fi
794
795 if [ -f /service/tinydns/supervise/lock ]; then
796         svc -t /service/tinydns{,/log}
797 fi
798
799 %preun tinydns
800 if [ "$1" = "0" ]; then
801         # http://cr.yp.to/daemontools/faq/create.html#remove
802         if [ -f /service/tinydns/supervise/lock ]; then
803                 cd /service/tinydns
804                 rm /service/tinydns
805                 svc -dx . log
806         fi
807 fi
808
809 %postun tinydns
810 if [ "$1" = "0" ]; then
811         %userremove tinydns
812 fi
813
814 %pre pickdns
815 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
816
817 %post pickdns
818 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
819         echo "Warning: dnscache and pickdns can't work on the same"
820         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
821         echo "or %{_sysconfdir}/pickdns/env/IP."
822 fi
823 if diff -u %{_sysconfdir}/{dnscachex,pickdns}/env/IP >/dev/zero 2>&1;then
824         echo "Warning: dnscachex and pickdns can't work on the same"
825         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
826         echo "or %{_sysconfdir}/pickdns/env/IP."
827 fi
828 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
829         echo "Warning: pickdns and rbldns can't work on the same"
830         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
831         echo "or %{_sysconfdir}/rbldns/env/IP."
832 fi
833 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
834         echo "Warning: pickdns and tinydns can't work on the same"
835         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
836         echo "or %{_sysconfdir}/tinydns/env/IP."
837 fi
838 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
839         echo "Warning: pickdns and walldns can't work on the same"
840         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
841         echo "or %{_sysconfdir}/walldns/env/IP."
842 fi
843
844 if [ -f /service/pickdns/supervise/lock ]; then
845         svc -t /service/pickdns{,/log}
846 fi
847
848 %preun pickdns
849 if [ "$1" = "0" ]; then
850         # http://cr.yp.to/daemontools/faq/create.html#remove
851         if [ -f /service/pickdns/supervise/lock ]; then
852                 cd /service/pickdns
853                 rm /service/pickdns
854                 svc -dx . log
855         fi
856 fi
857
858 %postun pickdns
859 if [ "$1" = "0" ]; then
860         %userremove pickdns
861 fi
862
863 %pre walldns
864 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
865
866 %post walldns
867 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
868         echo "Warning: dnscache and walldns can't work on the same"
869         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
870         echo "or %{_sysconfdir}/walldns/env/IP."
871 fi
872 if diff -u %{_sysconfdir}/{dnscachex,walldns}/env/IP >/dev/zero 2>&1;then
873         echo "Warning: dnscachex and walldns can't work on the same"
874         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
875         echo "or %{_sysconfdir}/walldns/env/IP."
876 fi
877 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
878         echo "Warning: pickdns and walldns can't work on the same"
879         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
880         echo "or %{_sysconfdir}/walldns/env/IP."
881 fi
882 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
883         echo "Warning: rbldns and walldns can't work on the same"
884         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
885         echo "or %{_sysconfdir}/walldns/env/IP."
886 fi
887 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
888         echo "Warning: tinydns and walldns can't work on the same"
889         echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
890         echo "or %{_sysconfdir}/walldns/env/IP."
891 fi
892
893 if [ -f /service/walldns/supervise/lock ]; then
894         svc -t /service/walldns{,/log}
895 fi
896
897 %preun walldns
898 if [ "$1" = "0" ]; then
899         # http://cr.yp.to/daemontools/faq/create.html#remove
900         if [ -f /service/walldns/supervise/lock ]; then
901                 cd /service/walldns
902                 rm /service/walldns
903                 svc -dx . log
904         fi
905 fi
906
907 %postun walldns
908 if [ "$1" = "0" ]; then
909         %userremove walldns
910 fi
911
912 %pre rbldns
913 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
914
915 %post rbldns
916 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
917         echo "Warning: dnscache and rbldns can't work on the same"
918         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
919         echo "or %{_sysconfdir}/rbldns/env/IP."
920 fi
921 if diff -u %{_sysconfdir}/{dnscachex,rbldns}/env/IP >/dev/zero 2>&1;then
922         echo "Warning: dnscachex and rbldns can't work on the same"
923         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
924         echo "or %{_sysconfdir}/rbldns/env/IP."
925 fi
926 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
927         echo "Warning: pickdns and rbldns can't work on the same"
928         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
929         echo "or %{_sysconfdir}/rbldns/env/IP."
930 fi
931 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
932         echo "Warning: rbldns and tinydns can't work on the same"
933         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
934         echo "or %{_sysconfdir}/tinydns/env/IP."
935 fi
936 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
937         echo "Warning: rbldns and walldns can't work on the same"
938         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
939         echo "or %{_sysconfdir}/walldns/env/IP."
940 fi
941
942 if [ -f /service/rbldns/supervise/lock ]; then
943         svc -t /service/rbldns{,/log}
944 fi
945
946 %preun rbldns
947 if [ "$1" = "0" ]; then
948         # http://cr.yp.to/daemontools/faq/create.html#remove
949         if [ -f /service/rbldns/supervise/lock ]; then
950                 cd /service/rbldns
951                 rm /service/rbldns
952                 svc -dx . log
953         fi
954 fi
955
956 %postun rbldns
957 if [ "$1" = "0" ]; then
958         %userremove rbldns
959 fi
960
961 %pre axfrdns
962 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
963
964 %preun axfrdns
965 if [ "$1" = "0" ]; then
966         # http://cr.yp.to/daemontools/faq/create.html#remove
967         if [ -f /service/axfrdns/supervise/lock ]; then
968                 cd /service/axfrdns
969                 rm /service/axfrdns
970                 svc -dx . log
971         fi
972 fi
973
974 %postun axfrdns
975 if [ "$1" = "0" ]; then
976         %userremove axfrdns
977 fi
978
979 %files
980 %defattr(644,root,root,755)
981 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
982 %attr(755,root,root) %{_bindir}/cachetest
983 %attr(755,root,root) %{_bindir}/dns[f-t]*
984 %attr(755,root,root) %{_bindir}/axfr-get
985 %{_mandir}/man[15]/*
986 %{_mandir}/man8/axfr-get*
987 %dir %attr(751,root,root) %dir /var/log/djbdns
988
989 %files dnscache
990 %defattr(644,root,root,755)
991 %attr(755,root,root) %{_bindir}/dnscache*
992 %config %{_sysconfdir}/dnsroots.global
993 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
994 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
995 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
996
997 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
998 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscache/log/run
999 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
1000 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
1001 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
1002 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
1003 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
1004
1005 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
1006 %config %{_sysconfdir}/dnscache/env/*
1007 %attr(755,root,root) %{_sysconfdir}/dnscache/run
1008 %dir %{_sysconfdir}/dnscache/root
1009 %dir %{_sysconfdir}/dnscache/root/ip
1010 %dir %{_sysconfdir}/dnscache/root/servers
1011 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
1012 %config %{_sysconfdir}/dnscache/root/servers/*
1013 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
1014 %{_mandir}/man8/dnscache*
1015 /service/dnscache
1016
1017 %files dnscachex
1018 %defattr(644,root,root,755)
1019 %dir %attr(1755,root,root) %{_sysconfdir}/dnscachex
1020 %attr(700,root,root) %dir %{_sysconfdir}/dnscachex/supervise
1021 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscachex/supervise/*
1022
1023 %dir %attr(1755,root,root) %{_sysconfdir}/dnscachex/log
1024 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscachex/log/run
1025 %attr(700,root,root) %dir %{_sysconfdir}/dnscachex/log/supervise
1026 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscachex/log/supervise/*
1027 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscachex
1028 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscachex/lock
1029 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscachex/state
1030
1031 %dir %attr(2755,root,root) %{_sysconfdir}/dnscachex/env
1032 %config %{_sysconfdir}/dnscachex/env/*
1033 %attr(755,root,root) %{_sysconfdir}/dnscachex/run
1034 %dir %{_sysconfdir}/dnscachex/root
1035 %dir %{_sysconfdir}/dnscachex/root/ip
1036 %dir %{_sysconfdir}/dnscachex/root/servers
1037 %config %attr(600,root,root) %{_sysconfdir}/dnscachex/root/ip/*
1038 %config %{_sysconfdir}/dnscachex/root/servers/*
1039 %ghost %attr(600,root,root) %{_sysconfdir}/dnscachex/seed
1040 /service/dnscachex
1041
1042 %files tinydns
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_bindir}/tinydns*
1045 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
1046 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
1047 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
1048
1049 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/log/run
1050 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
1051 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
1052 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
1053 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
1054 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
1055 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
1056
1057 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
1058 %config %{_sysconfdir}/tinydns/env/*
1059 %attr(755,root,root) %{_sysconfdir}/tinydns/run
1060 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
1061 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
1062 %config %{_sysconfdir}/tinydns/root/data
1063 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
1064 %{_mandir}/man8/tinydns*
1065 /service/tinydns
1066
1067 %files tinydns-notify
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_bindir}/tinydns-notify
1070
1071 %files pickdns
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_bindir}/pickdns*
1074 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
1075 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
1076 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
1077
1078 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/log/run
1079 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
1080 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
1081 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
1082 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
1083 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
1084 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
1085
1086 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
1087 %config %{_sysconfdir}/pickdns/env/*
1088 %attr(755,root,root) %{_sysconfdir}/pickdns/run
1089 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
1090 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
1091 %config %{_sysconfdir}/pickdns/root/data
1092 %{_mandir}/man8/pickdns*
1093 /service/pickdns
1094
1095 %files walldns
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_bindir}/walldns*
1098 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
1099 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
1100 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
1101
1102 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/walldns/log/run
1103 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
1104 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
1105 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
1106 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
1107 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
1108 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
1109
1110 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
1111 %config %{_sysconfdir}/walldns/env/*
1112 %attr(755,root,root) %{_sysconfdir}/walldns/run
1113 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
1114 %{_mandir}/man8/walldns*
1115 /service/walldns
1116
1117 %files rbldns
1118 %defattr(644,root,root,755)
1119 %attr(755,root,root) %{_bindir}/rbldns*
1120 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
1121 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
1122 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
1123
1124 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/log/run
1125 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
1126 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
1127 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
1128 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
1129 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
1130 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
1131
1132 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
1133 %config %{_sysconfdir}/rbldns/env/*
1134 %attr(755,root,root) %{_sysconfdir}/rbldns/run
1135 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
1136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
1137 %config %{_sysconfdir}/rbldns/root/data
1138 %{_mandir}/man8/rbldns*
1139 /service/rbldns
1140
1141 %files axfrdns
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{_bindir}/axfrdns*
1144 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
1145 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
1146 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
1147
1148 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/log/run
1149 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1150 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1151 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1152 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1153 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1154 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1155
1156 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1157 %config %{_sysconfdir}/axfrdns/env/*
1158 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1160 %config %{_sysconfdir}/axfrdns/tcp
1161 %{_mandir}/man8/axfrdns*
1162 /service/axfrdns
This page took 1.372032 seconds and 2 git commands to generate.