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