]> git.pld-linux.org Git - packages/djbdns.git/blob - djbdns.spec
- tabs in preamble
[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:        22.1
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
23 # adds IPv6 support
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)
45 Provides:       nameserver
46 Provides:       user(dnslog)
47 Obsoletes:      caching-nameserver
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 This is a set of DNS servers with security in mind. If you find a
52 security hole you can get a prize.
53
54 This package contains some basic DNS debugging tools and some
55 documentation. If you need a DNS server install one of the following
56 packages:
57
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
65
66 %description -l de.UTF-8
67 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
68 ein Preis, wenn man ein Sicherheitsloch findet.
69
70 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
71 Wenn du einen DNS-Server braucht, installe ein von den folgenden
72 Paketen:
73
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
80
81 %description -l pl.UTF-8
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.
85
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:
89
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
97
98 %package dnscache
99 Summary:        DJB's local DNS cache
100 Summary(de.UTF-8):      DJBs lokaler DNS-Cache
101 Summary(pl.UTF-8):      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)
114 Obsoletes:      dnscache
115
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.
121
122 %description dnscache -l de.UTF-8
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
127 zu sparen.
128
129 %description dnscache -l pl.UTF-8
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
134 oszczędzić czas.
135
136 %package tinydns
137 Summary:        DJB's DNS server
138 Summary(de.UTF-8):      DJBs DNS-Server
139 Summary(pl.UTF-8):      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
150 Requires:       make
151 Provides:       user(tinydns)
152 Obsoletes:      tinydns
153
154 %description 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.
158
159 %description tinydns -l de.UTF-8
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.
163
164 %description tinydns -l pl.UTF-8
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.
168
169 %package tinydns-notify
170 Summary:        DNS NOTIFY sending tool
171 Summary(pl.UTF-8):      Narzędzie do wysyłania komunikatów DNS NOTIFY
172 License:        Free to use
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
179
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.
184
185 %description tinydns-notify -l pl.UTF-8
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
189 notify-list.
190
191 %package pickdns
192 Summary:        DJB's load-balancing DNS server
193 Summary(de.UTF-8):      DJBs Belastung ausgleichender DNS-Server
194 Summary(pl.UTF-8):      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
205 Requires:       make
206 Provides:       user(pickdns)
207 Obsoletes:      pickdns
208
209 %description 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
213 with 5-second TTLs.
214
215 %description pickdns -l de.UTF-8
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.
220
221 %description pickdns -l pl.UTF-8
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.
226
227 %package walldns
228 Summary:        DJB's reverse DNS wall
229 Summary(de.UTF-8):      DJBs Wand rückgekehrten DNSs
230 Summary(pl.UTF-8):      Ś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)
242 Obsoletes:      walldns
243
244 %description 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
248 host information.
249
250 %description walldns -l de.UTF-8
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.
255
256 %description walldns -l pl.UTF-8
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.
261
262 %package rbldns
263 Summary:        DJB's IP-address-listing DNS server
264 Summary(de.UTF-8):      DJBs IP-Adressen-Listen-DNS-Server
265 Summary(pl.UTF-8):      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
276 Requires:       make
277 Provides:       user(rbldns)
278 Obsoletes:      rbldns
279 #Obsoletes:     rbldnsd
280
281 %description 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.
286
287 %description rbldns -l de.UTF-8
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.
293
294 %description rbldns -l pl.UTF-8
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.
299
300 %package axfrdns
301 Summary:        DJB's DNS zone-transfer server
302 Summary(de.UTF-8):      DJBs DNS-Zonen-Transfer-Server
303 Summary(pl.UTF-8):      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
314 Requires:       make
315 Requires:       ucspi-tcp
316 Provides:       user(axfrdns)
317 Obsoletes:      axfrdns
318
319 %description 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.
323
324 %description axfrdns -l de.UTF-8
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
328 Informationen.
329
330 %description axfrdns -l pl.UTF-8
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
334 informacji.
335
336 %prep
337 %setup -q -a1 -a2
338 install %{SOURCE3} .
339 install %{SOURCE4} .
340
341 %patch1 -p1
342 %patch0 -p1
343 %patch3 -p1
344 %patch4 -p1
345 %patch5
346 %patch6 -p1
347 %patch8 -p1
348 %patch9 -p1
349 %patch10 -p1
350 cd doc
351 ln -s merge/djbdns/* .
352
353 %build
354 echo %{__cc} %{rpmcflags} >conf-cc
355 echo %{_prefix} > conf-home
356 %{__make}
357
358 %install
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}
362
363 install tinydns-notify  $RPM_BUILD_ROOT%{_bindir}
364 install tinydns-log             $RPM_BUILD_ROOT%{_bindir}
365
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
399
400 make_supervise_service() {
401         %{?debug:set -x}
402         local service="$1"
403         local svcdir=$RPM_BUILD_ROOT%{_sysconfdir}/$service
404         local logdir=$RPM_BUILD_ROOT/var/log/djbdns/$service
405
406         install -d $svcdir/supervise $svcdir/log/supervise $logdir
407         touch $logdir/{lock,state}
408
409         touch $svcdir/log/supervise/{lock,status}
410         mkfifo $svcdir/log/supervise/{control,ok}
411         touch $svcdir/supervise/{lock,status}
412         mkfifo $svcdir/supervise/{control,ok}
413 }
414
415 ##### DNSCACHE #####
416 make_supervise_service dnscache
417 s=$RPM_BUILD_ROOT%{_sysconfdir}/dnscache
418 mkdir $s/env
419 echo %{_sysconfdir}/dnscache/root > $s/env/ROOT
420 echo 127.0.0.1                    > $s/env/IP
421 echo 0.0.0.0                      > $s/env/IPSEND
422 echo 1000000                      > $s/env/CACHESIZE
423 echo 3000000                      > $s/env/DATALIMIT
424 touch $s/env/IGNOREIP
425 cat>$s/run<<'EOF'
426 #!/bin/sh
427 exec 2>&1
428 exec <seed
429 exec envdir ./env sh -c '
430   exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
431 '
432 EOF
433 cat>$s/log/run<<'EOF'
434 #!/bin/sh
435 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
436 EOF
437 mkdir $s/root
438 mkdir $s/root/ip
439 touch $s/root/ip/127.0.0.1
440 mkdir $s/root/servers
441 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global $s/root/servers/@
442 dd if=/dev/zero of=$s/seed bs=128c count=1
443
444 ##### TINYDNS #####
445 make_supervise_service tinydns
446 s=$RPM_BUILD_ROOT%{_sysconfdir}/tinydns
447 cat>$s/log/run<<EOF
448 #!/bin/sh
449 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
450 EOF
451 mkdir $s/env
452 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
453 echo 127.0.0.1                   > $s/env/IP
454 cat>$s/run<<EOF
455 #!/bin/sh
456 exec 2>&1
457 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
458 EOF
459 mkdir $s/root
460 touch $s/root/data
461 cat>$s/root/add-ns<<'EOF'
462 #!/bin/sh
463 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
464 EOF
465 cat>$s/root/add-childns<<'EOF'
466 #!/bin/sh
467 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
468 EOF
469 cat>$s/root/add-host<<'EOF'
470 #!/bin/sh
471 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
472 EOF
473 cat>$s/root/add-host6<<'EOF'
474 #!/bin/sh
475 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
476 EOF
477 cat>$s/root/add-alias<<'EOF'
478 #!/bin/sh
479 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
480 EOF
481 cat>$s/root/add-alias6<<'EOF'
482 #!/bin/sh
483 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
484 EOF
485 cat>$s/root/add-mx<<'EOF'
486 #!/bin/sh
487 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
488 EOF
489 cat>$s/root/Makefile<<'EOF'
490 data.cdb: data
491         %{_bindir}/tinydns-data
492 EOF
493
494 ##### PICKDNS #####
495 make_supervise_service pickdns
496 s=$RPM_BUILD_ROOT%{_sysconfdir}/pickdns
497 cat>$s/log/run<<EOF
498 #!/bin/sh
499 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
500 EOF
501 mkdir $s/env
502 echo %{_sysconfdir}/pickdns/root > $s/env/ROOT
503 echo 127.0.0.1                   > $s/env/IP
504 cat>$s/run<<EOF
505 #!/bin/sh
506 exec 2>&1
507 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
508 EOF
509 mkdir $s/root
510 touch $s/root/data
511 cat>$s/root/Makefile<<EOF
512 data.cdb: data
513         %{_bindir}/pickdns-data
514 EOF
515
516 ##### WALLDNS #####
517 make_supervise_service walldns
518 s=$RPM_BUILD_ROOT%{_sysconfdir}/walldns
519 cat>$s/log/run<<EOF
520 #!/bin/sh
521 exec setuidgid dnslog multilog t ./main
522 EOF
523 mkdir $s/env
524 echo %{_sysconfdir}/walldns/root > $s/env/ROOT
525 echo 127.0.0.1                   > $s/env/IP
526 cat>$s/run<<EOF
527 #!/bin/sh
528 exec 2>&1
529 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
530 EOF
531 mkdir $s/root
532
533 ##### RBLDNS #####
534 make_supervise_service rbldns
535 s=$RPM_BUILD_ROOT%{_sysconfdir}/rbldns
536 cat>$s/log/run<<EOF
537 #!/bin/sh
538 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
539 EOF
540 mkdir $s/env
541 echo %{_sysconfdir}/rbldns/root > $s/env/ROOT
542 echo 127.0.0.1                  > $s/env/IP
543 echo in-addr.arpa               > $s/env/BASE
544 cat>$s/run<<EOF
545 #!/bin/sh
546 exec 2>&1
547 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
548 EOF
549 mkdir $s/root
550 touch $s/root/data
551 cat>$s/root/Makefile<<EOF
552 data.cdb: data
553         %{_bindir}/rbldns-data
554 EOF
555 cat>$s/data<<EOF
556 # example
557 # !10.11.12.13:See http://bad.example.com
558 # :127.0.0.2:blacklisted"
559 # 1.2.3.0/24
560 EOF
561
562
563
564 ##### AXFRDNS #####
565 make_supervise_service axfrdns
566 s=$RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
567 cat>$s/log/run<<EOF
568 #!/bin/sh
569 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
570 EOF
571 mkdir $s/env
572 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
573 echo 127.0.0.1                   > $s/env/IP
574 cat>$s/run<<'EOF'
575 #!/bin/sh
576 exec 2>&1
577 exec envdir ./env sh -c '
578   exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
579 '
580 EOF
581 cat>$s/Makefile<<'EOF'
582 tcp.cdb: tcp
583         tcprules tcp.cdb tcp.tmp < tcp
584 EOF
585 cat>$s/tcp<<'EOF'
586 # sample line:  1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
587 :deny
588 EOF
589
590 ##### daemontools symlinks #####
591 install -d $RPM_BUILD_ROOT/service
592 cd $RPM_BUILD_ROOT/service
593 ln -s ..%{_sysconfdir}/dnscache
594 ln -s ..%{_sysconfdir}/tinydns
595 ln -s ..%{_sysconfdir}/pickdns
596 ln -s ..%{_sysconfdir}/walldns
597 ln -s ..%{_sysconfdir}/rbldns
598 ln -s ..%{_sysconfdir}/axfrdns
599
600 %clean
601 rm -rf $RPM_BUILD_ROOT
602
603 %pre
604 %groupadd -g 32 -r -f djbdns
605 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
606
607 %postun
608 if [ "$1" = "0" ]; then
609         %userremove dnslog
610         %groupremove djbdns
611 fi
612
613 %pre dnscache
614 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
615
616 %post dnscache
617 if [ ! -s %{_sysconfdir}/dnscache/seed ]; then
618         dd if=/dev/urandom of=%{_sysconfdir}/dnscache/seed bs=128c count=1
619 fi
620 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
621         echo "Warning: dnscache and pickdns can't work on the same"
622         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
623         echo "or %{_sysconfdir}/pickdns/env/IP."
624 fi
625 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
626         echo "Warning: dnscache and rbldns can't work on the same"
627         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
628         echo "or %{_sysconfdir}/rbldns/env/IP."
629 fi
630 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
631         echo "Warning: dnscache and tinydns can't work on the same"
632         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
633         echo "or %{_sysconfdir}/tinydns/env/IP."
634 fi
635 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
636         echo "Warning: dnscache and walldns can't work on the same"
637         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
638         echo "or %{_sysconfdir}/walldns/env/IP."
639 fi
640
641 if [ -f /service/dnscache/supervise/lock ]; then
642         svc -t /service/dnscache{,/log}
643 fi
644
645 %preun dnscache
646 if [ "$1" = "0" ]; then
647         # http://cr.yp.to/daemontools/faq/create.html#remove
648         if [ -f /service/dnscache/supervise/lock ]; then
649                 cd /service/dnscache
650                 rm /service/dnscache
651                 svc -dx . log
652         fi
653 fi
654
655 %postun dnscache
656 if [ "$1" = "0" ]; then
657         %userremove dnscache
658 fi
659
660 %pre tinydns
661 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
662
663 %post tinydns
664 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
665         echo "Warning: dnscache and tinydns can't work on the same"
666         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
667         echo "or %{_sysconfdir}/tinydns/env/IP."
668 fi
669 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
670         echo "Warning: pickdns and tinydns can't work on the same"
671         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
672         echo "or %{_sysconfdir}/tinydns/env/IP."
673 fi
674 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
675         echo "Warning: rbldns and tinydns can't work on the same"
676         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
677         echo "or %{_sysconfdir}/tinydns/env/IP."
678 fi
679 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
680         echo "Warning: tinydns and walldns can't work on the same"
681         echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
682         echo "or %{_sysconfdir}/walldns/env/IP."
683 fi
684
685 if [ -f /service/tinydns/supervise/lock ]; then
686         svc -t /service/tinydns{,/log}
687 fi
688
689 %preun tinydns
690 if [ "$1" = "0" ]; then
691         # http://cr.yp.to/daemontools/faq/create.html#remove
692         if [ -f /service/tinydns/supervise/lock ]; then
693                 cd /service/tinydns
694                 rm /service/tinydns
695                 svc -dx . log
696         fi
697 fi
698
699 %postun tinydns
700 if [ "$1" = "0" ]; then
701         %userremove tinydns
702 fi
703
704 %pre pickdns
705 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
706
707 %post pickdns
708 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
709         echo "Warning: dnscache and pickdns can't work on the same"
710         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
711         echo "or %{_sysconfdir}/pickdns/env/IP."
712 fi
713 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
714         echo "Warning: pickdns and rbldns can't work on the same"
715         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
716         echo "or %{_sysconfdir}/rbldns/env/IP."
717 fi
718 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
719         echo "Warning: pickdns and tinydns can't work on the same"
720         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
721         echo "or %{_sysconfdir}/tinydns/env/IP."
722 fi
723 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
724         echo "Warning: pickdns and walldns can't work on the same"
725         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
726         echo "or %{_sysconfdir}/walldns/env/IP."
727 fi
728
729 if [ -f /service/pickdns/supervise/lock ]; then
730         svc -t /service/pickdns{,/log}
731 fi
732
733 %preun pickdns
734 if [ "$1" = "0" ]; then
735         # http://cr.yp.to/daemontools/faq/create.html#remove
736         if [ -f /service/pickdns/supervise/lock ]; then
737                 cd /service/pickdns
738                 rm /service/pickdns
739                 svc -dx . log
740         fi
741 fi
742
743 %postun pickdns
744 if [ "$1" = "0" ]; then
745         %userremove pickdns
746 fi
747
748 %pre walldns
749 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
750
751 %post walldns
752 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
753         echo "Warning: dnscache and walldns can't work on the same"
754         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
755         echo "or %{_sysconfdir}/walldns/env/IP."
756 fi
757 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
758         echo "Warning: pickdns and walldns can't work on the same"
759         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
760         echo "or %{_sysconfdir}/walldns/env/IP."
761 fi
762 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
763         echo "Warning: rbldns and walldns can't work on the same"
764         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
765         echo "or %{_sysconfdir}/walldns/env/IP."
766 fi
767 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
768         echo "Warning: tinydns and walldns can't work on the same"
769         echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
770         echo "or %{_sysconfdir}/walldns/env/IP."
771 fi
772
773 if [ -f /service/walldns/supervise/lock ]; then
774         svc -t /service/walldns{,/log}
775 fi
776
777 %preun walldns
778 if [ "$1" = "0" ]; then
779         # http://cr.yp.to/daemontools/faq/create.html#remove
780         if [ -f /service/walldns/supervise/lock ]; then
781                 cd /service/walldns
782                 rm /service/walldns
783                 svc -dx . log
784         fi
785 fi
786
787 %postun walldns
788 if [ "$1" = "0" ]; then
789         %userremove walldns
790 fi
791
792 %pre rbldns
793 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
794
795 %post rbldns
796 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
797         echo "Warning: dnscache and rbldns can't work on the same"
798         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
799         echo "or %{_sysconfdir}/rbldns/env/IP."
800 fi
801 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
802         echo "Warning: pickdns and rbldns can't work on the same"
803         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
804         echo "or %{_sysconfdir}/rbldns/env/IP."
805 fi
806 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
807         echo "Warning: rbldns and tinydns can't work on the same"
808         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
809         echo "or %{_sysconfdir}/tinydns/env/IP."
810 fi
811 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
812         echo "Warning: rbldns and walldns can't work on the same"
813         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
814         echo "or %{_sysconfdir}/walldns/env/IP."
815 fi
816
817 if [ -f /service/rbldns/supervise/lock ]; then
818         svc -t /service/rbldns{,/log}
819 fi
820
821 %preun rbldns
822 if [ "$1" = "0" ]; then
823         # http://cr.yp.to/daemontools/faq/create.html#remove
824         if [ -f /service/rbldns/supervise/lock ]; then
825                 cd /service/rbldns
826                 rm /service/rbldns
827                 svc -dx . log
828         fi
829 fi
830
831 %postun rbldns
832 if [ "$1" = "0" ]; then
833         %userremove rbldns
834 fi
835
836 %pre axfrdns
837 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
838
839 %preun axfrdns
840 if [ "$1" = "0" ]; then
841         # http://cr.yp.to/daemontools/faq/create.html#remove
842         if [ -f /service/axfrdns/supervise/lock ]; then
843                 cd /service/axfrdns
844                 rm /service/axfrdns
845                 svc -dx . log
846         fi
847 fi
848
849 %postun axfrdns
850 if [ "$1" = "0" ]; then
851         %userremove axfrdns
852 fi
853
854 %files
855 %defattr(644,root,root,755)
856 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
857 %attr(755,root,root) %{_bindir}/cachetest
858 %attr(755,root,root) %{_bindir}/dns[f-t]*
859 %attr(755,root,root) %{_bindir}/axfr-get
860 %{_mandir}/man[15]/*
861 %{_mandir}/man8/axfr-get*
862 %dir %attr(751,root,root) %dir /var/log/djbdns
863
864 %files dnscache
865 %defattr(644,root,root,755)
866 %attr(755,root,root) %{_bindir}/dnscache*
867 %config %{_sysconfdir}/dnsroots.global
868 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
869 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
870 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
871
872 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
873 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscache/log/run
874 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
875 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
876 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
877 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
878 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
879
880 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
881 %config %{_sysconfdir}/dnscache/env/*
882 %attr(755,root,root) %{_sysconfdir}/dnscache/run
883 %dir %{_sysconfdir}/dnscache/root
884 %dir %{_sysconfdir}/dnscache/root/ip
885 %dir %{_sysconfdir}/dnscache/root/servers
886 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
887 %config %{_sysconfdir}/dnscache/root/servers/*
888 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
889 %{_mandir}/man8/dnscache*
890 /service/dnscache
891
892 %files tinydns
893 %defattr(644,root,root,755)
894 %attr(755,root,root) %{_bindir}/tinydns*
895 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
896 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
897 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
898
899 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/log/run
900 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
901 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
902 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
903 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
904 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
905 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
906
907 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
908 %config %{_sysconfdir}/tinydns/env/*
909 %attr(755,root,root) %{_sysconfdir}/tinydns/run
910 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
912 %config %{_sysconfdir}/tinydns/root/data
913 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
914 %{_mandir}/man8/tinydns*
915 /service/tinydns
916
917 %files tinydns-notify
918 %defattr(644,root,root,755)
919 %attr(755,root,root) %{_bindir}/tinydns-notify
920
921 %files pickdns
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/pickdns*
924 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
925 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
926 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
927
928 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/log/run
929 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
930 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
931 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
932 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
933 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
934 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
935
936 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
937 %config %{_sysconfdir}/pickdns/env/*
938 %attr(755,root,root) %{_sysconfdir}/pickdns/run
939 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
940 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
941 %config %{_sysconfdir}/pickdns/root/data
942 %{_mandir}/man8/pickdns*
943 /service/pickdns
944
945 %files walldns
946 %defattr(644,root,root,755)
947 %attr(755,root,root) %{_bindir}/walldns*
948 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
949 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
950 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
951
952 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/walldns/log/run
953 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
954 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
955 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
956 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
957 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
958 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
959
960 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
961 %config %{_sysconfdir}/walldns/env/*
962 %attr(755,root,root) %{_sysconfdir}/walldns/run
963 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
964 %{_mandir}/man8/walldns*
965 /service/walldns
966
967 %files rbldns
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_bindir}/rbldns*
970 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
971 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
972 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
973
974 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/log/run
975 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
976 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
977 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
978 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
979 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
980 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
981
982 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
983 %config %{_sysconfdir}/rbldns/env/*
984 %attr(755,root,root) %{_sysconfdir}/rbldns/run
985 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
986 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
987 %config %{_sysconfdir}/rbldns/root/data
988 %{_mandir}/man8/rbldns*
989 /service/rbldns
990
991 %files axfrdns
992 %defattr(644,root,root,755)
993 %attr(755,root,root) %{_bindir}/axfrdns*
994 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
995 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
996 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
997
998 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/log/run
999 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1000 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1001 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1002 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1003 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1004 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1005
1006 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1007 %config %{_sysconfdir}/axfrdns/env/*
1008 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1009 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1010 %config %{_sysconfdir}/axfrdns/tcp
1011 %{_mandir}/man8/axfrdns*
1012 /service/axfrdns
This page took 0.102455 seconds and 4 git commands to generate.