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