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

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

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


Revision 1.4 - (show annotations) (download)
Thu Nov 19 06:27:35 2020 UTC (3 years, 11 months ago) by michel
Branch: MAIN
CVS Tags: e-smith-dnscache-2_6_0-4_el7_sme
Changes since 1.3: +10 -4 lines
* Thu Nov 19 2020 Michel Begue <mab974@gmail.com> 2.6.0-4.sme
- remove rc7.d link [SME: 11097]
- fix actions in e-smith-tinydns-update [SME: 11127]

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