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