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