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