1 |
slords |
1.1 |
Summary: e-smith module to configure dnscache |
2 |
|
|
%define name e-smith-dnscache |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.0.0 |
5 |
slords |
1.3 |
%define release 8 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
Group: System Environment/Base |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
Patch0: e-smith-dnscache-1.0.0.validateNameServer.patch |
12 |
|
|
Patch1: e-smith-dnscache-1.0.0-dnscacne_servers.patch |
13 |
|
|
Patch2: e-smith-dnscache-1.0.0-dnscacne_forwarder.patch |
14 |
slords |
1.2 |
Patch3: e-smith-dnscache-1.0.0-sigpipe.patch |
15 |
slords |
1.3 |
Patch4: e-smith-dnscache-1.0.0-cachesize.patch |
16 |
slords |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
|
|
BuildArchitectures: noarch |
18 |
|
|
Requires: e-smith-lib >= 1.15.1-19 |
19 |
|
|
Requires: djbdns |
20 |
|
|
BuildRequires: e-smith-devtools |
21 |
|
|
AutoReqProv: no |
22 |
|
|
|
23 |
|
|
%description |
24 |
|
|
e-smith server enhancement to configure and run dnscache as a |
25 |
|
|
caching nameserver |
26 |
|
|
|
27 |
|
|
%changelog |
28 |
slords |
1.3 |
* Tue Oct 16 2007 Charlie Brady <charlie_brady@mitel.com> 1.0.0-08 |
29 |
|
|
- Increase default CacheSize to 10M, with corresponding increase |
30 |
|
|
in DataSize. [SME: 2371] |
31 |
|
|
|
32 |
slords |
1.2 |
* Thu Sep 6 2007 Charlie Brady <charlie_brady@mitel.com> 1.0.0-07 |
33 |
|
|
- Run dnscache with sigpipe ignored. [SME: 938] |
34 |
|
|
|
35 |
slords |
1.1 |
* Mon May 21 2007 Shad L. Lords <slords@mail.com> 1.0.0-6 |
36 |
|
|
- Ensure Forwarder has value and not just defined [SME: 3013] |
37 |
|
|
|
38 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
39 |
|
|
- Clean up spec so package can be built by koji/plague |
40 |
|
|
|
41 |
|
|
* Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.0.0-5 |
42 |
|
|
- Fix dnscache root server files [SME: 2721] |
43 |
|
|
|
44 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
45 |
|
|
- Update to new release naming. No functional changes. |
46 |
|
|
- Make Packager generic |
47 |
|
|
|
48 |
|
|
* Sun Jul 16 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-03 |
49 |
|
|
- Make dnslog user creation consistent with e-smith-tinydns. [SME: 1688] |
50 |
|
|
|
51 |
|
|
* Sun Apr 30 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-02 |
52 |
|
|
- Don't use NameServer property from networks database if it would |
53 |
|
|
cause feedback loop. [SME: 1343] |
54 |
|
|
|
55 |
|
|
* Thu Mar 16 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-01 |
56 |
|
|
- Roll (proper) stable stream version. [SME: 1016] |
57 |
|
|
|
58 |
|
|
* Tue Mar 14 2006 Charlie Brady <charlie_brady@mitel.com> 0.6.0-01 |
59 |
|
|
- Roll stable stream version. [SME: 1016] |
60 |
|
|
|
61 |
|
|
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.5.1-06 |
62 |
|
|
- Bump release number only |
63 |
|
|
|
64 |
|
|
* Thu Oct 27 2005 Charlie Brady <charlieb@e-smith.com> |
65 |
|
|
- [0.5.1-05] |
66 |
|
|
- Add default name server delegation for domains without a Nameservers property. |
67 |
|
|
[SF: 1339875] |
68 |
|
|
|
69 |
|
|
* Mon Sep 19 2005 Charlie Brady <charlieb@e-smith.com> |
70 |
|
|
- [0.5.1-04] |
71 |
|
|
- Add missing dnscache.forwarder config db record. [SF: 1290325] |
72 |
|
|
|
73 |
|
|
* Thu Sep 15 2005 Charlie Brady <charlieb@e-smith.com> |
74 |
|
|
- [0.5.1-03] |
75 |
|
|
- Expand templates and restart dnscache.forwarder in dns-update and console-save |
76 |
|
|
events. Expand templates in bootstrap-console-save rather than |
77 |
|
|
post-{install,upgrade} events. [SF: 1290325] |
78 |
|
|
- Add support for Forwarder2 property in template for root/servers/@ of |
79 |
|
|
dnscache.forwarder service. |
80 |
|
|
|
81 |
|
|
* Thu Aug 25 2005 Gordon Rowell <gordonr@gormand.com.au> |
82 |
|
|
- [0.5.1-02] |
83 |
|
|
- Configure DNS servers for domains, depending on Nameservers |
84 |
|
|
property: |
85 |
|
|
- localhost: 127.0.0.1 |
86 |
|
|
- corporate: dnscache{Forwarder}, dnscache{Forwarder2} |
87 |
|
|
- internet: <nothing> |
88 |
|
|
- Comma separated list of IPs : To those listed servers |
89 |
|
|
- Add dns-update event and reconfigure dnscache there |
90 |
|
|
- Call initialise-default-databases in dns-update to cater for |
91 |
|
|
domain db migration which might be required due to modification |
92 |
|
|
of the Corporate DNS Servers |
93 |
|
|
- Migrate db and reconfigure dnscache in domain-modify as well, |
94 |
|
|
since we might have changed nameservers. |
95 |
|
|
|
96 |
|
|
* Thu Aug 25 2005 Charlie Brady <charlieb@e-smith.com> |
97 |
|
|
- [0.5.1-01] |
98 |
|
|
- Roll new development stream prior to reworking Nameservers settings - 0.5.1 |
99 |
|
|
|
100 |
|
|
* Tue Aug 2 2005 Shad Lords <slords@email.com> |
101 |
|
|
- [0.5.0-23] |
102 |
|
|
- Add TCPPort/UDPPort/access properties to dnscache [SF: 1246986] |
103 |
|
|
- Add COPYING file to distribution |
104 |
|
|
|
105 |
|
|
* Wed Jul 6 2005 Charlie Brady <charlieb@e-smith.com> |
106 |
|
|
- [0.5.0-22] |
107 |
|
|
- Only delegate domains if SystemPrimaryDomain or if NameServer |
108 |
|
|
property is defined. [SF: 1233662] |
109 |
|
|
|
110 |
|
|
* Mon Jun 6 2005 Charlie Brady <charlieb@e-smith.com> |
111 |
|
|
- [0.5.0-21] |
112 |
|
|
- Add dnscache log file analysis script |
113 |
|
|
(from http://www.hungry.com/~fn/dnscache-log.pl.txt). |
114 |
|
|
|
115 |
|
|
* Mon Jun 6 2005 Charlie Brady <charlieb@e-smith.com> |
116 |
|
|
- [0.5.0-20] |
117 |
|
|
- Update ICANN root hint name server address list |
118 |
|
|
(s/128.9.0.107/192.228.79.201/). The 128.9.0.107 address will continue |
119 |
|
|
answering queries until Jan, 2006. |
120 |
|
|
|
121 |
|
|
* Fri May 13 2005 Charlie Brady <charlieb@e-smith.com> |
122 |
|
|
- [0.5.0-19] |
123 |
|
|
- Fix forwarder run script so that logs are captured. |
124 |
|
|
|
125 |
|
|
* Mon May 9 2005 Charlie Brady <charlieb@e-smith.com> |
126 |
|
|
- [0.5.0-18] |
127 |
|
|
- Expand dnscache.forwarder service's config in post-install and post-upgrade. |
128 |
|
|
|
129 |
|
|
* Thu May 5 2005 Charlie Brady <charlieb@e-smith.com> |
130 |
|
|
- [0.5.0-17] |
131 |
|
|
- Fix problem with migration of legacy Forwarder properties (type |
132 |
|
|
not specified). |
133 |
|
|
|
134 |
|
|
* Tue Apr 26 2005 Charlie Brady <charlieb@e-smith.com> |
135 |
|
|
- [0.5.0-16] |
136 |
|
|
- Really fix creation of root/ip/127 access list file (i.e. put it |
137 |
|
|
in the correct place). |
138 |
|
|
|
139 |
|
|
* Tue Apr 26 2005 Charlie Brady <charlieb@e-smith.com> |
140 |
|
|
- [0.5.0-15] |
141 |
|
|
- Fix creation of ip/127 access list file. |
142 |
|
|
|
143 |
|
|
* Wed Apr 20 2005 Charlie Brady <charlieb@e-smith.com> |
144 |
|
|
- [0.5.0-14] |
145 |
|
|
- Create ip/127 access allow file for dnscache.forwarder service. |
146 |
|
|
|
147 |
|
|
* Wed Apr 20 2005 Charlie Brady <charlieb@e-smith.com> |
148 |
|
|
- [0.5.0-13] |
149 |
|
|
- Adding missing execute permission on new run scripts. |
150 |
|
|
- Fix errors in config template for forwarding dnscache. |
151 |
|
|
|
152 |
|
|
* Wed Apr 20 2005 Charlie Brady <charlieb@e-smith.com> |
153 |
|
|
- [0.5.0-12] |
154 |
|
|
- Add missing /service symlink from previous change. |
155 |
|
|
|
156 |
|
|
* Wed Apr 20 2005 Charlie Brady <charlieb@e-smith.com> |
157 |
|
|
- [0.5.0-11] |
158 |
|
|
- Add missing file tree from previous change. |
159 |
|
|
|
160 |
|
|
* Wed Apr 20 2005 Charlie Brady <charlieb@e-smith.com> |
161 |
|
|
- [0.5.0-10] |
162 |
|
|
- Add second dnscache instance which does all Internet queries. |
163 |
|
|
We run the first instance with a small cache, which we |
164 |
|
|
can happily lose whenever we might have changed any delegations. |
165 |
|
|
|
166 |
|
|
* Mon Apr 11 2005 Charlie Brady <charlieb@e-smith.com> |
167 |
|
|
- [0.5.0-09] |
168 |
|
|
- Fix bug in delegation of local networks with NameServer |
169 |
|
|
property. |
170 |
|
|
- Fix bug in access list configuration. |
171 |
|
|
|
172 |
|
|
* Tue Apr 5 2005 Charlie Brady <charlieb@e-smith.com> |
173 |
|
|
- [0.5.0-08] |
174 |
|
|
- Avoid chdir in run script. |
175 |
|
|
- Allow delegation to an alternative listen address for tinydns. |
176 |
|
|
- Avoid unnecessary delegation for 127.in-addr.arpa. |
177 |
|
|
|
178 |
|
|
* Wed Mar 30 2005 Charlie Brady <charlieb@e-smith.com> |
179 |
|
|
- [0.5.0-07] |
180 |
|
|
- Fix pathname to root/servers/@ file in createlinks. |
181 |
|
|
|
182 |
|
|
* Wed Mar 30 2005 Charlie Brady <charlieb@e-smith.com> |
183 |
|
|
- [0.5.0-06] |
184 |
|
|
- Fix a few deficiencies with new perl run script. |
185 |
|
|
|
186 |
|
|
* Wed Mar 30 2005 Charlie Brady <charlieb@e-smith.com> |
187 |
|
|
- [0.5.0-05] |
188 |
|
|
- Use perl run script which does all env setup, access control and zone |
189 |
|
|
delegation without any templates. |
190 |
|
|
|
191 |
|
|
* Wed Mar 30 2005 Charlie Brady <charlieb@e-smith.com> |
192 |
|
|
- [0.5.0-04] |
193 |
|
|
- Fix delegation of reverse lookup of local network. [MN00062867] |
194 |
|
|
- Use generic_template_expand and adjust-services actions in place of |
195 |
|
|
dnscache-conf. Update e-smith-lib dependency. [MN00064130, MN00065576] |
196 |
|
|
- Update genfilelist call and move to install section. |
197 |
|
|
|
198 |
|
|
* Wed Feb 23 2005 Charlie Brady <charlieb@e-smith.com> |
199 |
|
|
- [0.5.0-03] |
200 |
|
|
- Don't run dnscache-conf at post-install, when $LocalIP is undefined. |
201 |
|
|
[MN00065717] |
202 |
|
|
|
203 |
|
|
* Tue Feb 22 2005 Charlie Brady <charlieb@e-smith.com> |
204 |
|
|
- [0.5.0-02] |
205 |
|
|
- Remove any left-behind env/FORWARDONLY file in post scriptlet, so we can |
206 |
|
|
later simplify config. [charlieb MN00045628] |
207 |
|
|
- Don't attempt to configure dnscache in post-install and post-upgrade. |
208 |
|
|
[MN00065717] |
209 |
|
|
- Only delegate reverse name lookup when we know of a suitable |
210 |
|
|
name server. [MN00062867] |
211 |
|
|
|
212 |
|
|
* Fri Jan 21 2005 Charlie Brady <charlieb@e-smith.com> |
213 |
|
|
- [0.5.0-01] |
214 |
|
|
- Changing version to development stream number - 0.5.0 |
215 |
|
|
|
216 |
|
|
* Tue Jan 4 2005 Michael Soulier <msoulier@e-smith.com> |
217 |
|
|
- [0.4.0-01] |
218 |
|
|
- rolling to stable - 0.4.0 |
219 |
|
|
|
220 |
|
|
* Thu Oct 21 2004 Charlie Brady <charlieb@e-smith.com> |
221 |
|
|
- [0.3.0-04] |
222 |
|
|
- Be sure to remove any left-behind env/FORWARDONLY file. [charlieb MN00045628] |
223 |
|
|
|
224 |
|
|
* Thu Aug 26 2004 Michael Soulier <msoulier@e-smith.com> |
225 |
|
|
- [0.3.0-03] |
226 |
|
|
- Updated dnscache-conf for last change. [msoulier MN00045628] |
227 |
|
|
|
228 |
|
|
* Thu Aug 26 2004 Michael Soulier <msoulier@e-smith.com> |
229 |
|
|
- [0.3.0-02] |
230 |
|
|
- Updated to handle FORWARDONLY env var properly, to prevent unwanted requests |
231 |
|
|
for recursion. [msoulier MN00045628] |
232 |
|
|
|
233 |
|
|
* Thu Aug 26 2004 Michael Soulier <msoulier@e-smith.com> |
234 |
|
|
- [0.3.0-01] |
235 |
|
|
- rolling to dev - 0.3.0 |
236 |
|
|
|
237 |
|
|
* Wed Aug 27 2003 Michael Soulier <msoulier@e-smith.com> |
238 |
|
|
- [0.2.0-05] |
239 |
|
|
- Updated the shutdown ordering, and added runlevel 1. [msoulier 9761] |
240 |
|
|
|
241 |
|
|
* Mon Aug 25 2003 Michael Soulier <msoulier@e-smith.com> |
242 |
|
|
- [0.2.0-04] |
243 |
|
|
- Moved the rc7 symlink creation to createlinks. [msoulier 9761] |
244 |
|
|
|
245 |
|
|
* Mon Aug 25 2003 Michael Soulier <msoulier@e-smith.com> |
246 |
|
|
- [0.2.0-03] |
247 |
|
|
- Added K* script links for runlevels 0 and 6 for dnscache. [msoulier 9761] |
248 |
|
|
|
249 |
|
|
* Tue Jul 15 2003 Charlie Brady <charlieb@e-smith.com> |
250 |
|
|
- [0.2.0-02] |
251 |
|
|
- Remove bogus "Requires: supervise-scripts". [charlieb 9448] |
252 |
|
|
|
253 |
|
|
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
254 |
|
|
- [0.2.0-01] |
255 |
|
|
- Changing version to stable stream number - 0.2.0 |
256 |
|
|
|
257 |
|
|
* Tue Jun 17 2003 Charlie Brady <charlieb@e-smith.com> |
258 |
|
|
- [0.1.8-21] |
259 |
|
|
- Fix restart of dnscache. [charlieb 8745] |
260 |
|
|
|
261 |
|
|
* Fri Jun 13 2003 Charlie Brady <charlieb@e-smith.com> |
262 |
|
|
- [0.1.8-20] |
263 |
|
|
- Restart dnscache except after configuration is complete, except for |
264 |
|
|
certain events (when dnscache will not be running). [gordonr 6762] |
265 |
|
|
- If forwarder is enabled, don't delegate any lookups to local tinydns. |
266 |
|
|
[charlieb 9032] |
267 |
|
|
- Change Forwarder1 property to Forwarder. Do migration of legacy values here - |
268 |
|
|
previously done in fragment in e-smith-base RPM. [charlieb 9032] |
269 |
|
|
|
270 |
|
|
* Fri Jun 6 2003 Charlie Brady <charlieb@e-smith.com> |
271 |
|
|
- [0.1.8-19] |
272 |
|
|
- Add "down" file so that dnscache does not start until rc7.d script |
273 |
|
|
runs. [charlieb 8745] |
274 |
|
|
|
275 |
|
|
* Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com> |
276 |
|
|
- [0.1.8-18] |
277 |
|
|
- Use create-system-user in %pre to create required users. [charlieb 6033] |
278 |
|
|
|
279 |
|
|
* Mon Apr 14 2003 Gordon Rowell <gordonr@e-smith.com> |
280 |
|
|
- [0.1.8-17] |
281 |
|
|
- Add template for servers/@ and handle DNS forwarders [gordonr 8179] |
282 |
|
|
- Modify template for env/FORWARDONLY to handle DNS forwarders [gordonr 8179] |
283 |
|
|
- Restart dnscache in console-save in case we just changed forwarding |
284 |
|
|
policy [gordonr 8179] |
285 |
|
|
|
286 |
|
|
* Mon Apr 7 2003 Charlie Brady <charlieb@e-smith.com> |
287 |
|
|
- [0.1.8-16] |
288 |
|
|
- Well, it would help if the rc7.d symlink were named correctly. [charlieb 4085] |
289 |
|
|
|
290 |
|
|
* Tue Apr 1 2003 Charlie Brady <charlieb@e-smith.com> |
291 |
|
|
- [0.1.8-15] |
292 |
|
|
- Add rc7.d script so that dnscache comes up at boot time. [charlieb 4058] |
293 |
|
|
|
294 |
|
|
* Thu Mar 27 2003 Charlie Brady <charlieb@e-smith.com> |
295 |
|
|
- [0.1.8-14] |
296 |
|
|
- Add/delete dnscache delegations for off-site domains/networks if we |
297 |
|
|
know about them. [charlieb 7845] |
298 |
|
|
|
299 |
|
|
* Thu Mar 13 2003 Charlie Brady <charlieb@e-smith.com> |
300 |
|
|
- [0.1.8-13] |
301 |
|
|
- Add default db fragments to defaults, not default :-) [charlieb 7632] |
302 |
|
|
|
303 |
|
|
* Tue Mar 11 2003 Charlie Brady <charlieb@e-smith.com> |
304 |
|
|
- [0.1.8-12] |
305 |
|
|
- Add default db fragments, so dnscache is enabled by default. |
306 |
|
|
Updated e-smithlib dependency. [charlieb 7632] |
307 |
|
|
|
308 |
|
|
* Thu Jan 30 2003 Charlie Brady <charlieb@e-smith.com> |
309 |
|
|
- [0.1.8-11] |
310 |
|
|
- Replace Copyright header in spec file with "License: GPL". [charlieb] |
311 |
|
|
- Add /etc/resolv.conf template nameserver fragment. Corresponding |
312 |
|
|
fragment must be removed from e-smith-base. [charlieb 4058]. |
313 |
|
|
- Remove debugging print from dnscache-conf. [charlieb 4058] |
314 |
|
|
- Add 127.in-addr.arpa file - it is constant. [charlieb 4058] |
315 |
|
|
|
316 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
317 |
|
|
- [0.1.8-10] |
318 |
|
|
- Updated address for J.ROOT-SERVERS.NET [gordonr 5530] |
319 |
|
|
|
320 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
321 |
|
|
- [0.1.8-09] |
322 |
|
|
- Skip servers/@ in dnscache-conf - the root name servers :-) [gordonr 4058] |
323 |
|
|
|
324 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
325 |
|
|
- [0.1.8-08] |
326 |
|
|
- Add service domain delegation [gordonr 4058] |
327 |
|
|
|
328 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
329 |
|
|
- [0.1.8-07] |
330 |
|
|
- Delegate domain-remote entries to the server defined in the |
331 |
|
|
Server property of that record. |
332 |
|
|
- Don't delegate remote subnets to the local nameserver - just |
333 |
|
|
skip them for now [gordonr 4058] |
334 |
|
|
|
335 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
336 |
|
|
- [0.1.8-06] |
337 |
|
|
- Wrong bug number last time |
338 |
|
|
- Standardised log/run script with mailfront/qmail/etc. [gordonr 4058] |
339 |
|
|
|
340 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
341 |
|
|
- [0.1.8-05] |
342 |
|
|
- Standardised log/run script with mailfront/qmail/etc. [gordonr 6365] |
343 |
|
|
|
344 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
345 |
|
|
- [0.1.8-04] |
346 |
|
|
- Call dnscache-conf in post-{install,upgrade} - we need this running |
347 |
|
|
from the start, even if we need to change details after the bootstrap |
348 |
|
|
console [gordonr 6365] |
349 |
|
|
|
350 |
|
|
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
351 |
|
|
- [0.1.8-03] |
352 |
|
|
- Add missing pipe in genfilelist call so sticky bit preserverved |
353 |
|
|
on /var/service/dnscache [gordonr 4058] |
354 |
|
|
|
355 |
|
|
* Tue Dec 3 2002 Charlie Brady <charlieb@e-smith.com> |
356 |
|
|
- [0.1.8-02] |
357 |
|
|
- Add sticky bit to dnscache service directory, so that svscan starts logging. |
358 |
|
|
- Create /service symlink, so that supervise of dnscache is started by svscan. |
359 |
|
|
[charlieb 4058] |
360 |
|
|
|
361 |
|
|
* Thu Nov 21 2002 Charlie Brady <charlieb@e-smith.com> |
362 |
|
|
- [0.1.8-01] |
363 |
|
|
- Rebuild to catch the createlinks update missed by last co2rpm build to 0.1.8 |
364 |
|
|
|
365 |
|
|
* Thu Nov 21 2002 Charlie Brady <charlieb@e-smith.com> |
366 |
|
|
- [0.1.7-02] |
367 |
|
|
- Added root/servers/@ file - we will need to update this some time, as the |
368 |
|
|
list recently changed. |
369 |
|
|
- Rewrote conf-dnscache to use new DB access classes. Renamed to dnscache-conf. |
370 |
|
|
- Add conf-dnscache links to domain-create and domain-delete events. |
371 |
|
|
- Use links for acl files and delegation files. |
372 |
|
|
- Add code to do local domain delegation (to tinydns). |
373 |
|
|
- We currently do lame delegation for local networks reverse lookup. We |
374 |
|
|
need to fix this, but currently can't do any better - we don't know any |
375 |
|
|
name servers for those reverse domains. |
376 |
|
|
- Add sticky bit to dnscache service directory |
377 |
|
|
- Hide output of "id" in %pre script. |
378 |
|
|
[charlieb 4058] |
379 |
|
|
|
380 |
|
|
* Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com> |
381 |
|
|
- [0.1.7-01] |
382 |
|
|
- RPM rebuild forced by cvsroot2rpm |
383 |
|
|
|
384 |
|
|
* Mon Apr 8 2002 Michael Schwern <schwern@e-smith.com> |
385 |
|
|
- [0.1.6-01] |
386 |
|
|
- Update access list manipulation to handle arbitrary bitmasks. |
387 |
|
|
|
388 |
|
|
* Wed Mar 13 2002 Charlie Brady <charlieb@e-smith.com> |
389 |
|
|
- [0.1.4-01] |
390 |
|
|
- Use correct esmith::utils function names for netmask manip stuff |
391 |
|
|
- Remove trailing dot from network prefixes before creating access |
392 |
|
|
allow files |
393 |
|
|
|
394 |
|
|
* Wed Mar 13 2002 Charlie Brady <charlieb@e-smith.com> |
395 |
|
|
- [0.1.3-01] |
396 |
|
|
- Allow dnscache/dnslog users to already exist in %pre script |
397 |
|
|
- Remove bogus -g args from useradd commands |
398 |
|
|
- Update conf-dnscache action script to set up permission to |
399 |
|
|
query dnscache |
400 |
|
|
- Require supervise-scripts |
401 |
|
|
|
402 |
|
|
* Wed Mar 13 2002 Charlie Brady <charlieb@e-smith.com> |
403 |
|
|
- [0.1.2-01] |
404 |
|
|
- Create dnscache and dnslog users |
405 |
|
|
- Fix path error in conf-dnscache |
406 |
|
|
- Create /var/log/dnscache directory with correct ownership |
407 |
|
|
|
408 |
|
|
* Tue Mar 12 2002 Charlie Brady <charlieb@e-smith.com> |
409 |
|
|
- [0.1.1-01] |
410 |
|
|
- Initial |
411 |
|
|
|
412 |
|
|
%prep |
413 |
|
|
%setup |
414 |
|
|
%patch0 -p1 |
415 |
|
|
%patch1 -p1 |
416 |
|
|
%patch2 -p1 |
417 |
slords |
1.2 |
%patch3 -p1 |
418 |
slords |
1.3 |
%patch4 -p1 |
419 |
slords |
1.1 |
|
420 |
|
|
%build |
421 |
|
|
perl createlinks |
422 |
|
|
mkdir -p root/service |
423 |
|
|
ln -s /var/service/dnscache root/service |
424 |
|
|
ln -s /var/service/dnscache.forwarder root/service |
425 |
|
|
rm -f %{name}-%{version}-%{release}-filelist |
426 |
|
|
|
427 |
|
|
touch root/var/service/dnscache/down |
428 |
|
|
mkdir -p root/var/log/dnscache |
429 |
|
|
mkdir -p root/var/log/dnscache.forwarder |
430 |
|
|
mkdir -p root/var/service/dnscache.forwarder/root/ip |
431 |
|
|
touch root/var/service/dnscache.forwarder/root/ip/127 |
432 |
|
|
|
433 |
|
|
|
434 |
|
|
%pre |
435 |
|
|
/sbin/e-smith/create-system-user dnscache 410 \ |
436 |
|
|
"DNScache user" /var/service/dnscache /bin/false |
437 |
|
|
/sbin/e-smith/create-system-user dnslog 411 \ |
438 |
|
|
"DNS log user" /var/log /bin/false |
439 |
|
|
|
440 |
|
|
%post |
441 |
|
|
# Remove any left over env/FORWARDONLY file |
442 |
|
|
rm -f /var/service/dnscache/env/FORWARDONLY |
443 |
|
|
|
444 |
|
|
%install |
445 |
|
|
rm -rf $RPM_BUILD_ROOT |
446 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
447 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
448 |
|
|
--dir /var/service/dnscache 'attr(0755,root,root)' \ |
449 |
|
|
--dir /var/service/dnscache/log 'attr(0755,root,root)' \ |
450 |
|
|
--file /var/service/dnscache/run 'attr(0750,root,root)' \ |
451 |
|
|
--file /var/service/dnscache/dnscache-log.pl 'attr(0750,root,root)' \ |
452 |
|
|
--file /var/service/dnscache/log/run 'attr(0750,root,root)' \ |
453 |
|
|
--dir /var/log/dnscache 'attr(02755,dnslog,dnslog)' \ |
454 |
|
|
--dir /var/log/dnscache.forwarder 'attr(02755,dnslog,dnslog)' \ |
455 |
|
|
--file /var/service/dnscache.forwarder/run 'attr(0750,root,root)' \ |
456 |
|
|
--file /var/service/dnscache.forwarder/log/run 'attr(0750,root,root)' \ |
457 |
|
|
> %{name}-%{version}-%{release}-filelist |
458 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
459 |
|
|
|
460 |
|
|
%clean |
461 |
|
|
rm -rf $RPM_BUILD_ROOT |
462 |
|
|
|
463 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
464 |
|
|
%defattr(-,root,root) |