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