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