/[smeserver]/rpms/e-smith-dnscache/sme7/e-smith-dnscache.spec
ViewVC logotype

Contents of /rpms/e-smith-dnscache/sme7/e-smith-dnscache.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Fri Aug 8 21:29:59 2008 UTC (16 years, 2 months ago) by bytegw
Branch: MAIN
CVS Tags: e-smith-dnscache-1_0_0-13_el4_sme
Changes since 1.5: +9 -1 lines
Updates

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed