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