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