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

Annotation 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.4 - (hide annotations) (download)
Wed Jun 18 20:41:55 2008 UTC (16 years, 5 months ago) by bytegw
Branch: MAIN
CVS Tags: e-smith-dnscache-1_0_0-11_el4_sme
Changes since 1.3: +19 -1 lines
Updates

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

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