]> git.pld-linux.org Git - packages/djbdns.git/blob - djbdns.spec
- move logs to /var/log
[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):    DJB DNS
7 Name:           djbdns
8 Version:        1.05
9 Release:        20
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 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)
43 Provides:       nameserver
44 Provides:       user(dnslog)
45 Obsoletes:      caching-nameserver
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 This is a set of DNS servers with security in mind. If you find a
50 security hole you can get a prize.
51
52 This package contains some basic DNS debugging tools and some
53 documentation. If you need a DNS server install one of the following
54 packages:
55
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
63
64 %description -l de
65 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
66 ein Preis, wenn man ein Sicherheitsloch findet.
67
68 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
69 Wenn du einen DNS-Server braucht, installe ein von den folgenden
70 Paketen:
71
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
78
79 %description -l pl
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.
83
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:
87
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
95
96 %package dnscache
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)
112 Obsoletes:      dnscache
113
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.
119
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
125 zu sparen.
126
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
132 oszczêdziæ czas.
133
134 %package tinydns
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
148 Requires:       make
149 Provides:       user(tinydns)
150 Obsoletes:      tinydns
151
152 %description 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.
156
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.
161
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.
166
167 %package tinydns-notify
168 Summary:        DNS NOTIFY sending tool
169 Summary(pl):    Narzêdzie do wysy³ania komunikatów DNS NOTIFY
170 License:        Free to use
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
177
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.
182
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
187 notify-list.
188
189 %package pickdns
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
203 Requires:       make
204 Provides:       user(pickdns)
205 Obsoletes:      pickdns
206
207 %description 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
211 with 5-second TTLs.
212
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.
218
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.
224
225 %package walldns
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)
240 Obsoletes:      walldns
241
242 %description 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
246 host information.
247
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.
253
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.
259
260 %package rbldns
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
274 Requires:       make
275 Provides:       user(rbldns)
276 Obsoletes:      rbldns
277 #Obsoletes:     rbldnsd
278
279 %description 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.
284
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.
291
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.
297
298 %package axfrdns
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
312 Requires:       make
313 Requires:       ucspi-tcp
314 Provides:       user(axfrdns)
315 Obsoletes:      axfrdns
316
317 %description 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.
321
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
326 Informationen.
327
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
332 informacji.
333
334 %prep
335 %setup -q -a1 -a2
336 install %{SOURCE3} .
337 install %{SOURCE4} .
338
339 %patch1 -p1
340 %patch0 -p1
341 %patch3 -p1
342 %patch4 -p1
343 %patch5
344 %patch6 -p1
345 %patch8 -p1
346 %patch9 -p1
347 cd doc
348 ln -s merge/djbdns/* .
349
350 %build
351 echo %{__cc} %{rpmcflags} >conf-cc
352 echo %{_prefix} > conf-home
353 %{__make}
354
355 %install
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}
359
360 install tinydns-notify  $RPM_BUILD_ROOT%{_bindir}
361 install tinydns-log             $RPM_BUILD_ROOT%{_bindir}
362
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
396
397 ##### DNSCACHE #####
398
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}
408 mkdir env
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
414 touch env/IGNOREIP
415 cat>run<<'___'
416 #!/bin/sh
417 exec 2>&1
418 exec <seed
419 exec envdir ./env sh -c '
420   exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
421 '
422 ___
423 cat>log/run<<'___'
424 #!/bin/sh
425 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
426 ___
427 mkdir root
428 mkdir root/ip
429 touch root/ip/127.0.0.1
430 mkdir root/servers
431 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/@
432 dd if=/dev/zero of=seed bs=128c count=1
433
434 ##### TINYDNS #####
435
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}
445 cat>log/run<<___
446 #!/bin/sh
447 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
448 ___
449 mkdir env
450 echo %{_sysconfdir}/tinydns/root>env/ROOT
451 echo 127.0.0.1                  >env/IP
452 cat>run<<___
453 #!/bin/sh
454 exec 2>&1
455 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
456 ___
457 mkdir root
458 touch root/data
459 cat>root/add-ns<<'___'
460 #!/bin/sh
461 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
462 ___
463 cat>root/add-childns<<'___'
464 #!/bin/sh
465 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
466 ___
467 cat>root/add-host<<'___'
468 #!/bin/sh
469 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
470 ___
471 cat>root/add-host6<<'___'
472 #!/bin/sh
473 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
474 ___
475 cat>root/add-alias<<'___'
476 #!/bin/sh
477 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
478 ___
479 cat>root/add-alias6<<'___'
480 #!/bin/sh
481 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
482 ___
483 cat>root/add-mx<<'___'
484 #!/bin/sh
485 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
486 ___
487 cat>root/Makefile<<'___'
488 data.cdb: data
489         %{_bindir}/tinydns-data
490 ___
491
492 ##### PICKDNS #####
493
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}
503 cat>log/run<<___
504 #!/bin/sh
505 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
506 ___
507 mkdir env
508 echo %{_sysconfdir}/pickdns/root>env/ROOT
509 echo 127.0.0.1                  >env/IP
510 cat>run<<___
511 #!/bin/sh
512 exec 2>&1
513 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
514 ___
515 mkdir root
516 touch root/data
517 cat>root/Makefile<<___
518 data.cdb: data
519         %{_bindir}/pickdns-data
520 ___
521
522 ##### WALLDNS #####
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}
532 cat>log/run<<___
533 #!/bin/sh
534 exec setuidgid dnslog multilog t ./main
535 ___
536 mkdir env
537 echo %{_sysconfdir}/walldns/root>env/ROOT
538 echo 127.0.0.1                  >env/IP
539 cat>run<<___
540 #!/bin/sh
541 exec 2>&1
542 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
543 ___
544 mkdir root
545
546 ##### RBLDNS #####
547
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}
557 cat>log/run<<___
558 #!/bin/sh
559 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
560 ___
561 mkdir env
562 echo %{_sysconfdir}/rbldns/root>env/ROOT
563 echo 127.0.0.1                 >env/IP
564 echo in-addr.arpa              >env/BASE
565 cat>run<<___
566 #!/bin/sh
567 exec 2>&1
568 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
569 ___
570 mkdir root
571 touch root/data
572 cat>root/Makefile<<___
573 data.cdb: data
574         %{_bindir}/rbldns-data
575 ___
576 cat>data<<___
577 # example
578 # !10.11.12.13:See http://bad.example.com
579 # :127.0.0.2:blacklisted"
580 # 1.2.3.0/24
581 ___
582
583
584
585 ##### AXFRDNS #####
586
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}
596 cat>log/run<<___
597 #!/bin/sh
598 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
599 ___
600 mkdir env
601 echo %{_sysconfdir}/tinydns/root>env/ROOT
602 echo 127.0.0.1                  >env/IP
603 cat>run<<'___'
604 #!/bin/sh
605 exec 2>&1
606 exec envdir ./env sh -c '
607   exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
608 '
609 ___
610 cat>Makefile<<___
611 tcp.cdb: tcp
612         tcprules tcp.cdb tcp.tmp < tcp
613 ___
614 cat>tcp<<___
615 # sample line:  1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
616 :deny
617 ___
618
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
628
629 %clean
630 rm -rf $RPM_BUILD_ROOT
631
632 %pre
633 %groupadd -g 32 -r -f djbdns
634 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
635
636 %postun
637 if [ "$1" = "0" ]; then
638         %userremove dnslog
639         %groupremove djbdns
640 fi
641
642 %pre dnscache
643 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
644
645 %post dnscache
646 if [ ! -s /etc/dnscache/seed ]; then
647         dd if=/dev/urandom of=/etc/dnscache/seed bs=128c count=1
648 fi
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."
653 fi
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."
658 fi
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."
663 fi
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."
668 fi
669
670 if [ -f /service/dnscache/supervise/lock ]; then
671         svc -t /service/dnscache{,/log}
672 fi
673
674 %preun dnscache
675 if [ "$1" = "0" ]; then
676         # http://cr.yp.to/daemontools/faq/create.html#remove
677         if [ -f /service/dnscache/supervise/lock ]; then
678                 cd /service/dnscache
679                 rm /service/dnscache
680                 svc -dx . log
681         fi
682 fi
683
684 %postun dnscache
685 if [ "$1" = "0" ]; then
686         %userremove dnscache
687 fi
688
689 %pre tinydns
690 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
691
692 %post 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."
697 fi
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."
702 fi
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."
707 fi
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."
712 fi
713
714 if [ -f /service/tinydns/supervise/lock ]; then
715         svc -t /service/tinydns{,/log}
716 fi
717
718 %preun tinydns
719 if [ "$1" = "0" ]; then
720         # http://cr.yp.to/daemontools/faq/create.html#remove
721         if [ -f /service/tinydns/supervise/lock ]; then
722                 cd /service/tinydns
723                 rm /service/tinydns
724                 svc -dx . log
725         fi
726 fi
727
728 %postun tinydns
729 if [ "$1" = "0" ]; then
730         %userremove tinydns
731 fi
732
733 %pre pickdns
734 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
735
736 %post 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."
741 fi
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."
746 fi
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."
751 fi
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."
756 fi
757
758 if [ -f /service/pickdns/supervise/lock ]; then
759         svc -t /service/pickdns{,/log}
760 fi
761
762 %preun pickdns
763 if [ "$1" = "0" ]; then
764         # http://cr.yp.to/daemontools/faq/create.html#remove
765         if [ -f /service/pickdns/supervise/lock ]; then
766                 cd /service/pickdns
767                 rm /service/pickdns
768                 svc -dx . log
769         fi
770 fi
771
772 %postun pickdns
773 if [ "$1" = "0" ]; then
774         %userremove pickdns
775 fi
776
777 %pre walldns
778 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
779
780 %post 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."
785 fi
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."
790 fi
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."
795 fi
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."
800 fi
801
802 if [ -f /service/walldns/supervise/lock ]; then
803         svc -t /service/walldns{,/log}
804 fi
805
806 %preun walldns
807 if [ "$1" = "0" ]; then
808         # http://cr.yp.to/daemontools/faq/create.html#remove
809         if [ -f /service/walldns/supervise/lock ]; then
810                 cd /service/walldns
811                 rm /service/walldns
812                 svc -dx . log
813         fi
814 fi
815
816 %postun walldns
817 if [ "$1" = "0" ]; then
818         %userremove walldns
819 fi
820
821 %pre rbldns
822 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
823
824 %post 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."
829 fi
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."
834 fi
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."
839 fi
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."
844 fi
845
846 if [ -f /service/rbldns/supervise/lock ]; then
847         svc -t /service/rbldns{,/log}
848 fi
849
850 %preun rbldns
851 if [ "$1" = "0" ]; then
852         # http://cr.yp.to/daemontools/faq/create.html#remove
853         if [ -f /service/rbldns/supervise/lock ]; then
854                 cd /service/rbldns
855                 rm /service/rbldns
856                 svc -dx . log
857         fi
858 fi
859
860 %postun rbldns
861 if [ "$1" = "0" ]; then
862         %userremove rbldns
863 fi
864
865 %pre axfrdns
866 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
867
868 %preun axfrdns
869 if [ "$1" = "0" ]; then
870         # http://cr.yp.to/daemontools/faq/create.html#remove
871         if [ -f /service/axfrdns/supervise/lock ]; then
872                 cd /service/axfrdns
873                 rm /service/axfrdns
874                 svc -dx . log
875         fi
876 fi
877
878 %postun axfrdns
879 if [ "$1" = "0" ]; then
880         %userremove axfrdns
881 fi
882
883 %files
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
889 %{_mandir}/man[15]/*
890 %{_mandir}/man8/axfr-get*
891 %dir %attr(751,root,root) %dir /var/log/djbdns
892
893 %files dnscache
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/*
900
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
908
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*
919 /service/dnscache
920
921 %files tinydns
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/*
927
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
935
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*
944 /service/tinydns
945
946 %files tinydns-notify
947 %defattr(644,root,root,755)
948 %attr(755,root,root) %{_bindir}/tinydns-notify
949
950 %files pickdns
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/*
956
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
964
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*
972 /service/pickdns
973
974 %files walldns
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/*
980
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
988
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*
994 /service/walldns
995
996 %files rbldns
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/*
1002
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
1010
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*
1018 /service/rbldns
1019
1020 %files axfrdns
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/*
1026
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
1034
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*
1041 /service/axfrdns
This page took 0.092418 seconds and 4 git commands to generate.