]> git.pld-linux.org Git - packages/djbdns.git/blob - djbdns.spec
- fix weird suid permissions on dirs (why?)
[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:        22
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
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
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):    DJBs lokaler DNS-Cache
101 Summary(pl):    Lokalny cache DNS od DJB
102 Group:          Networking/Daemons
103 Requires(post): diffutils
104 Requires(post): fileutils
105 Requires(postun):       /usr/sbin/groupdel
106 Requires(postun):       /usr/sbin/userdel
107 Requires(pre):  /bin/id
108 Requires(pre):  /usr/sbin/groupadd
109 Requires(pre):  /usr/sbin/useradd
110 Requires(preun):        daemontools
111 Requires:       %{name} = %{version}-%{release}
112 Requires:       daemontools >= 0.70-5
113 Provides:       user(dnscache)
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
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
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):    DJBs DNS-Server
139 Summary(pl):    Serwer DNS od DJB
140 Group:          Networking/Daemons
141 Requires(post): diffutils
142 Requires(postun):       /usr/sbin/groupdel
143 Requires(postun):       /usr/sbin/userdel
144 Requires(pre):  /bin/id
145 Requires(pre):  /usr/sbin/groupadd
146 Requires(pre):  /usr/sbin/useradd
147 Requires(preun):        daemontools
148 Requires:       %{name} = %{version}-%{release}
149 Requires:       daemontools >= 0.70-5
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
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
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):    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
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):    DJBs Belastung ausgleichender DNS-Server
194 Summary(pl):    Serwer DNS równowa¿±cy obci±¿enie od DJB
195 Group:          Networking/Daemons
196 Requires(post): diffutils
197 Requires(postun):       /usr/sbin/groupdel
198 Requires(postun):       /usr/sbin/userdel
199 Requires(pre):  /bin/id
200 Requires(pre):  /usr/sbin/groupadd
201 Requires(pre):  /usr/sbin/useradd
202 Requires(preun):        daemontools
203 Requires:       %{name} = %{version}-%{release}
204 Requires:       daemontools >= 0.70-5
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
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
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):    DJBs Wand rückgekehrten DNSs
230 Summary(pl):    ¦ciana dla odwrotnych zapytañ DNS od DJB
231 Group:          Networking/Daemons
232 Requires(post): diffutils
233 Requires(postun):       /usr/sbin/groupdel
234 Requires(postun):       /usr/sbin/userdel
235 Requires(pre):  /bin/id
236 Requires(pre):  /usr/sbin/groupadd
237 Requires(pre):  /usr/sbin/useradd
238 Requires(preun):        daemontools
239 Requires:       %{name} = %{version}-%{release}
240 Requires:       daemontools >= 0.70-5
241 Provides:       user(walldns)
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
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
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):    DJBs IP-Adressen-Listen-DNS-Server
265 Summary(pl):    Serwer DNS list adresów IP od DJB
266 Group:          Networking/Daemons
267 Requires(post): diffutils
268 Requires(postun):       /usr/sbin/groupdel
269 Requires(postun):       /usr/sbin/userdel
270 Requires(pre):  /bin/id
271 Requires(pre):  /usr/sbin/groupadd
272 Requires(pre):  /usr/sbin/useradd
273 Requires(preun):        daemontools
274 Requires:       %{name} = %{version}-%{release}
275 Requires:       daemontools >= 0.70-5
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
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
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):    DJBs DNS-Zonen-Transfer-Server
303 Summary(pl):    Serwer transferów stref DNS od DJB
304 Group:          Networking/Daemons
305 Requires(postun):       /usr/sbin/groupdel
306 Requires(postun):       /usr/sbin/userdel
307 Requires(pre):  /bin/id
308 Requires(pre):  /usr/sbin/groupadd
309 Requires(pre):  /usr/sbin/useradd
310 Requires(preun):        daemontools
311 Requires:       %{name} = %{version}-%{release}
312 Requires:       %{name}-tinydns = %{version}-%{release}
313 Requires:       daemontools >= 0.70-5
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
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
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 ##### DNSCACHE #####
401
402 install -d $RPM_BUILD_ROOT%{_sysconfdir}/dnscache/supervise
403 install -d $RPM_BUILD_ROOT/var/log/djbdns/dnscache
404 touch $RPM_BUILD_ROOT/var/log/djbdns/dnscache/{lock,state}
405 cd $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
406 install -d log/supervise
407 touch log/supervise/{lock,status}
408 mkfifo log/supervise/{control,ok}
409 touch supervise/{lock,status}
410 mkfifo supervise/{control,ok}
411 mkdir env
412 echo %{_sysconfdir}/dnscache/root>env/ROOT
413 echo 127.0.0.1                   >env/IP
414 echo 0.0.0.0                     >env/IPSEND
415 echo 1000000                     >env/CACHESIZE
416 echo 3000000                     >env/DATALIMIT
417 touch env/IGNOREIP
418 cat>run<<'___'
419 #!/bin/sh
420 exec 2>&1
421 exec <seed
422 exec envdir ./env sh -c '
423   exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" %{_bindir}/dnscache
424 '
425 ___
426 cat>log/run<<'___'
427 #!/bin/sh
428 exec setuidgid dnslog multilog t /var/log/djbdns/dnscache
429 ___
430 mkdir root
431 mkdir root/ip
432 touch root/ip/127.0.0.1
433 mkdir root/servers
434 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/@
435 dd if=/dev/zero of=seed bs=128c count=1
436
437 ##### TINYDNS #####
438
439 install -d $RPM_BUILD_ROOT%{_sysconfdir}/tinydns/supervise
440 install -d $RPM_BUILD_ROOT/var/log/djbdns/tinydns
441 touch $RPM_BUILD_ROOT/var/log/djbdns/tinydns/{lock,state}
442 cd $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
443 install -d log/supervise
444 touch log/supervise/{lock,status}
445 mkfifo log/supervise/{control,ok}
446 touch supervise/{lock,status}
447 mkfifo supervise/{control,ok}
448 cat>log/run<<___
449 #!/bin/sh
450 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
451 ___
452 mkdir env
453 echo %{_sysconfdir}/tinydns/root>env/ROOT
454 echo 127.0.0.1                  >env/IP
455 cat>run<<___
456 #!/bin/sh
457 exec 2>&1
458 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
459 ___
460 mkdir root
461 touch root/data
462 cat>root/add-ns<<'___'
463 #!/bin/sh
464 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
465 ___
466 cat>root/add-childns<<'___'
467 #!/bin/sh
468 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
469 ___
470 cat>root/add-host<<'___'
471 #!/bin/sh
472 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
473 ___
474 cat>root/add-host6<<'___'
475 #!/bin/sh
476 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
477 ___
478 cat>root/add-alias<<'___'
479 #!/bin/sh
480 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
481 ___
482 cat>root/add-alias6<<'___'
483 #!/bin/sh
484 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
485 ___
486 cat>root/add-mx<<'___'
487 #!/bin/sh
488 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
489 ___
490 cat>root/Makefile<<'___'
491 data.cdb: data
492         %{_bindir}/tinydns-data
493 ___
494
495 ##### PICKDNS #####
496
497 install -d $RPM_BUILD_ROOT%{_sysconfdir}/pickdns/supervise
498 install -d $RPM_BUILD_ROOT/var/log/djbdns/pickdns
499 touch $RPM_BUILD_ROOT/var/log/djbdns/pickdns/{lock,state}
500 cd $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
501 install -d log/supervise
502 touch log/supervise/{lock,status}
503 mkfifo log/supervise/{control,ok}
504 touch supervise/{lock,status}
505 mkfifo supervise/{control,ok}
506 cat>log/run<<___
507 #!/bin/sh
508 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
509 ___
510 mkdir env
511 echo %{_sysconfdir}/pickdns/root>env/ROOT
512 echo 127.0.0.1                  >env/IP
513 cat>run<<___
514 #!/bin/sh
515 exec 2>&1
516 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
517 ___
518 mkdir root
519 touch root/data
520 cat>root/Makefile<<___
521 data.cdb: data
522         %{_bindir}/pickdns-data
523 ___
524
525 ##### WALLDNS #####
526 install -d $RPM_BUILD_ROOT%{_sysconfdir}/walldns/supervise
527 install -d $RPM_BUILD_ROOT/var/log/djbdns/walldns
528 touch $RPM_BUILD_ROOT/var/log/djbdns/walldns/{lock,state}
529 cd $RPM_BUILD_ROOT%{_sysconfdir}/walldns
530 install -d log/supervise
531 touch log/supervise/{lock,status}
532 mkfifo log/supervise/{control,ok}
533 touch supervise/{lock,status}
534 mkfifo supervise/{control,ok}
535 cat>log/run<<___
536 #!/bin/sh
537 exec setuidgid dnslog multilog t ./main
538 ___
539 mkdir env
540 echo %{_sysconfdir}/walldns/root>env/ROOT
541 echo 127.0.0.1                  >env/IP
542 cat>run<<___
543 #!/bin/sh
544 exec 2>&1
545 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
546 ___
547 mkdir root
548
549 ##### RBLDNS #####
550
551 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rbldns/supervise
552 install -d $RPM_BUILD_ROOT/var/log/djbdns/rbldns
553 touch $RPM_BUILD_ROOT/var/log/djbdns/rbldns/{lock,state}
554 cd $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
555 install -d log/supervise
556 touch log/supervise/{lock,status}
557 mkfifo log/supervise/{control,ok}
558 touch supervise/{lock,status}
559 mkfifo supervise/{control,ok}
560 cat>log/run<<___
561 #!/bin/sh
562 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
563 ___
564 mkdir env
565 echo %{_sysconfdir}/rbldns/root>env/ROOT
566 echo 127.0.0.1                 >env/IP
567 echo in-addr.arpa              >env/BASE
568 cat>run<<___
569 #!/bin/sh
570 exec 2>&1
571 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
572 ___
573 mkdir root
574 touch root/data
575 cat>root/Makefile<<___
576 data.cdb: data
577         %{_bindir}/rbldns-data
578 ___
579 cat>data<<___
580 # example
581 # !10.11.12.13:See http://bad.example.com
582 # :127.0.0.2:blacklisted"
583 # 1.2.3.0/24
584 ___
585
586
587
588 ##### AXFRDNS #####
589
590 install -d $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns/supervise
591 install -d $RPM_BUILD_ROOT/var/log/djbdns/axfrdns
592 touch $RPM_BUILD_ROOT/var/log/djbdns/axfrdns/{lock,state}
593 cd $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
594 install -d log/supervise
595 touch log/supervise/{lock,status}
596 mkfifo log/supervise/{control,ok}
597 touch supervise/{lock,status}
598 mkfifo supervise/{control,ok}
599 cat>log/run<<___
600 #!/bin/sh
601 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
602 ___
603 mkdir env
604 echo %{_sysconfdir}/tinydns/root>env/ROOT
605 echo 127.0.0.1                  >env/IP
606 cat>run<<'___'
607 #!/bin/sh
608 exec 2>&1
609 exec envdir ./env sh -c '
610   exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
611 '
612 ___
613 cat>Makefile<<___
614 tcp.cdb: tcp
615         tcprules tcp.cdb tcp.tmp < tcp
616 ___
617 cat>tcp<<___
618 # sample line:  1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
619 :deny
620 ___
621
622 ##### daemontools symlinks #####
623 install -d $RPM_BUILD_ROOT/service
624 cd $RPM_BUILD_ROOT/service
625 ln -s ..%{_sysconfdir}/dnscache
626 ln -s ..%{_sysconfdir}/tinydns
627 ln -s ..%{_sysconfdir}/pickdns
628 ln -s ..%{_sysconfdir}/walldns
629 ln -s ..%{_sysconfdir}/rbldns
630 ln -s ..%{_sysconfdir}/axfrdns
631
632 %clean
633 rm -rf $RPM_BUILD_ROOT
634
635 %pre
636 %groupadd -g 32 -r -f djbdns
637 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
638
639 %postun
640 if [ "$1" = "0" ]; then
641         %userremove dnslog
642         %groupremove djbdns
643 fi
644
645 %pre dnscache
646 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
647
648 %post dnscache
649 if [ ! -s /etc/dnscache/seed ]; then
650         dd if=/dev/urandom of=/etc/dnscache/seed bs=128c count=1
651 fi
652 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
653         echo "Warning: dnscache and pickdns can't work on the same"
654         echo "IP address. You have to edit either /etc/dnscache/env/IP"
655         echo "or /etc/pickdns/env/IP."
656 fi
657 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
658         echo "Warning: dnscache and rbldns can't work on the same"
659         echo "IP address. You have to edit either /etc/dnscache/env/IP"
660         echo "or /etc/rbldns/env/IP."
661 fi
662 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
663         echo "Warning: dnscache and tinydns can't work on the same"
664         echo "IP address. You have to edit either /etc/dnscache/env/IP"
665         echo "or /etc/tinydns/env/IP."
666 fi
667 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
668         echo "Warning: dnscache and walldns can't work on the same"
669         echo "IP address. You have to edit either /etc/dnscache/env/IP"
670         echo "or /etc/walldns/env/IP."
671 fi
672
673 if [ -f /service/dnscache/supervise/lock ]; then
674         svc -t /service/dnscache{,/log}
675 fi
676
677 %preun dnscache
678 if [ "$1" = "0" ]; then
679         # http://cr.yp.to/daemontools/faq/create.html#remove
680         if [ -f /service/dnscache/supervise/lock ]; then
681                 cd /service/dnscache
682                 rm /service/dnscache
683                 svc -dx . log
684         fi
685 fi
686
687 %postun dnscache
688 if [ "$1" = "0" ]; then
689         %userremove dnscache
690 fi
691
692 %pre tinydns
693 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
694
695 %post tinydns
696 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
697         echo "Warning: dnscache and tinydns can't work on the same"
698         echo "IP address. You have to edit either /etc/dnscache/env/IP"
699         echo "or /etc/tinydns/env/IP."
700 fi
701 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
702         echo "Warning: pickdns and tinydns can't work on the same"
703         echo "IP address. You have to edit either /etc/pickdns/env/IP"
704         echo "or /etc/tinydns/env/IP."
705 fi
706 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
707         echo "Warning: rbldns and tinydns can't work on the same"
708         echo "IP address. You have to edit either /etc/rbldns/env/IP"
709         echo "or /etc/tinydns/env/IP."
710 fi
711 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
712         echo "Warning: tinydns and walldns can't work on the same"
713         echo "IP address. You have to edit either /etc/tinydns/env/IP"
714         echo "or /etc/walldns/env/IP."
715 fi
716
717 if [ -f /service/tinydns/supervise/lock ]; then
718         svc -t /service/tinydns{,/log}
719 fi
720
721 %preun tinydns
722 if [ "$1" = "0" ]; then
723         # http://cr.yp.to/daemontools/faq/create.html#remove
724         if [ -f /service/tinydns/supervise/lock ]; then
725                 cd /service/tinydns
726                 rm /service/tinydns
727                 svc -dx . log
728         fi
729 fi
730
731 %postun tinydns
732 if [ "$1" = "0" ]; then
733         %userremove tinydns
734 fi
735
736 %pre pickdns
737 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
738
739 %post pickdns
740 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
741         echo "Warning: dnscache and pickdns can't work on the same"
742         echo "IP address. You have to edit either /etc/dnscache/env/IP"
743         echo "or /etc/pickdns/env/IP."
744 fi
745 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
746         echo "Warning: pickdns and rbldns can't work on the same"
747         echo "IP address. You have to edit either /etc/pickdns/env/IP"
748         echo "or /etc/rbldns/env/IP."
749 fi
750 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
751         echo "Warning: pickdns and tinydns can't work on the same"
752         echo "IP address. You have to edit either /etc/pickdns/env/IP"
753         echo "or /etc/tinydns/env/IP."
754 fi
755 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
756         echo "Warning: pickdns and walldns can't work on the same"
757         echo "IP address. You have to edit either /etc/pickdns/env/IP"
758         echo "or /etc/walldns/env/IP."
759 fi
760
761 if [ -f /service/pickdns/supervise/lock ]; then
762         svc -t /service/pickdns{,/log}
763 fi
764
765 %preun pickdns
766 if [ "$1" = "0" ]; then
767         # http://cr.yp.to/daemontools/faq/create.html#remove
768         if [ -f /service/pickdns/supervise/lock ]; then
769                 cd /service/pickdns
770                 rm /service/pickdns
771                 svc -dx . log
772         fi
773 fi
774
775 %postun pickdns
776 if [ "$1" = "0" ]; then
777         %userremove pickdns
778 fi
779
780 %pre walldns
781 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
782
783 %post walldns
784 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
785         echo "Warning: dnscache and walldns can't work on the same"
786         echo "IP address. You have to edit either /etc/dnscache/env/IP"
787         echo "or /etc/walldns/env/IP."
788 fi
789 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
790         echo "Warning: pickdns and walldns can't work on the same"
791         echo "IP address. You have to edit either /etc/pickdns/env/IP"
792         echo "or /etc/walldns/env/IP."
793 fi
794 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
795         echo "Warning: rbldns and walldns can't work on the same"
796         echo "IP address. You have to edit either /etc/rbldns/env/IP"
797         echo "or /etc/walldns/env/IP."
798 fi
799 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
800         echo "Warning: tinydns and walldns can't work on the same"
801         echo "IP address. You have to edit either /etc/tinydns/env/IP"
802         echo "or /etc/walldns/env/IP."
803 fi
804
805 if [ -f /service/walldns/supervise/lock ]; then
806         svc -t /service/walldns{,/log}
807 fi
808
809 %preun walldns
810 if [ "$1" = "0" ]; then
811         # http://cr.yp.to/daemontools/faq/create.html#remove
812         if [ -f /service/walldns/supervise/lock ]; then
813                 cd /service/walldns
814                 rm /service/walldns
815                 svc -dx . log
816         fi
817 fi
818
819 %postun walldns
820 if [ "$1" = "0" ]; then
821         %userremove walldns
822 fi
823
824 %pre rbldns
825 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
826
827 %post rbldns
828 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
829         echo "Warning: dnscache and rbldns can't work on the same"
830         echo "IP address. You have to edit either /etc/dnscache/env/IP"
831         echo "or /etc/rbldns/env/IP."
832 fi
833 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
834         echo "Warning: pickdns and rbldns can't work on the same"
835         echo "IP address. You have to edit either /etc/pickdns/env/IP"
836         echo "or /etc/rbldns/env/IP."
837 fi
838 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
839         echo "Warning: rbldns and tinydns can't work on the same"
840         echo "IP address. You have to edit either /etc/rbldns/env/IP"
841         echo "or /etc/tinydns/env/IP."
842 fi
843 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
844         echo "Warning: rbldns and walldns can't work on the same"
845         echo "IP address. You have to edit either /etc/rbldns/env/IP"
846         echo "or /etc/walldns/env/IP."
847 fi
848
849 if [ -f /service/rbldns/supervise/lock ]; then
850         svc -t /service/rbldns{,/log}
851 fi
852
853 %preun rbldns
854 if [ "$1" = "0" ]; then
855         # http://cr.yp.to/daemontools/faq/create.html#remove
856         if [ -f /service/rbldns/supervise/lock ]; then
857                 cd /service/rbldns
858                 rm /service/rbldns
859                 svc -dx . log
860         fi
861 fi
862
863 %postun rbldns
864 if [ "$1" = "0" ]; then
865         %userremove rbldns
866 fi
867
868 %pre axfrdns
869 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
870
871 %preun axfrdns
872 if [ "$1" = "0" ]; then
873         # http://cr.yp.to/daemontools/faq/create.html#remove
874         if [ -f /service/axfrdns/supervise/lock ]; then
875                 cd /service/axfrdns
876                 rm /service/axfrdns
877                 svc -dx . log
878         fi
879 fi
880
881 %postun axfrdns
882 if [ "$1" = "0" ]; then
883         %userremove axfrdns
884 fi
885
886 %files
887 %defattr(644,root,root,755)
888 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
889 %attr(755,root,root) %{_bindir}/cachetest
890 %attr(755,root,root) %{_bindir}/dns[f-t]*
891 %attr(755,root,root) %{_bindir}/axfr-get
892 %{_mandir}/man[15]/*
893 %{_mandir}/man8/axfr-get*
894 %dir %attr(751,root,root) %dir /var/log/djbdns
895
896 %files dnscache
897 %defattr(644,root,root,755)
898 %attr(755,root,root) %{_bindir}/dnscache*
899 %config %{_sysconfdir}/dnsroots.global
900 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
901 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
902 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
903
904 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
905 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscache/log/run
906 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
907 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
908 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
909 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
910 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
911
912 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
913 %config %{_sysconfdir}/dnscache/env/*
914 %attr(755,root,root) %{_sysconfdir}/dnscache/run
915 %dir %{_sysconfdir}/dnscache/root
916 %dir %{_sysconfdir}/dnscache/root/ip
917 %dir %{_sysconfdir}/dnscache/root/servers
918 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
919 %config %{_sysconfdir}/dnscache/root/servers/*
920 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
921 %{_mandir}/man8/dnscache*
922 /service/dnscache
923
924 %files tinydns
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_bindir}/tinydns*
927 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
928 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
929 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
930
931 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/log/run
932 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
933 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
934 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
935 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
936 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
937 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
938
939 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
940 %config %{_sysconfdir}/tinydns/env/*
941 %attr(755,root,root) %{_sysconfdir}/tinydns/run
942 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
944 %config %{_sysconfdir}/tinydns/root/data
945 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
946 %{_mandir}/man8/tinydns*
947 /service/tinydns
948
949 %files tinydns-notify
950 %defattr(644,root,root,755)
951 %attr(755,root,root) %{_bindir}/tinydns-notify
952
953 %files pickdns
954 %defattr(644,root,root,755)
955 %attr(755,root,root) %{_bindir}/pickdns*
956 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
957 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
958 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
959
960 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/log/run
961 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
962 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
963 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
964 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
965 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
966 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
967
968 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
969 %config %{_sysconfdir}/pickdns/env/*
970 %attr(755,root,root) %{_sysconfdir}/pickdns/run
971 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
972 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
973 %config %{_sysconfdir}/pickdns/root/data
974 %{_mandir}/man8/pickdns*
975 /service/pickdns
976
977 %files walldns
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_bindir}/walldns*
980 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
981 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
982 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
983
984 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/walldns/log/run
985 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
986 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
987 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
988 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
989 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
990 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
991
992 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
993 %config %{_sysconfdir}/walldns/env/*
994 %attr(755,root,root) %{_sysconfdir}/walldns/run
995 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
996 %{_mandir}/man8/walldns*
997 /service/walldns
998
999 %files rbldns
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_bindir}/rbldns*
1002 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
1003 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
1004 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
1005
1006 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/log/run
1007 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
1008 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
1009 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
1010 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
1011 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
1012 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
1013
1014 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
1015 %config %{_sysconfdir}/rbldns/env/*
1016 %attr(755,root,root) %{_sysconfdir}/rbldns/run
1017 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
1018 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
1019 %config %{_sysconfdir}/rbldns/root/data
1020 %{_mandir}/man8/rbldns*
1021 /service/rbldns
1022
1023 %files axfrdns
1024 %defattr(644,root,root,755)
1025 %attr(755,root,root) %{_bindir}/axfrdns*
1026 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
1027 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
1028 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
1029
1030 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/log/run
1031 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1032 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1033 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1034 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1035 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1036 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1037
1038 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1039 %config %{_sysconfdir}/axfrdns/env/*
1040 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1042 %config %{_sysconfdir}/axfrdns/tcp
1043 %{_mandir}/man8/axfrdns*
1044 /service/axfrdns
This page took 0.162647 seconds and 3 git commands to generate.