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