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

Annotation of /rpms/e-smith-dnscache/sme8/e-smith-dnscache.spec

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


Revision 1.2 - (hide annotations) (download)
Thu Sep 6 17:25:54 2007 UTC (16 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-dnscache-1_0_0-7_el5_sme
Changes since 1.1: +6 -1 lines
Update packages

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

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