]> git.pld-linux.org Git - packages/djbdns.git/blob - djbdns.spec
- add http://www.fefe.de/dns/djbdns-1.05-ipv6.diff
[packages/djbdns.git] / djbdns.spec
1 Summary:        DJB DNS 
2 Summary(pl):    DJB DNS
3 Name:           djbdns
4 Version:        1.05
5 Release:        5
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 Source0:        http://cr.yp.to/djbdns/%{name}-%{version}.tar.gz
11 Source1:        %{name}-doc.tar.gz
12 Patch0:         dnscache-1.05-multiple-ip.patch
13 Patch1:         http://www.fefe.de/dns/djbdns-1.05-ipv6.diff
14 URL:            http://cr.yp.to/djbdns.html
15 Prereq:         shadow
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This is a set of DNS servers with security in mind. If you find a
20 security hole you can get a prize.
21
22 This package contains some basic DNS debugging tools and some
23 documentation. If you need a DNS server install one of the following
24 packages:
25
26  - dnscache - a local DNS cache
27  - tinydns - a DNS server
28  - pickdns - a DNS load-balancing server
29  - walldns - a reverse DNS wall
30  - rbldns - an IP-address-listing DNS server
31  - axfrdns - a DNS zone transfer server
32
33 %description -l de
34 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
35 ein Preis, wenn man ein Sicherheitsloch findet.
36
37 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
38 Wenn du einen DNS-Server braucht, installe ein von den folgenden
39 Paketen:
40
41  - dnscache - ein lokaler DNS-Cache
42  - tinydns - ein DNS-Server
43  - pickdns - ein Belastung ausgleichender DNS-Server
44  - walldns - eine Wand Rückgekehrten DNSs
45  - rbldns - ein IP-Adressen-Listen-DNS-Server
46  - axfrdns - ein DNS-Zonen-Transfer-Server
47
48 %description -l pl
49 Jest to alternatywny zestaw serwerów DNS'u, którego g³ównym celem jest
50 bezpieczeñstwo. Za znalezienie dziury w tym systemie zosta³a
51 wyznaczona nawet nagroda.
52
53 Ten pakiet zawiera kilka podstawowych narzêdzi DNS oraz trochê
54 dokumentacji. Je¶li potrzebujesz serwera DNS zainstaluj jeden z
55 nastêpuj±cych pakietów:
56
57  - dnscache - lokalny cache DNS
58  - tinydns - serwer DNS
59  - pickdns - serwer DNS do równowa¿enia obci±¿eñ
60  - walldns - ¶ciana dla odwrotnych zapytañ DNS
61  - rbldns - serwer DNS list adresów IP
62  - axfrdns - serwer transferów stref DNS
63
64 %package -n dnscache
65 Summary:        DJB's local DNS cache
66 Summary(de):    DJBs lokaler DNS-Cache
67 Summary(pl):    Lokalny cache DNS od DJB
68 Group:          Networking/Daemons
69 Group(de):      Netzwerkwesen/Server
70 Group(pl):      Sieciowe/Serwery
71 Requires:       %{name} = %{version}
72 Requires:       daemontools
73 Prereq:         fileutils
74 Prereq:         shadow
75
76 %description -n dnscache
77 dnscache is a local DNS cache from the djbdns package. It accepts
78 recursive DNS queries from local clients such as web browsers and mail
79 transfer agents. It collects responses from remote DNS servers. It
80 caches the responses to save time later.
81
82 %description -n dnscache -l de
83 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
84 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
85 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
86 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
87 zu sparen.
88
89 %description -n dnscache -l pl
90 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
91 rekursywne zapytania DNS od lokalnych klientów takich, jak
92 przegl±darki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
93 od zdalnych serwerów DNS. Zapamiêtuje on odpowiedzi, ¿eby pó¼niej
94 oszczêdziæ czas.
95
96 %package -n tinydns
97 Summary:        DJB's DNS server
98 Summary(de):    DJBs DNS-Server
99 Summary(pl):    Serwer DNS od DJB
100 Group:          Networking/Daemons
101 Group(de):      Netzwerkwesen/Server
102 Group(pl):      Sieciowe/Serwery
103 Requires:       %{name} = %{version}
104 Requires:       daemontools
105 Requires:       make
106 Prereq:         shadow
107
108 %description -n tinydns
109 tinydns is a DNS server from the djbdns package. It accepts iterative
110 DNS queries from hosts around the Internet and responds with
111 locally-configured information.
112
113 %description -n tinydns -l de
114 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
115 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
116 lokal-konfigurierten Informationen.
117
118 %description -n tinydns -l pl
119 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
120 zapytania DNS od komputerów z ca³ego Internetu i odpowiada przy u¿yciu
121 lokalnie skonfigurowanych informacji.
122
123 %package -n pickdns
124 Summary:        DJB's load-balancing DNS server
125 Summary(de):    DJBs Belastung ausgleichender DNS-Server
126 Summary(pl):    Serwer DNS równowa¿±cy obci±¿enie od DJB
127 Group:          Networking/Daemons
128 Group(de):      Netzwerkwesen/Server
129 Group(pl):      Sieciowe/Serwery
130 Requires:       %{name} = %{version}
131 Requires:       daemontools
132 Requires:       make
133 Prereq:         shadow
134
135 %description -n pickdns
136 pickdns is a DNS load-balancing server from the djbdns package. It
137 accepts iterative DNS queries from hosts around the Internet and
138 responds with a dynamic selection of locally configured IP addresses
139 with 5-second TTLs.
140
141 %description -n pickdns -l de
142 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
143 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
144 Internet und antwortet mit eine dynamische Auswahl von den
145 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
146
147 %description -n pickdns -l pl
148 pickdns jest równowa¿±cym obci±¿enie serwerem DNS z pakietu djbdns.
149 Odbiera on iteracyjne zapytania DNS od komputerów z ca³ego internetu i
150 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
151 5-sekundowymi TTLami.
152
153 %package -n walldns
154 Summary:        DJB's reverse DNS wall
155 Summary(de):    DJBs Wand rückgekehrten DNSs
156 Summary(pl):    ¦ciana dla odwrotnych zapytañ DNS od DJB
157 Group:          Networking/Daemons
158 Group(de):      Netzwerkwesen/Server
159 Group(pl):      Sieciowe/Serwery
160 Requires:       %{name} = %{version}
161 Requires:       daemontools
162 Prereq:         shadow
163
164 %description -n walldns
165 walldns is a reverse DNS wall from the djbdns package. It accepts
166 iterative DNS queries for in-addr.arpa domains from hosts around the
167 Internet and supplies generic responses that avoid revealing local
168 host information.
169
170 %description -n walldns -l de
171 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
172 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
173 Hosts aus allem Internet und liefert Antworte, die vermeiden
174 Informationen über die lokalen Hosts zu aufzudecken.
175
176 %description -n walldns -l pl
177 walldns jest ¶cian± dla odwrotnych zapytañ DNS z pakietu djbdns.
178 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
179 komputerów z ca³ego Internetu i dostarcza odpowiedzi, które unikaj±
180 ujawniania informacji o lokalnych komputerach.
181
182 %package -n rbldns
183 Summary:        DJB's IP-address-listing DNS server
184 Summary(de):    DJBs IP-Adressen-Listen-DNS-Server
185 Summary(pl):    Serwer DNS list adresów IP od DJB
186 Group:          Networking/Daemons
187 Group(de):      Netzwerkwesen/Server
188 Group(pl):      Sieciowe/Serwery
189 Requires:       %{name} = %{version}
190 Requires:       daemontools
191 Requires:       make
192 Prereq:         shadow
193
194 %description -n rbldns
195 rbldns is an IP-address-listing DNS server from the djbdns package. It
196 accepts iterative DNS queries from hosts around the Internet asking
197 about various IP addresses. It provides responses showing whether the
198 addresses are on a locally configured list, such as RBL or DUL.
199
200 %description -n rbldns -l de
201 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
202 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
203 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
204 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
205 Beispiel RBL oder DUL.
206
207 %description -n rbldns -l pl
208 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
209 iteracyjne zapytania DNS od komputerów z ca³ego Internetu pytaj±ce o
210 ró¿ne adresy IP. Dostarcza on odpowiedzi pokazuj±cych, czy adresy te
211 s± na lokalnie skonfigurowanej li¶cie takiej, jak RBL lub DUL.
212
213 %package -n axfrdns
214 Summary:        DJB's DNS zone-transfer server
215 Summary(de):    DJBs DNS-Zonen-Transfer-Server
216 Summary(pl):    Serwer transferów stref DNS od DJB
217 Group:          Networking/Daemons
218 Group(de):      Netzwerkwesen/Server
219 Group(pl):      Sieciowe/Serwery
220 Requires:       %{name} = %{version}
221 Requires:       tinydns = %{version}
222 Requires:       daemontools
223 Requires:       ucspi-tcp
224 Requires:       make
225 Prereq:         shadow
226
227 %description -n axfrdns
228 axfrdns is a DNS zone transfer server from the djbdns package. It
229 reads a zone-transfer request in DNS-over-TCP format from its standard
230 input and responds with locally configured information.
231
232 %description -n axfrdns -l de
233 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
234 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
235 standarden Eingabe und antwortet mit den lokal-konfigurierten
236 Informationen.
237
238 %description -n axfrdns -l pl
239 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
240 on ze standardowego wej¶cia pro¶bê o transfer strefy w formacie
241 DNS-over-TCP i odpowiada przy u¿yciu lokalnie skonfigurowanych
242 informacji.
243
244 %prep
245 %setup -q -a1
246 %patch0 -p1
247 %patch1 -p1
248 cd doc
249 ln -s merge/djbdns/* .
250
251 %build
252 echo %{__cc} %{rpmcflags} >conf-cc
253 echo %{_prefix} > conf-home
254 %{__make} 
255
256 %install
257 rm -rf $RPM_BUILD_ROOT
258 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
259
260 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
261 install axfr-get        $RPM_BUILD_ROOT%{_bindir}
262 install axfrdns         $RPM_BUILD_ROOT%{_bindir}
263 install axfrdns-conf    $RPM_BUILD_ROOT%{_bindir}
264 install cachetest       $RPM_BUILD_ROOT%{_bindir}
265 install dnscache        $RPM_BUILD_ROOT%{_bindir}
266 install dnscache-conf   $RPM_BUILD_ROOT%{_bindir}
267 install dnsfilter       $RPM_BUILD_ROOT%{_bindir}
268 install dnsip           $RPM_BUILD_ROOT%{_bindir}
269 install dnsipq          $RPM_BUILD_ROOT%{_bindir}
270 install dnsmx           $RPM_BUILD_ROOT%{_bindir}
271 install dnsname         $RPM_BUILD_ROOT%{_bindir}
272 install dnsq            $RPM_BUILD_ROOT%{_bindir}
273 install dnsqr           $RPM_BUILD_ROOT%{_bindir}
274 install dnstrace        $RPM_BUILD_ROOT%{_bindir}
275 install dnstxt          $RPM_BUILD_ROOT%{_bindir}
276 install pickdns         $RPM_BUILD_ROOT%{_bindir}
277 install pickdns-conf    $RPM_BUILD_ROOT%{_bindir}
278 install pickdns-data    $RPM_BUILD_ROOT%{_bindir}
279 install random-ip       $RPM_BUILD_ROOT%{_bindir}
280 install rbldns          $RPM_BUILD_ROOT%{_bindir}
281 install rbldns-conf     $RPM_BUILD_ROOT%{_bindir}
282 install rbldns-data     $RPM_BUILD_ROOT%{_bindir}
283 install rts             $RPM_BUILD_ROOT%{_bindir}
284 install tinydns         $RPM_BUILD_ROOT%{_bindir}
285 install tinydns-conf    $RPM_BUILD_ROOT%{_bindir}
286 install tinydns-data    $RPM_BUILD_ROOT%{_bindir}
287 install tinydns-edit    $RPM_BUILD_ROOT%{_bindir}
288 install tinydns-get     $RPM_BUILD_ROOT%{_bindir}
289 install walldns         $RPM_BUILD_ROOT%{_bindir}
290 install walldns-conf    $RPM_BUILD_ROOT%{_bindir}
291
292 gzip -9nf CHANGES TODO MULTIPLEIP TINYDNS
293
294 ##### DNSCACHE #####
295
296 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
297 cd $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
298 mkdir log
299 mkdir log/main
300 touch log/status
301 mkdir env
302 echo %{_sysconfdir}/dnscache/root>env/ROOT
303 echo 127.0.0.1                   >env/IP
304 echo 0.0.0.0                     >env/IPSEND
305 echo 1000000                     >env/CACHESIZE
306 echo 3000000                     >env/DATALIMIT
307 cat>run<<___
308 #!/bin/sh
309 exec 2>&1
310 exec <seed
311 exec envdir ./env sh -c '
312   exec envuidgid dnscache softlimit -o250 -d "\$DATALIMIT" %{_bindir}/dnscache
313 '
314 ___
315 cat>log/run<<___
316 #!/bin/sh
317 exec setuidgid dnslog multilog t ./main
318 ___
319 mkdir root
320 mkdir root/ip
321 touch root/ip/127.0.0.1
322 mkdir root/servers
323 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/\@
324 dd if=/dev/zero of=seed bs=128c count=1
325
326 ##### TINYDNS #####
327
328 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
329 cd $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
330 mkdir log
331 mkdir log/main
332 touch log/status
333 cat>log/run<<___
334 #!/bin/sh
335 exec setuidgid dnslog multilog t ./main
336 ___
337 mkdir env
338 echo %{_sysconfdir}/tinydns/root>env/ROOT
339 echo 127.0.0.1                  >env/IP
340 cat>run<<___
341 #!/bin/sh
342 exec 2>&1
343 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
344 ___
345 mkdir root
346 touch root/data
347 cat>root/add-ns<<___
348 #!/bin/sh
349 exec %{_bindir}/tinydns-edit data data.new add ns \${1+"\$@"}
350 ___
351 cat>root/add-childns<<___
352 #!/bin/sh
353 exec %{_bindir}/tinydns-edit data data.new add childns \${1+"\$@"}
354 ___
355 cat>root/add-host<<___
356 #!/bin/sh
357 exec %{_bindir}/tinydns-edit data data.new add host \${1+"\$@"}
358 ___
359 cat>root/add-alias<<___
360 #!/bin/sh
361 exec %{_bindir}/tinydns-edit data data.new add alias \${1+"\$@"}
362 ___
363 cat>root/add-mx<<___
364 #!/bin/sh
365 exec %{_bindir}/tinydns-edit data data.new add mx \${1+"\$@"}
366 ___
367 cat>root/Makefile<<___
368 data.cdb: data
369         %{_bindir}/tinydns-data
370 ___
371
372 ##### PICKDNS #####
373
374 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
375 cd $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
376 mkdir log
377 mkdir log/main
378 touch log/status
379 cat>log/run<<___
380 #!/bin/sh
381 exec setuidgid dnslog multilog t ./main
382 ___
383 mkdir env
384 echo %{_sysconfdir}/pickdns/root>env/ROOT
385 echo 127.0.0.1                  >env/IP
386 cat>run<<___
387 #!/bin/sh
388 exec 2>&1
389 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
390 ___
391 mkdir root
392 touch root/data
393 cat>root/Makefile<<___
394 data.cdb: data
395         %{_bindir}/pickdns-data
396 ___
397
398 ##### WALLDNS #####
399 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/walldns
400 cd $RPM_BUILD_ROOT%{_sysconfdir}/walldns
401 mkdir log
402 mkdir log/main
403 touch log/status
404 cat>log/run<<___
405 #!/bin/sh
406 exec setuidgid dnslog multilog t ./main
407 ___
408 mkdir env
409 echo %{_sysconfdir}/walldns/root>env/ROOT
410 echo 127.0.0.1                  >env/IP
411 cat>run<<___
412 #!/bin/sh
413 exec 2>&1
414 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
415 ___
416 mkdir root
417
418 ##### RBLDNS #####
419
420 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
421 cd $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
422 mkdir log
423 mkdir log/main
424 touch log/status
425 cat>log/run<<___
426 #!/bin/sh
427 exec setuidgid dnslog multilog t ./main
428 ___
429 mkdir env
430 echo %{_sysconfdir}/rbldns/root>env/ROOT
431 echo 127.0.0.1                 >env/IP
432 echo in-addr.arpa              >env/BASE
433 cat>run<<___
434 #!/bin/sh
435 exec 2>&1
436 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
437 ___
438 mkdir root
439 touch root/data
440 cat>root/Makefile<<___
441 data.cdb: data
442         %{_bindir}/rbldns-data
443 ___
444
445 ##### AXFRDNS #####
446
447 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
448 cd $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
449 mkdir log
450 mkdir log/main
451 touch log/status
452 cat>log/run<<___
453 #!/bin/sh
454 exec setuidgid dnslog multilog t ./main
455 ___
456 mkdir env
457 echo %{_sysconfdir}/tinydns/root>env/ROOT
458 echo 127.0.0.1                  >env/IP
459 cat>run<<___
460 #!/bin/sh
461 exec 2>&1
462 exec envdir ./env sh -c '
463   exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "\$IP" 53 %{_bindir}/axfrdns
464 '
465 ___
466 cat>Makefile<<___
467 tcp.cdb: tcp
468         tcprules tcp.cdb tcp.tmp < tcp
469 ___
470 cat>tcp<<___
471 # sample line:  1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
472 :deny
473 ___
474
475 ##### daemontools symlinks #####
476 install -d $RPM_BUILD_ROOT/var/run/service
477 cd $RPM_BUILD_ROOT/var/run/service
478 ln -s ../../..%{_sysconfdir}/dnscache
479 ln -s ../../..%{_sysconfdir}/tinydns
480 ln -s ../../..%{_sysconfdir}/pickdns
481 ln -s ../../..%{_sysconfdir}/walldns
482 ln -s ../../..%{_sysconfdir}/rbldns
483 ln -s ../../..%{_sysconfdir}/axfrdns
484
485 %pre
486 if [ -n "`getgid djbdns`" ]; then
487         if [ "`getgid djbdns`" != "32" ]; then
488                 echo "Warning: the group djbdns doesn't have gid=32. Correct this before installing djbdns" 1>&2
489                 exit 1
490         fi
491 else
492         %{_sbindir}/groupadd -g 32 -r -f djbdns
493 fi
494 if [ -n "`id -u dnslog 2>/dev/null`" ]; then
495         if [ "`id -u dnslog`" != "32" ]; then
496                 echo "Warning: the user dnslog doesn't have uid=32. Correct this before installing djbdns" 1>&2
497                 exit 1
498         fi
499 else
500         %{_sbindir}/useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog 1>&2
501 fi
502
503 %postun
504 if [ "$1" = "0" ]; then
505         /usr/sbin/userdel dnslog
506         /usr/sbin/groupdel djbdns
507 fi
508
509 %pre -n dnscache
510 if [ -n "`id -u dnscache 2>/dev/null`" ]; then
511         if [ "`id -u dnscache`" != "33" ]; then
512                 echo "Warning: the user dnscache doesn't have uid=33. Correct this before installing dnscache" 1>&2
513                 exit 1
514         fi
515 else
516         %{_sbindir}/useradd -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache 1>&2
517 fi
518 dd if=/dev/urandom of=seed bs=128c count=1
519
520 %postun -n dnscache
521 if [ "$1" = "0" ]; then
522         /usr/sbin/userdel dnscache
523 fi
524
525 %pre -n tinydns
526 if [ -n "`id -u tinydns 2>/dev/null`" ]; then
527         if [ "`id -u tinydns`" != "34" ]; then
528                 echo "Warning: the user tinydns doesn't have uid=34. Correct this before installing tinydns" 1>&2
529                 exit 1
530         fi
531 else
532         %{_sbindir}/useradd -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns 1>&2
533 fi
534
535 %postun -n tinydns
536 if [ "$1" = "0" ]; then
537         /usr/sbin/userdel tinydns
538 fi
539
540 %pre -n pickdns
541 if [ -n "`id -u pickdns 2>/dev/null`" ]; then
542         if [ "`id -u pickdns`" != "35" ]; then
543                 echo "Warning: the user pickdns doesn't have uid=35. Correct this before installing pickdns" 1>&2
544                 exit 1
545         fi
546 else
547         %{_sbindir}/useradd -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns 1>&2
548 fi
549
550 %postun -n pickdns
551 if [ "$1" = "0" ]; then
552         /usr/sbin/userdel pickdns
553 fi
554
555 %pre -n walldns
556 if [ -n "`id -u walldns 2>/dev/null`" ]; then
557         if [ "`id -u walldns`" != "36" ]; then
558                 echo "Warning: the user walldns doesn't have uid=36. Correct this before installing walldns" 1>&2
559                 exit 1
560         fi
561 else
562         %{_sbindir}/useradd -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns 1>&2
563 fi
564
565 %postun -n walldns
566 if [ "$1" = "0" ]; then
567         /usr/sbin/userdel walldns
568 fi
569
570 %pre -n rbldns
571 if [ -n "`id -u rbldns 2>/dev/null`" ]; then
572         if [ "`id -u rbldns`" != "37" ]; then
573                 echo "Warning: the user rbldns doesn't have uid=37. Correct this before installing rbldns" 1>&2
574                 exit 1
575         fi
576 else
577         %{_sbindir}/useradd -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns 1>&2
578 fi
579
580 %postun -n rbldns
581 if [ "$1" = "0" ]; then
582         /usr/sbin/userdel rbldns
583 fi
584
585 %pre -n axfrdns
586 if [ -n "`id -u axfrdns 2>/dev/null`" ]; then
587         if [ "`id -u axfrdns`" != "38" ]; then
588                 echo "Warning: the user axfrdns doesn't have uid=38. Correct this before installing axfrdns" 1>&2
589                 exit 1
590         fi
591 else
592         %{_sbindir}/useradd -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns 1>&2
593 fi
594
595 %postun -n axfrdns
596 if [ "$1" = "0" ]; then
597         /usr/sbin/userdel axfrdns
598 fi
599
600 %clean
601 rm -rf $RPM_BUILD_ROOT
602
603 %files
604 %defattr(644,root,root,755)
605 %doc *.gz doc/*
606 %attr(755,root,root) %{_bindir}/cachetest
607 %attr(755,root,root) %{_bindir}/dns[f-t]*
608 %attr(755,root,root) %{_bindir}/axfr-get
609
610 %files -n dnscache
611 %defattr(644,root,root,755)
612 %attr(755,root,root) %{_bindir}/dnscache*
613 %config %attr(644,root,root) %{_sysconfdir}/dnsroots.global
614 %dir %attr(3755,root,root) %{_sysconfdir}/dnscache
615 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/log
616 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/dnscache/log/main
617 %attr(644,dnslog,djbdns) %{_sysconfdir}/dnscache/log/status
618 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
619 %config %attr(644,root,root) %{_sysconfdir}/dnscache/env/*
620 %attr(755,root,root) %{_sysconfdir}/dnscache/run
621 %attr(755,root,root) %{_sysconfdir}/dnscache/log/run
622 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root
623 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root/*
624 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
625 %config %attr(644,root,root) %{_sysconfdir}/dnscache/root/servers/*
626 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
627 /var/run/service/dnscache
628
629 %files -n tinydns
630 %defattr(644,root,root,755)
631 %attr(755,root,root) %{_bindir}/tinydns*
632 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
633 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/log
634 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/tinydns/log/main
635 %attr(644,dnslog,djbdns) %{_sysconfdir}/tinydns/log/status
636 %attr(755,root,root) %{_sysconfdir}/tinydns/log/run
637 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
638 %config %attr(644,root,root) %{_sysconfdir}/tinydns/env/*
639 %attr(755,root,root) %{_sysconfdir}/tinydns/run
640 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
641 %attr(644,root,root) %{_sysconfdir}/tinydns/root/Makefile
642 %config %attr(644,root,root) %{_sysconfdir}/tinydns/root/data
643 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
644 /var/run/service/tinydns
645
646 %files -n pickdns
647 %defattr(644,root,root,755)
648 %attr(755,root,root) %{_bindir}/pickdns*
649 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
650 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/log
651 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/pickdns/log/main
652 %attr(644,dnslog,djbdns) %{_sysconfdir}/pickdns/log/status
653 %attr(755,root,root) %{_sysconfdir}/pickdns/log/run
654 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
655 %config %attr(644,root,root) %{_sysconfdir}/pickdns/env/*
656 %attr(755,root,root) %{_sysconfdir}/pickdns/run
657 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
658 %attr(644,root,root) %{_sysconfdir}/pickdns/root/Makefile
659 %config %attr(644,root,root) %{_sysconfdir}/pickdns/root/data
660 /var/run/service/pickdns
661
662 %files -n walldns
663 %defattr(644,root,root,755)
664 %attr(755,root,root) %{_bindir}/walldns*
665 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
666 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/log
667 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/walldns/log/main
668 %attr(644,dnslog,djbdns) %{_sysconfdir}/walldns/log/status
669 %attr(755,root,root) %{_sysconfdir}/walldns/log/run
670 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
671 %config %attr(644,root,root) %{_sysconfdir}/walldns/env/*
672 %attr(755,root,root) %{_sysconfdir}/walldns/run
673 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
674 /var/run/service/walldns
675
676 %files -n rbldns
677 %defattr(644,root,root,755)
678 %attr(755,root,root) %{_bindir}/rbldns*
679 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
680 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/log
681 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/rbldns/log/main
682 %attr(644,dnslog,djbdns) %{_sysconfdir}/rbldns/log/status
683 %attr(755,root,root) %{_sysconfdir}/rbldns/log/run
684 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
685 %config %attr(644,root,root) %{_sysconfdir}/rbldns/env/*
686 %attr(755,root,root) %{_sysconfdir}/rbldns/run
687 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
688 %attr(644,root,root) %{_sysconfdir}/rbldns/root/Makefile
689 %config %attr(644,root,root) %{_sysconfdir}/rbldns/root/data
690 /var/run/service/rbldns
691
692 %files -n axfrdns
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_bindir}/axfrdns*
695 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
696 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/log
697 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/main
698 %attr(644,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/status
699 %attr(755,root,root) %{_sysconfdir}/axfrdns/log/run
700 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
701 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/env/*
702 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
703 %attr(644,root,root) %{_sysconfdir}/axfrdns/Makefile
704 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/tcp
705 /var/run/service/axfrdns
This page took 0.072976 seconds and 4 git commands to generate.