1 |
# $Id: e-smith-tinydns.spec,v 1.3 2020/11/19 05:54:59 michel Exp $ |
2 |
|
3 |
Summary: e-smith module to configure tinydns |
4 |
%define name e-smith-tinydns |
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: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: %{name}-%{version}-bz11098_systemd.patch |
14 |
Patch1: %{name}-%{version}-rc7_link-rpm_update.patch |
15 |
Patch2: %{name}-%{version}-bz11098_remove_safelink.patch |
16 |
|
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildRequires: e-smith-devtools |
19 |
BuildArchitectures: noarch |
20 |
Requires: e-smith-base |
21 |
Requires: djbdns |
22 |
Requires: e-smith-lib >= 1.15.1-19 |
23 |
Requires: e-smith-daemontools >= 1.1.0-02 |
24 |
Requires: iptables |
25 |
Obsoletes: tinydns-initscripts |
26 |
AutoReqProv: no |
27 |
|
28 |
%changelog |
29 |
* Mon Nov 30 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-4.sme |
30 |
- remove createlink safesymlink in /etc/rc.d/init.d [SME: 11098] |
31 |
|
32 |
* Thu Nov 19 2020 Michel Begue <mab974@gmail.com> 2.6.0-3.sme |
33 |
- remove rc7.d link [SME: 11098] |
34 |
- fix date in changelog |
35 |
- fix actions in e-smith-tinydns-update [SME: 11159] |
36 |
|
37 |
* Sat Nov 14 2020 Michel Begue <mab974@gmail.com> 2.6.0-2.sme |
38 |
- Move tinydns service to systemd [SME: 11098] |
39 |
- Create e-smith-tinydns-update event [SME: 11159] |
40 |
|
41 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
42 |
- Initial release to sme10 |
43 |
|
44 |
* Sat Jan 24 2015 stephane de labrusse <stephdl@de-labrusse.fr> 2.4.0-8.sme |
45 |
- Revert the patch e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch |
46 |
- [SME: 2388] |
47 |
|
48 |
* Sat Jan 17 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-7.sme |
49 |
- Duplicate hostnames with different IP are not used, a warn in log is printed |
50 |
- The server hostname can not be used by a dhcp client, a warn in log is printed |
51 |
- [SME: 2388] |
52 |
|
53 |
* Fri Jan 9 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-5.sme |
54 |
- Changed the name of /tmp/dhcpd.leases to /tmp/tmpdhcpd.leases [SME: 2388] |
55 |
|
56 |
* Fri Jan 9 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-4.sme |
57 |
- When the dhcpd lease is modified |
58 |
- Do template-expand of /var/service/tinydns/root/data |
59 |
- Do sigus1 of dhcp-dns & dnscache |
60 |
- Forked DHCPparse for parsing the end of lease and remove old entry of dnscache |
61 |
- Require perl-Text-DHCPparse removed |
62 |
- Timestamp added in tinydns, the entry in dnscache is cleared when the lease is over |
63 |
- [SME: 2388] |
64 |
|
65 |
* Wed Jun 18 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-3.sme |
66 |
- add new feature 'Parse dhcpd.leases and feed to tinydns' |
67 |
- e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch |
68 |
- made from the solution of Stefano Zamboni [SME:2388] |
69 |
- Thanks also for all other implicated members in this bug report |
70 |
|
71 |
* Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
72 |
- Roll new stream for sme9 |
73 |
|
74 |
* Thu Jul 29 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-2.sme |
75 |
- Allow use of CNAME in remote hosts [SME: 3132] |
76 |
|
77 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
78 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
79 |
|
80 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
81 |
- Clean up spec so package can be built by koji/plague |
82 |
|
83 |
* Fri Feb 16 2007 Shad L. Lords <slords@mail.com> 1.0.0-7 |
84 |
- Change runsvctrl to sv to support runit v1.7.x [SME: 1179] |
85 |
|
86 |
* Fri Jan 19 2007 Shad L. Lords <slords@mail.com> 1.0.0-6 |
87 |
- Fix last patch to remove warnings. |
88 |
|
89 |
* Sun Jan 14 2007 Shad L. Lords <slords@mail.com> 1.0.0-5 |
90 |
- Make us authoritative for 127.0.0.x [SME: 2223] |
91 |
|
92 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
93 |
- Update to new release naming. No functional changes. |
94 |
- Make Packager generic |
95 |
|
96 |
* Thu Sep 14 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-03 |
97 |
- Ensure that ListenIP property is clear in serveronly mode. [SME: 1912] |
98 |
|
99 |
* Sun Jul 16 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-02 |
100 |
- Make dnslog user creation consistent with e-smith-dnscache. [SME: 1688] |
101 |
|
102 |
* Fri Mar 17 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-01 |
103 |
- Bump stable stream number to 1.0.0 [SME: 1016] |
104 |
|
105 |
* Tue Mar 14 2006 Charlie Brady <charlie_brady@mitel.com> 0.6.0-01 |
106 |
- Roll stable stream version. [SME: 1016] |
107 |
|
108 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.5.0-21 |
109 |
- Remove % from (percent)prep in 0.2.0-01 changelog to keep |
110 |
mezzanine/RPM happy. No code change. |
111 |
|
112 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.5.0-20 |
113 |
- Bump release number only |
114 |
|
115 |
* Wed Aug 17 2005 Charlie Brady <charlieb@e-smith.com> |
116 |
- [0.5.0-19] |
117 |
- Fix access default property for tinydns. [SF: 1246986] |
118 |
- Add missing control/2 script, possibly required for ip-change |
119 |
event handling. |
120 |
|
121 |
* Tue Aug 16 2005 Charlie Brady <charlieb@e-smith.com> |
122 |
- [0.5.0-18] |
123 |
- Add defaults vals for UDPPort and access. [SF: 1246986] |
124 |
|
125 |
* Mon Jun 6 2005 Charlie Brady <charlieb@e-smith.com> |
126 |
- [0.5.0-17] |
127 |
- Add tinydns stats file digester and pretty printer (from |
128 |
http://www.campin.net/DNS/tinydns-readstats.txt). |
129 |
|
130 |
* Mon Jun 6 2005 Charlie Brady <charlieb@e-smith.com> |
131 |
- [0.5.0-16] |
132 |
- Add tinydns log file parser program (from |
133 |
http://tinydns.org/tinydns-log.pl.txt). |
134 |
|
135 |
* Wed Apr 13 2005 Charlie Brady <charlieb@e-smith.com> |
136 |
- [0.5.0-15] |
137 |
- Work around ordering problem between template expansion and |
138 |
hosts db migration scripts in e-smith-hosts rpm, by calling |
139 |
expand-template from tinydns/control/1. TODO: fix properly |
140 |
by moving hosts db munging scripts into migrate fragments. |
141 |
|
142 |
* Mon Apr 11 2005 Charlie Brady <charlieb@e-smith.com> |
143 |
- [0.5.0-14] |
144 |
- Switch to updated calling convention for genfilelist. |
145 |
- Add control/1 script to rebuild data cdb file. Call ./control/1 |
146 |
from run script, before starting tinydns. |
147 |
- Use generic_template_expand action in place of tinydns-conf. |
148 |
Update e-smith-lib dependency. [MN00064130] |
149 |
- Remove unused tinydns-restart. |
150 |
|
151 |
* Tue Mar 15 2005 Charlie Brady <charlieb@e-smith.com> |
152 |
- [0.5.0-13] |
153 |
- Remove unnecessary warning from 20tinydns fragment. |
154 |
[MN00035059] |
155 |
|
156 |
* Thu Mar 10 2005 Charlie Brady <charlieb@e-smith.com> |
157 |
- [0.5.0-12] |
158 |
- Always create generic hosts for internal IPs |
159 |
|
160 |
* Thu Jan 20 2005 Charlie Brady <charlieb@e-smith.com> |
161 |
- [0.5.0-11] |
162 |
- Still another couple of fixes required to 20tinydns fragment. |
163 |
[charlieb MN00035059] |
164 |
|
165 |
* Wed Jan 5 2005 Charlie Brady <charlieb@e-smith.com> |
166 |
- [0.5.0-10] |
167 |
- Further fix and more simplification to 20tinydns fragment. |
168 |
[charlieb MN00035059] |
169 |
|
170 |
* Mon May 31 2004 Michael Soulier <msoulier@e-smith.com> |
171 |
- [0.5.0-09] |
172 |
- Beautified 20tinydns fragment, and s/exit/return, as it was killing |
173 |
initialize-default-databases processing in post-install. |
174 |
[msoulier MN00035059] |
175 |
|
176 |
* Thu May 20 2004 Mark Knox <markk@e-smith.com> |
177 |
- [0.5.0-08] |
178 |
- Don't die in post-install if there's no host record for the server [markk |
179 |
MN00034226] |
180 |
|
181 |
* Tue Jan 13 2004 Michael Soulier <msoulier@e-smith.com> |
182 |
- [0.5.0-07] |
183 |
- Changed the name of the DNSAlias property to ReverseDNS, and reversed the |
184 |
logic, to improve readability. [msoulier 10890] |
185 |
|
186 |
* Tue Jan 13 2004 Michael Soulier <msoulier@e-smith.com> |
187 |
- [0.5.0-06] |
188 |
- Added logic to key off of DNSAlias property in hosts db, so that the host |
189 |
that the PTR record is configured to for reverse DNS lookups can be |
190 |
configured, with the server itself defaulting to its proper name, via a |
191 |
migration fragment. [msoulier 10890] |
192 |
|
193 |
* Tue Jan 13 2004 Michael Soulier <msoulier@e-smith.com> |
194 |
- [0.5.0-05] |
195 |
- Modified the previous fix to ensure that each IP resolves to only one |
196 |
hostname, followed by zero or more aliases. [msoulier 10890] |
197 |
|
198 |
* Mon Jan 12 2004 Michael Soulier <msoulier@e-smith.com> |
199 |
- [0.5.0-04] |
200 |
- Fixed broken reverse DNS lookups for configured hosts. [msoulier 10890] |
201 |
|
202 |
* Thu Aug 28 2003 Michael Soulier <msoulier@e-smith.com> |
203 |
- [0.5.0-03] |
204 |
- Added K* init symlinks for runlevels 0, 1 and 6. [msoulier 9761] |
205 |
|
206 |
* Thu Aug 21 2003 Charlie Brady <charlieb@e-smith.com> |
207 |
- [0.5.0-02] |
208 |
- Replace tinydns-conf-startup action with default db fragments. |
209 |
[charlieb 9553] |
210 |
|
211 |
* Thu Aug 21 2003 Charlie Brady <charlieb@e-smith.com> |
212 |
- [0.5.0-01] |
213 |
- Changing version to development stream number - 0.5.0 |
214 |
|
215 |
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
216 |
- [0.4.0-01] |
217 |
- Changing version to stable stream number - 0.4.0 |
218 |
|
219 |
* Wed Jun 25 2003 Charlie Brady <charlieb@e-smith.com> |
220 |
- [0.3.5-05] |
221 |
- Various fixes to 00functions fragment of tinydns data file. Eliminate |
222 |
duplicate records for local domain. Fix non-empty output of fragment. |
223 |
Re-organise. [charlieb 9169] |
224 |
|
225 |
* Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com> |
226 |
- [0.3.5-04] |
227 |
- Add Requires header to ensure that %pre script can run. [charlieb 6033] |
228 |
|
229 |
* Tue Jun 3 2003 Charlie Brady <charlieb@e-smith.com> |
230 |
- [0.3.5-03] |
231 |
- Change %pre script which creates required userid, so that it uses |
232 |
preferred userids. [charlieb 6033] |
233 |
|
234 |
* Mon Jun 2 2003 Charlie Brady <charlieb@e-smith.com> |
235 |
- [0.3.5-02] |
236 |
- Remove deprecated LocalDomainPrefix handling. [charlieb 4812] |
237 |
|
238 |
* Thu Apr 10 2003 Gordon Rowell <gordonr@e-smith.com> |
239 |
- [0.3.5-01] |
240 |
- Clean out handling of domains now in domains db [gordonr 8097] |
241 |
|
242 |
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
243 |
- [0.3.4-15] |
244 |
- Also use plain A records for domain entries [gordonr 4058] |
245 |
|
246 |
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
247 |
- [0.3.4-14] |
248 |
- Use A, not A/PTR records for the hostname aliases [gordonr 4058] |
249 |
|
250 |
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
251 |
- [0.3.4-13] |
252 |
- Renamed conf-tinydns{,-startup} to tinydns-conf{,-startup} to match |
253 |
tinydns-restart [gordonr 4058] |
254 |
|
255 |
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
256 |
- [0.3.4-12] |
257 |
- Added use esmith::util to tinydns-restart [gordonr 4058] |
258 |
|
259 |
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
260 |
- [0.3.4-11] |
261 |
- Standardised log/run script with mailfront/qmail/etc. [gordonr 4058] |
262 |
|
263 |
* Tue Dec 31 2002 Gordon Rowell <gordonr@e-smith.com> |
264 |
- [0.3.4-10] |
265 |
- Add missing pipe in genfilelist call so sticky bit preserverved |
266 |
on /var/service/tinydns [gordonr 4058] |
267 |
|
268 |
* Wed Dec 4 2002 Charlie Brady <charlieb@e-smith.com> |
269 |
- [0.3.4-09] |
270 |
- Add name server record for local reverse domain. [charlieb 4058] |
271 |
|
272 |
* Tue Dec 3 2002 Charlie Brady <charlieb@e-smith.com> |
273 |
- [0.3.4-08] |
274 |
- Add sticky bit to tinydns service directory, so that svscan starts logging. |
275 |
[charlieb 4058] |
276 |
|
277 |
* Thu Nov 21 2002 Charlie Brady <charlieb@e-smith.com> |
278 |
- [0.3.4-07] |
279 |
- Remove bogus reverse DNS records from tinydns/root/data template - the |
280 |
correct records are implicit in "=" records. [charlieb 4058] |
281 |
- Remove A records for generic hostnames from all except the primary domain. |
282 |
This change is provisional - we will need to discuss the implications of |
283 |
doing this. [charlieb 5805] |
284 |
|
285 |
* Wed Nov 20 2002 Charlie Brady <charlieb@e-smith.com> |
286 |
- [0.3.4-06] |
287 |
- Eliminate use of deprecated db_get_prop from templates for env files. |
288 |
[charlieb 4058] |
289 |
|
290 |
* Wed Nov 20 2002 Charlie Brady <charlieb@e-smith.com> |
291 |
- [0.3.4-05] |
292 |
- Create "down" file to prevent scsvan from starting tinydns at initial |
293 |
boot time (before it is configured), and add rc7.d symlink to bring |
294 |
it up after bootstrap console runs. [charlieb 4058] |
295 |
|
296 |
* Fri Nov 15 2002 Charlie Brady <charlieb@e-smith.com> |
297 |
- [0.3.4-04] |
298 |
- Change default listen address to 127.0.0.1 [charlieb 4058] |
299 |
- Hide irrelevant output in %pre script. |
300 |
|
301 |
* Wed Nov 13 2002 Charlie Brady <charlieb@e-smith.com> |
302 |
- [0.3.4-03] |
303 |
- Add %pre actions to create dns and dnslog users if required. |
304 |
- Move root/data templates into correct directory and change |
305 |
conf-tinydns action script accordingly. |
306 |
- Create ROOT environment file required by tinydns |
307 |
- Create /service symlink. |
308 |
- Remove requirement on e-smith-packetfilter. |
309 |
- All changes done to get into running state. [charlieb 4058] |
310 |
|
311 |
* Tue Nov 12 2002 Charlie Brady <charlieb@e-smith.com> |
312 |
- [0.3.4-02] |
313 |
- Add template fragments for local domain tinydns configuration (from |
314 |
Zac's e-smith-djbdns contrib). [charlieb 4058] |
315 |
- Convert all code to use current preferred APIs. [charlieb 4058] |
316 |
- Update Copyright notices in action scripts. |
317 |
- Change Copyright RPM header to License. |
318 |
- Remove masq template fragment as we now use connection tracking. |
319 |
[charlieb 4499] |
320 |
|
321 |
* Tue Jul 23 2002 Charlie Brady <charlieb@e-smith.com> |
322 |
- [0.3.4-01] |
323 |
- Convert packet filter fragment to iptables syntax [charlieb 1268] |
324 |
|
325 |
* Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com> |
326 |
- [0.3.3-01] |
327 |
- RPM rebuild forced by cvsroot2rpm |
328 |
|
329 |
* Mon Mar 18 2002 Charlie Brady <charlieb@e-smith.com> |
330 |
- [0.3.2-01] |
331 |
- Add missing /var/service/tinydns run scripts. |
332 |
- Add /var/service/tinydns/root directory. |
333 |
|
334 |
* Mon Mar 18 2002 Charlie Brady <charlieb@e-smith.com> |
335 |
- [0.3.1-01] |
336 |
- Rebuild with .../env/IP and .../env/DATASIZE templates included. |
337 |
|
338 |
* Wed Mar 13 2002 Charlie Brady <charlieb@e-smith.com> |
339 |
- [0.3.0-01] |
340 |
- Don't use tinydns-conf, instead include files and templates. |
341 |
- Move config db init to conf-tinydns-startup. |
342 |
- Remove tinydns-startup script. |
343 |
- Reorganise %build to create init symlink, and to build log |
344 |
directory. |
345 |
|
346 |
* Wed Mar 13 2002 Charlie Brady <charlieb@e-smith.com> |
347 |
- [0.2.2-01] |
348 |
- Fix '' quoting of variable in restart script. |
349 |
- Remove SL specific code. |
350 |
|
351 |
* Wed Mar 13 2002 Charlie Brady <charlieb@e-smith.com> |
352 |
- [0.2.1-01] |
353 |
- Test build to verify CVS conversion. |
354 |
|
355 |
* Wed Mar 13 2002 Charlie Brady <charlieb@e-smith.com> |
356 |
- [0.2.0-01] |
357 |
- rollRPM: Rolled version number to 0.2.0-01. Includes patches up to 0.1.5-02. |
358 |
- added mkdir commands to prep section to create all required empty |
359 |
directories. |
360 |
|
361 |
* Fri Oct 12 2001 Charlie Brady <charlieb@e-smith.com> |
362 |
- [0.1.5-02] |
363 |
- Trim changelog previous to 0.1.5-01. |
364 |
|
365 |
* Fri Oct 12 2001 Charlie Brady <charlieb@e-smith.com> |
366 |
- [0.1.5-01] |
367 |
- Rolled version number to 0.1.5-01. Includes patches upto 0.1.4-05. |
368 |
|
369 |
%description |
370 |
SME server enhancement to configure and run the tinydns |
371 |
components of djbdns. |
372 |
|
373 |
%prep |
374 |
%setup |
375 |
%patch0 -p1 |
376 |
%patch1 -p1 |
377 |
%patch2 -p1 |
378 |
|
379 |
%build |
380 |
perl createlinks |
381 |
|
382 |
%install |
383 |
rm -rf $RPM_BUILD_ROOT |
384 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
385 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
386 |
--dir /var/service/tinydns 'attr(0755,root,root)' \ |
387 |
--dir /var/service/tinydns/log 'attr(0755,root,root)' \ |
388 |
--file /var/service/tinydns/run 'attr(0750,root,root)' \ |
389 |
--file /var/service/tinydns/tinydns-log.pl 'attr(0750,root,root)' \ |
390 |
--file /var/service/tinydns/tinydns-readstats 'attr(0750,root,root)' \ |
391 |
--file /var/service/tinydns/control/1 'attr(0750,root,root)' \ |
392 |
--file /var/service/tinydns/control/2 'attr(0750,root,root)' \ |
393 |
--file /var/service/tinydns/log/run 'attr(0750,root,root)' \ |
394 |
--dir /var/log/tinydns 'attr(02755,dnslog,dnslog)' \ |
395 |
--file /var/service/dhcp-dns/dhcp-dns 'attr(0750,root,root)' \ |
396 |
--file /var/service/dhcp-dns/run 'attr(0750,root,root)' \ |
397 |
> %{name}-%{version}-%{release}-filelist |
398 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
399 |
|
400 |
%clean |
401 |
rm -rf $RPM_BUILD_ROOT |
402 |
|
403 |
%pre |
404 |
/sbin/e-smith/create-system-user dns 53 "Name server" /var/service/tinydns /bin/false |
405 |
/sbin/e-smith/create-system-user dnslog 411 "DNS log user" /var/log /bin/false |
406 |
exit 0 |
407 |
|
408 |
%preun |
409 |
|
410 |
%post |
411 |
|
412 |
%postun |
413 |
|
414 |
%files -f %{name}-%{version}-%{release}-filelist |
415 |
%defattr(-,root,root) |