]> git.pld-linux.org Git - packages/djbdns.git/blob - djbdns.spec
- move some patches to distfiles
[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 exec setuidgid dnslog multilog t /var/log/djbdns/tinydns
513 EOF
514 mkdir $s/env
515 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
516 echo 127.0.0.1                   > $s/env/IP
517 cat>$s/run<<EOF
518 #!/bin/sh
519 exec 2>&1
520 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
521 EOF
522 mkdir $s/root
523 touch $s/root/data
524 cat>$s/root/add-ns<<'EOF'
525 #!/bin/sh
526 exec %{_bindir}/tinydns-edit data data.new add ns ${1+"$@"}
527 EOF
528 cat>$s/root/add-childns<<'EOF'
529 #!/bin/sh
530 exec %{_bindir}/tinydns-edit data data.new add childns ${1+"$@"}
531 EOF
532 cat>$s/root/add-host<<'EOF'
533 #!/bin/sh
534 exec %{_bindir}/tinydns-edit data data.new add host ${1+"$@"}
535 EOF
536 cat>$s/root/add-host6<<'EOF'
537 #!/bin/sh
538 exec %{_bindir}/tinydns-edit data data.new add host6 ${1+"$@"}
539 EOF
540 cat>$s/root/add-alias<<'EOF'
541 #!/bin/sh
542 exec %{_bindir}/tinydns-edit data data.new add alias ${1+"$@"}
543 EOF
544 cat>$s/root/add-alias6<<'EOF'
545 #!/bin/sh
546 exec %{_bindir}/tinydns-edit data data.new add alias6 ${1+"$@"}
547 EOF
548 cat>$s/root/add-mx<<'EOF'
549 #!/bin/sh
550 exec %{_bindir}/tinydns-edit data data.new add mx ${1+"$@"}
551 EOF
552 cat>$s/root/Makefile<<'EOF'
553 data.cdb: data
554         %{_bindir}/tinydns-data
555 EOF
556
557 ##### PICKDNS #####
558 make_supervise_service pickdns
559 s=$RPM_BUILD_ROOT%{_sysconfdir}/pickdns
560 cat>$s/log/run<<EOF
561 #!/bin/sh
562 exec setuidgid dnslog multilog t /var/log/djbdns/pickdns
563 EOF
564 mkdir $s/env
565 echo %{_sysconfdir}/pickdns/root > $s/env/ROOT
566 echo 127.0.0.1                   > $s/env/IP
567 cat>$s/run<<EOF
568 #!/bin/sh
569 exec 2>&1
570 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
571 EOF
572 mkdir $s/root
573 touch $s/root/data
574 cat>$s/root/Makefile<<EOF
575 data.cdb: data
576         %{_bindir}/pickdns-data
577 EOF
578
579 ##### WALLDNS #####
580 make_supervise_service walldns
581 s=$RPM_BUILD_ROOT%{_sysconfdir}/walldns
582 cat>$s/log/run<<EOF
583 #!/bin/sh
584 exec setuidgid dnslog multilog t ./main
585 EOF
586 mkdir $s/env
587 echo %{_sysconfdir}/walldns/root > $s/env/ROOT
588 echo 127.0.0.1                   > $s/env/IP
589 cat>$s/run<<EOF
590 #!/bin/sh
591 exec 2>&1
592 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
593 EOF
594 mkdir $s/root
595
596 ##### RBLDNS #####
597 make_supervise_service rbldns
598 s=$RPM_BUILD_ROOT%{_sysconfdir}/rbldns
599 cat>$s/log/run<<EOF
600 #!/bin/sh
601 exec setuidgid dnslog multilog t /var/log/djbdns/rbldns
602 EOF
603 mkdir $s/env
604 echo %{_sysconfdir}/rbldns/root > $s/env/ROOT
605 echo 127.0.0.1                  > $s/env/IP
606 echo in-addr.arpa               > $s/env/BASE
607 cat>$s/run<<EOF
608 #!/bin/sh
609 exec 2>&1
610 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
611 EOF
612 mkdir $s/root
613 touch $s/root/data
614 cat>$s/root/Makefile<<EOF
615 data.cdb: data
616         %{_bindir}/rbldns-data
617 EOF
618 cat>$s/data<<EOF
619 # example
620 # !10.11.12.13:See http://bad.example.com
621 # :127.0.0.2:blacklisted"
622 # 1.2.3.0/24
623 EOF
624
625
626
627 ##### AXFRDNS #####
628 make_supervise_service axfrdns
629 s=$RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
630 cat>$s/log/run<<EOF
631 #!/bin/sh
632 exec setuidgid dnslog multilog t /var/log/djbdns/axfrdns
633 EOF
634 mkdir $s/env
635 echo %{_sysconfdir}/tinydns/root > $s/env/ROOT
636 echo 127.0.0.1                   > $s/env/IP
637 cat>$s/run<<'EOF'
638 #!/bin/sh
639 exec 2>&1
640 exec envdir ./env sh -c '
641   exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "$IP" 53 %{_bindir}/axfrdns
642 '
643 EOF
644 cat>$s/Makefile<<'EOF'
645 tcp.cdb: tcp
646         tcprules tcp.cdb tcp.tmp < tcp
647 EOF
648 cat>$s/tcp<<'EOF'
649 # sample line:  1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
650 :deny
651 EOF
652
653 ##### daemontools symlinks #####
654 install -d $RPM_BUILD_ROOT/service
655 cd $RPM_BUILD_ROOT/service
656 ln -s ..%{_sysconfdir}/dnscache
657 ln -s ..%{_sysconfdir}/dnscachex
658 ln -s ..%{_sysconfdir}/tinydns
659 ln -s ..%{_sysconfdir}/pickdns
660 ln -s ..%{_sysconfdir}/walldns
661 ln -s ..%{_sysconfdir}/rbldns
662 ln -s ..%{_sysconfdir}/axfrdns
663
664 %clean
665 rm -rf $RPM_BUILD_ROOT
666
667 %pre
668 %groupadd -g 32 -r -f djbdns
669 %useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog
670
671 %postun
672 if [ "$1" = "0" ]; then
673         %userremove dnslog
674         %groupremove djbdns
675 fi
676
677 %pre dnscache
678 %useradd -P %{name}-dnscache -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache
679
680 %post dnscache
681 if [ ! -s %{_sysconfdir}/dnscache/seed ]; then
682         dd if=/dev/urandom of=%{_sysconfdir}/dnscache/seed bs=128c count=1
683 fi
684 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
685         echo "Warning: dnscache and pickdns can't work on the same"
686         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
687         echo "or %{_sysconfdir}/pickdns/env/IP."
688 fi
689 if diff -u %{_sysconfdir}/{dnscache,dnscachex}/env/IP >/dev/zero 2>&1;then
690         echo "Warning: dnscache and dnscachex can't work on the same"
691         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
692         echo "or %{_sysconfdir}/dnscachex/env/IP."
693 fi
694 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
695         echo "Warning: dnscache and rbldns can't work on the same"
696         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
697         echo "or %{_sysconfdir}/rbldns/env/IP."
698 fi
699 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
700         echo "Warning: dnscache and tinydns can't work on the same"
701         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
702         echo "or %{_sysconfdir}/tinydns/env/IP."
703 fi
704 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
705         echo "Warning: dnscache and walldns can't work on the same"
706         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
707         echo "or %{_sysconfdir}/walldns/env/IP."
708 fi
709
710 if [ -f /service/dnscache/supervise/lock ]; then
711         svc -t /service/dnscache{,/log}
712 fi
713
714 %preun dnscache
715 if [ "$1" = "0" ]; then
716         # http://cr.yp.to/daemontools/faq/create.html#remove
717         if [ -f /service/dnscache/supervise/lock ]; then
718                 cd /service/dnscache
719                 rm /service/dnscache
720                 svc -dx . log
721         fi
722 fi
723
724 %postun dnscache
725 if [ "$1" = "0" ]; then
726         %userremove dnscache
727 fi
728
729 %post dnscachex
730 if [ ! -s %{_sysconfdir}/dnscachex/seed ]; then
731         dd if=/dev/urandom of=%{_sysconfdir}/dnscachex/seed bs=128c count=1
732 fi
733 if diff -u %{_sysconfdir}/{dnscachex,dnscache}/env/IP >/dev/zero 2>&1;then
734         echo "Warning: dnscachex and dnscache can't work on the same"
735         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
736         echo "or %{_sysconfdir}/dnscache/env/IP."
737 fi
738 if diff -u %{_sysconfdir}/{dnscachex,pickdns}/env/IP >/dev/zero 2>&1;then
739         echo "Warning: dnscachex and pickdns can't work on the same"
740         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
741         echo "or %{_sysconfdir}/pickdns/env/IP."
742 fi
743 if diff -u %{_sysconfdir}/{dnscachex,rbldns}/env/IP >/dev/zero 2>&1;then
744         echo "Warning: dnscachex and rbldns can't work on the same"
745         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
746         echo "or %{_sysconfdir}/rbldns/env/IP."
747 fi
748 if diff -u %{_sysconfdir}/{dnscachex,tinydns}/env/IP >/dev/zero 2>&1;then
749         echo "Warning: dnscachex and tinydns can't work on the same"
750         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
751         echo "or %{_sysconfdir}/tinydns/env/IP."
752 fi
753 if diff -u %{_sysconfdir}/{dnscachex,walldns}/env/IP >/dev/zero 2>&1;then
754         echo "Warning: dnscachex and walldns can't work on the same"
755         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
756         echo "or %{_sysconfdir}/walldns/env/IP."
757 fi
758
759 if [ -f /service/dnscachex/supervise/lock ]; then
760         svc -t /service/dnscachex{,/log}
761 fi
762
763 %preun dnscachex
764 if [ "$1" = "0" ]; then
765         # http://cr.yp.to/daemontools/faq/create.html#remove
766         if [ -f /service/dnscachex/supervise/lock ]; then
767                 cd /service/dnscachex
768                 rm /service/dnscachex
769                 svc -dx . log
770         fi
771 fi
772
773 %pre tinydns
774 %useradd -P %{name}-tinydns -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns
775
776 %post tinydns
777 if diff -u %{_sysconfdir}/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
778         echo "Warning: dnscache and tinydns can't work on the same"
779         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
780         echo "or %{_sysconfdir}/tinydns/env/IP."
781 fi
782 if diff -u %{_sysconfdir}/{dnscachex,tinydns}/env/IP >/dev/zero 2>&1;then
783         echo "Warning: dnscachex and tinydns can't work on the same"
784         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
785         echo "or %{_sysconfdir}/tinydns/env/IP."
786 fi
787 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
788         echo "Warning: pickdns and tinydns can't work on the same"
789         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
790         echo "or %{_sysconfdir}/tinydns/env/IP."
791 fi
792 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
793         echo "Warning: rbldns and tinydns can't work on the same"
794         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
795         echo "or %{_sysconfdir}/tinydns/env/IP."
796 fi
797 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
798         echo "Warning: tinydns and walldns can't work on the same"
799         echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
800         echo "or %{_sysconfdir}/walldns/env/IP."
801 fi
802
803 if [ -f /service/tinydns/supervise/lock ]; then
804         svc -t /service/tinydns{,/log}
805 fi
806
807 %preun tinydns
808 if [ "$1" = "0" ]; then
809         # http://cr.yp.to/daemontools/faq/create.html#remove
810         if [ -f /service/tinydns/supervise/lock ]; then
811                 cd /service/tinydns
812                 rm /service/tinydns
813                 svc -dx . log
814         fi
815 fi
816
817 %postun tinydns
818 if [ "$1" = "0" ]; then
819         %userremove tinydns
820 fi
821
822 %pre pickdns
823 %useradd -P %{name}-pickdns -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns
824
825 %post pickdns
826 if diff -u %{_sysconfdir}/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
827         echo "Warning: dnscache and pickdns can't work on the same"
828         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
829         echo "or %{_sysconfdir}/pickdns/env/IP."
830 fi
831 if diff -u %{_sysconfdir}/{dnscachex,pickdns}/env/IP >/dev/zero 2>&1;then
832         echo "Warning: dnscachex and pickdns can't work on the same"
833         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
834         echo "or %{_sysconfdir}/pickdns/env/IP."
835 fi
836 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
837         echo "Warning: pickdns and rbldns can't work on the same"
838         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
839         echo "or %{_sysconfdir}/rbldns/env/IP."
840 fi
841 if diff -u %{_sysconfdir}/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
842         echo "Warning: pickdns and tinydns can't work on the same"
843         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
844         echo "or %{_sysconfdir}/tinydns/env/IP."
845 fi
846 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
847         echo "Warning: pickdns and walldns can't work on the same"
848         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
849         echo "or %{_sysconfdir}/walldns/env/IP."
850 fi
851
852 if [ -f /service/pickdns/supervise/lock ]; then
853         svc -t /service/pickdns{,/log}
854 fi
855
856 %preun pickdns
857 if [ "$1" = "0" ]; then
858         # http://cr.yp.to/daemontools/faq/create.html#remove
859         if [ -f /service/pickdns/supervise/lock ]; then
860                 cd /service/pickdns
861                 rm /service/pickdns
862                 svc -dx . log
863         fi
864 fi
865
866 %postun pickdns
867 if [ "$1" = "0" ]; then
868         %userremove pickdns
869 fi
870
871 %pre walldns
872 %useradd -P %{name}-walldns -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns
873
874 %post walldns
875 if diff -u %{_sysconfdir}/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
876         echo "Warning: dnscache and walldns can't work on the same"
877         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
878         echo "or %{_sysconfdir}/walldns/env/IP."
879 fi
880 if diff -u %{_sysconfdir}/{dnscachex,walldns}/env/IP >/dev/zero 2>&1;then
881         echo "Warning: dnscachex and walldns can't work on the same"
882         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
883         echo "or %{_sysconfdir}/walldns/env/IP."
884 fi
885 if diff -u %{_sysconfdir}/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
886         echo "Warning: pickdns and walldns can't work on the same"
887         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
888         echo "or %{_sysconfdir}/walldns/env/IP."
889 fi
890 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
891         echo "Warning: rbldns and walldns can't work on the same"
892         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
893         echo "or %{_sysconfdir}/walldns/env/IP."
894 fi
895 if diff -u %{_sysconfdir}/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
896         echo "Warning: tinydns and walldns can't work on the same"
897         echo "IP address. You have to edit either %{_sysconfdir}/tinydns/env/IP"
898         echo "or %{_sysconfdir}/walldns/env/IP."
899 fi
900
901 if [ -f /service/walldns/supervise/lock ]; then
902         svc -t /service/walldns{,/log}
903 fi
904
905 %preun walldns
906 if [ "$1" = "0" ]; then
907         # http://cr.yp.to/daemontools/faq/create.html#remove
908         if [ -f /service/walldns/supervise/lock ]; then
909                 cd /service/walldns
910                 rm /service/walldns
911                 svc -dx . log
912         fi
913 fi
914
915 %postun walldns
916 if [ "$1" = "0" ]; then
917         %userremove walldns
918 fi
919
920 %pre rbldns
921 %useradd -P %{name}-rbldns -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns
922
923 %post rbldns
924 if diff -u %{_sysconfdir}/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
925         echo "Warning: dnscache and rbldns can't work on the same"
926         echo "IP address. You have to edit either %{_sysconfdir}/dnscache/env/IP"
927         echo "or %{_sysconfdir}/rbldns/env/IP."
928 fi
929 if diff -u %{_sysconfdir}/{dnscachex,rbldns}/env/IP >/dev/zero 2>&1;then
930         echo "Warning: dnscachex and rbldns can't work on the same"
931         echo "IP address. You have to edit either %{_sysconfdir}/dnscachex/env/IP"
932         echo "or %{_sysconfdir}/rbldns/env/IP."
933 fi
934 if diff -u %{_sysconfdir}/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
935         echo "Warning: pickdns and rbldns can't work on the same"
936         echo "IP address. You have to edit either %{_sysconfdir}/pickdns/env/IP"
937         echo "or %{_sysconfdir}/rbldns/env/IP."
938 fi
939 if diff -u %{_sysconfdir}/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
940         echo "Warning: rbldns and tinydns can't work on the same"
941         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
942         echo "or %{_sysconfdir}/tinydns/env/IP."
943 fi
944 if diff -u %{_sysconfdir}/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
945         echo "Warning: rbldns and walldns can't work on the same"
946         echo "IP address. You have to edit either %{_sysconfdir}/rbldns/env/IP"
947         echo "or %{_sysconfdir}/walldns/env/IP."
948 fi
949
950 if [ -f /service/rbldns/supervise/lock ]; then
951         svc -t /service/rbldns{,/log}
952 fi
953
954 %preun rbldns
955 if [ "$1" = "0" ]; then
956         # http://cr.yp.to/daemontools/faq/create.html#remove
957         if [ -f /service/rbldns/supervise/lock ]; then
958                 cd /service/rbldns
959                 rm /service/rbldns
960                 svc -dx . log
961         fi
962 fi
963
964 %postun rbldns
965 if [ "$1" = "0" ]; then
966         %userremove rbldns
967 fi
968
969 %pre axfrdns
970 %useradd -P %{name}-axfrdns -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns
971
972 %preun axfrdns
973 if [ "$1" = "0" ]; then
974         # http://cr.yp.to/daemontools/faq/create.html#remove
975         if [ -f /service/axfrdns/supervise/lock ]; then
976                 cd /service/axfrdns
977                 rm /service/axfrdns
978                 svc -dx . log
979         fi
980 fi
981
982 %postun axfrdns
983 if [ "$1" = "0" ]; then
984         %userremove axfrdns
985 fi
986
987 %files
988 %defattr(644,root,root,755)
989 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
990 %attr(755,root,root) %{_bindir}/cachetest
991 %attr(755,root,root) %{_bindir}/dns[f-t]*
992 %attr(755,root,root) %{_bindir}/axfr-get
993 %{_mandir}/man[15]/*
994 %{_mandir}/man8/axfr-get*
995 %dir %attr(751,root,root) %dir /var/log/djbdns
996
997 %files dnscache
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_bindir}/dnscache*
1000 %config %{_sysconfdir}/dnsroots.global
1001 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache
1002 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/supervise
1003 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/supervise/*
1004
1005 %dir %attr(1755,root,root) %{_sysconfdir}/dnscache/log
1006 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscache/log/run
1007 %attr(700,root,root) %dir %{_sysconfdir}/dnscache/log/supervise
1008 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscache/log/supervise/*
1009 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscache
1010 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/lock
1011 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscache/state
1012
1013 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
1014 %config %{_sysconfdir}/dnscache/env/*
1015 %attr(755,root,root) %{_sysconfdir}/dnscache/run
1016 %dir %{_sysconfdir}/dnscache/root
1017 %dir %{_sysconfdir}/dnscache/root/ip
1018 %dir %{_sysconfdir}/dnscache/root/servers
1019 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
1020 %config %{_sysconfdir}/dnscache/root/servers/*
1021 %attr(600,root,root) %ghost %{_sysconfdir}/dnscache/seed
1022 %{_mandir}/man8/dnscache*
1023 /service/dnscache
1024
1025 %files dnscachex
1026 %defattr(644,root,root,755)
1027 %dir %attr(1755,root,root) %{_sysconfdir}/dnscachex
1028 %attr(700,root,root) %dir %{_sysconfdir}/dnscachex/supervise
1029 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscachex/supervise/*
1030
1031 %dir %attr(1755,root,root) %{_sysconfdir}/dnscachex/log
1032 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnscachex/log/run
1033 %attr(700,root,root) %dir %{_sysconfdir}/dnscachex/log/supervise
1034 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/dnscachex/log/supervise/*
1035 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/dnscachex
1036 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/dnscachex/lock
1037 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/dnscachex/state
1038
1039 %dir %attr(2755,root,root) %{_sysconfdir}/dnscachex/env
1040 %config %{_sysconfdir}/dnscachex/env/*
1041 %attr(755,root,root) %{_sysconfdir}/dnscachex/run
1042 %dir %{_sysconfdir}/dnscachex/root
1043 %dir %{_sysconfdir}/dnscachex/root/ip
1044 %dir %{_sysconfdir}/dnscachex/root/servers
1045 %config %attr(600,root,root) %{_sysconfdir}/dnscachex/root/ip/*
1046 %config %{_sysconfdir}/dnscachex/root/servers/*
1047 %attr(600,root,root) %ghost %{_sysconfdir}/dnscachex/seed
1048 /service/dnscachex
1049
1050 %files tinydns
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_bindir}/tinydns*
1053 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
1054 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/supervise
1055 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/supervise/*
1056
1057 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/log/run
1058 %dir %attr(1755,root,root) %{_sysconfdir}/tinydns/log
1059 %attr(700,root,root) %dir %{_sysconfdir}/tinydns/log/supervise
1060 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/tinydns/log/supervise/*
1061 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/tinydns
1062 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/lock
1063 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/tinydns/state
1064
1065 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
1066 %config %{_sysconfdir}/tinydns/env/*
1067 %attr(755,root,root) %{_sysconfdir}/tinydns/run
1068 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
1069 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tinydns/root/Makefile
1070 %config %{_sysconfdir}/tinydns/root/data
1071 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
1072 %{_mandir}/man8/tinydns*
1073 /service/tinydns
1074
1075 %files tinydns-notify
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{_bindir}/tinydns-notify
1078
1079 %files pickdns
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_bindir}/pickdns*
1082 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
1083 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/supervise
1084 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/supervise/*
1085
1086 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/log/run
1087 %dir %attr(1755,root,root) %{_sysconfdir}/pickdns/log
1088 %attr(700,root,root) %dir %{_sysconfdir}/pickdns/log/supervise
1089 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/pickdns/log/supervise/*
1090 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/pickdns
1091 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/lock
1092 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/pickdns/state
1093
1094 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
1095 %config %{_sysconfdir}/pickdns/env/*
1096 %attr(755,root,root) %{_sysconfdir}/pickdns/run
1097 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
1098 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pickdns/root/Makefile
1099 %config %{_sysconfdir}/pickdns/root/data
1100 %{_mandir}/man8/pickdns*
1101 /service/pickdns
1102
1103 %files walldns
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_bindir}/walldns*
1106 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
1107 %attr(700,root,root) %dir %{_sysconfdir}/walldns/supervise
1108 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/supervise/*
1109
1110 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/walldns/log/run
1111 %dir %attr(1755,root,root) %{_sysconfdir}/walldns/log
1112 %attr(700,root,root) %dir %{_sysconfdir}/walldns/log/supervise
1113 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/walldns/log/supervise/*
1114 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/walldns
1115 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/walldns/lock
1116 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/walldns/state
1117
1118 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
1119 %config %{_sysconfdir}/walldns/env/*
1120 %attr(755,root,root) %{_sysconfdir}/walldns/run
1121 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
1122 %{_mandir}/man8/walldns*
1123 /service/walldns
1124
1125 %files rbldns
1126 %defattr(644,root,root,755)
1127 %attr(755,root,root) %{_bindir}/rbldns*
1128 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
1129 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/supervise
1130 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/supervise/*
1131
1132 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/log/run
1133 %dir %attr(1755,root,root) %{_sysconfdir}/rbldns/log
1134 %attr(700,root,root) %dir %{_sysconfdir}/rbldns/log/supervise
1135 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/rbldns/log/supervise/*
1136 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/rbldns
1137 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/lock
1138 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/rbldns/state
1139
1140 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
1141 %config %{_sysconfdir}/rbldns/env/*
1142 %attr(755,root,root) %{_sysconfdir}/rbldns/run
1143 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
1144 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rbldns/root/Makefile
1145 %config %{_sysconfdir}/rbldns/root/data
1146 %{_mandir}/man8/rbldns*
1147 /service/rbldns
1148
1149 %files axfrdns
1150 %defattr(644,root,root,755)
1151 %attr(755,root,root) %{_bindir}/axfrdns*
1152 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
1153 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/supervise
1154 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/supervise/*
1155
1156 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/log/run
1157 %dir %attr(1755,root,root) %{_sysconfdir}/axfrdns/log
1158 %attr(700,root,root) %dir %{_sysconfdir}/axfrdns/log/supervise
1159 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/axfrdns/log/supervise/*
1160 %attr(751,dnslog,djbdns) %dir /var/log/djbdns/axfrdns
1161 %attr(600,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/lock
1162 %attr(640,dnslog,djbdns) %ghost /var/log/djbdns/axfrdns/state
1163
1164 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
1165 %config %{_sysconfdir}/axfrdns/env/*
1166 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
1167 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/axfrdns/Makefile
1168 %config %{_sysconfdir}/axfrdns/tcp
1169 %{_mandir}/man8/axfrdns*
1170 /service/axfrdns
This page took 0.101589 seconds and 3 git commands to generate.