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