1 |
# $Id: smeserver-spamassassin.spec,v 1.19 2013/12/21 06:03:35 wellsi Exp $ |
2 |
|
3 |
Summary: SME Server - spamassassin anti-spam module |
4 |
%define name smeserver-spamassassin |
5 |
Name: %{name} |
6 |
%define version 2.2.0 |
7 |
%define release 13 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
Patch1: smeserver-spamassassin-2.2.0-ServiceNameFix.patch |
14 |
Patch2: smeserver-spamassassin-2.2.0-AWL.patch |
15 |
Patch3: smeserver-spamassassin-2.2.0-cronjobs.patch |
16 |
Patch5: smeserver-spamassassin-2.2.0-bootstrap-console-save-removal.patch |
17 |
Patch6: smeserver-spamassassin-2.2.0-pyzor-timeout.patch |
18 |
Patch8: smeserver-spamassassin-2.2.0-okLanguages.patch |
19 |
Patch9: smeserver-spamassassin-2.2.0-refreshclam.patch |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
Requires: e-smith-email >= 4.13.0-38 |
22 |
Requires: headermatch |
23 |
Requires: spamassassin >= 3.3.0 |
24 |
Requires: perl(Crypt::OpenSSL::Bignum) |
25 |
Requires: perl(IO::Socket::INET6) |
26 |
Requires: perl(IP::Country) |
27 |
Requires: perl(Net::DNS) >= 0.34-1 |
28 |
Requires: perl(Net::Ident) |
29 |
Requires: perl(Compress::Zlib) |
30 |
Requires: perl(Mail::DKIM) |
31 |
Requires: ucspi-tcp daemontools |
32 |
Requires: e-smith-lib >= 1.13.1-90 |
33 |
Requires: e-smith-base >= 4.13.16 |
34 |
Requires: e-smith-qmail >= 1.9.0-09sme02 |
35 |
Requires: razor-agents >= 2.61-1 |
36 |
Requires: DCC |
37 |
Requires: pyzor |
38 |
Obsoletes: FuzzyOcr |
39 |
Obsoletes: e-smith-spamassassin |
40 |
Provides: e-smith-spamassassin |
41 |
BuildArchitectures: noarch |
42 |
BuildRequires: e-smith-devtools >= 1.11.0-12 |
43 |
AutoReqProv: no |
44 |
|
45 |
%description |
46 |
SME Server - spamassassin anti-spam module |
47 |
|
48 |
%changelog |
49 |
* Thu Jan 2 2014 Ian Wells <esmith@wellsi.com> 2.2.0-13.sme |
50 |
- Include /usr/bin/refreshclam [SME: 8107] |
51 |
|
52 |
* Fri Dec 20 2013 Ian Wells <esmith@wellsi.com> 2.2.0-12 |
53 |
- Remove workarounds for how qpsmtpd tags spam email [SME: 8014] |
54 |
|
55 |
* Fri Jul 5 2013 Ian Wells <esmith@wellsi.com> 2.2.0-11 |
56 |
- Load TextCat plugin if ok_languages is enabled [SME: 7048] |
57 |
|
58 |
* Sun May 19 2013 chris burnat <devlist@burnat.com> 2.2.0-10 |
59 |
- Fix how qpsmtpd tags spam email, codes by Charlie Brady [SME: 5603] |
60 |
|
61 |
* Sun Apr 8 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-9 |
62 |
- Add template fragment for pyzor timeout [SME: 6896] |
63 |
|
64 |
* Fri Jan 20 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-8 |
65 |
- Actually apply patch to remove spamd restart from bootstrap-console-save event [SME: 6717] |
66 |
|
67 |
* Fri Dec 23 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-7 |
68 |
- Remove spamd restart from bootstrap-console-save event [SME: 6717] |
69 |
|
70 |
* Sat Aug 7 2010 Ian Wells <esmith@wellsi.com> 2.2.0-6.sme |
71 |
- Work around how qpsmtpd tags spam email, by Michael McCarn [SME: 5603] |
72 |
|
73 |
* Mon Apr 19 2010 Shad L. Lords <slords@mail.com> 2.2.0-5.sme |
74 |
- Remove cron.daily jobs that are no longer needed |
75 |
- Previous patch make spamassassin restart correctly [SME: 3304] |
76 |
- Newer spamassassin imports keys on install [SME: 5889] |
77 |
|
78 |
* Wed Feb 17 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-4.sme |
79 |
- Requires SpamAssassin 3.3.0 [SME: 5741] |
80 |
- Remove FuzzyOcr [SME: 5771] |
81 |
- Use ATrpm package (partially remove previous patch) |
82 |
|
83 |
* Tue Feb 16 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-3.sme |
84 |
- Requires SpamAssassin 3.3.0 [SME: 5741] |
85 |
- Remove FuzzyOcr [SME: 5771] |
86 |
- Run sa-update every two hours and check restart every hour |
87 |
- Redirect cron job output to logfile to avoid mail noise |
88 |
|
89 |
* Tue Nov 25 2008 Giacomo Sanchietti <giacomo@nethesis.it> 2.2.0-2.sme |
90 |
- Fix invalid service name in sa-update [SME: 3304] |
91 |
|
92 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
93 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
94 |
|
95 |
* Sat Mar 9 2008 chris burnat <devlist@burnat.com> 1.4.0-18 |
96 |
- Edit and rename deprecated template fragment [SME: 3857] |
97 |
|
98 |
* Tue Dec 25 2007 Shad L. Lords <slords@mail.com> 1.4.0-17 |
99 |
- Import all spamassassin keys correctly [SME: 3206] |
100 |
|
101 |
* Sat Sep 8 2007 Shad L. Lords <slords@mail.com> 1.4.0-16 |
102 |
- Import spamassassin keys correctly [SME: 3206] |
103 |
|
104 |
* Thu Sep 6 2007 Shad L. Lords <slords@mail.com> 1.4.0-15 |
105 |
- Import spamassassin keys if sa_update is found [SME: 3206] |
106 |
- Restart spamassassin if update successful [SME: 3351] |
107 |
|
108 |
* Sun Jun 24 2007 Shad L. Lords <slords@mail.com> 1.4.0-14 |
109 |
- Fix log (lint) noise [SME: 3100] |
110 |
|
111 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
112 |
- Clean up spec so package can be built by koji/plague |
113 |
|
114 |
* Sun Feb 18 2007 Shad L. Lords <slords@mail.com> 1.4.0-13 |
115 |
- Add FuzzyOcr to spamassassin to detect graphic spam [SME: 1985] |
116 |
|
117 |
* Fri Feb 16 2007 Shad L. Lords <slords@mail.com> 1.4.0-12 |
118 |
- Change runsvctrl to sv to support runit v1.7.x [SME: 2486] |
119 |
|
120 |
* Wed Jan 24 2007 Shad L. Lords <slords@mail.com> 1.4.0-11 |
121 |
- Add requires for new spamassassin modules |
122 |
|
123 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
124 |
- Update to new release naming. No functional changes. |
125 |
- Make Packager generic |
126 |
|
127 |
* Fri Nov 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-09 |
128 |
- Only match X-Spam-Status in headers, via headermatch [SME: 1924] |
129 |
|
130 |
* Thu Jul 13 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-08 |
131 |
- Anchor X-Spam-Status check to start of line [SME: 1712] |
132 |
|
133 |
* Wed Jun 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-07 |
134 |
- Missing space in last change [SME: 1571] |
135 |
|
136 |
* Wed Jun 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-06 |
137 |
- Add check for spamassassin{UseAutoWhitelist}, defaulting to 0 (off) |
138 |
[SME: 1571] |
139 |
|
140 |
* Fri Jun 9 2006 Shad L. Lords <slords@mail.com> 1.4.0-05 |
141 |
- Add path/perm for auto_whitelist [SME: 1571] |
142 |
|
143 |
* Fri Jun 9 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-04 |
144 |
- Adjust perl dependencies to perl module rather than RPM [SME: 1548] |
145 |
|
146 |
* Fri Jun 9 2006 Gordon Rowell <gordonr@gormand.com.au> 1.4.0-03 |
147 |
- Correct previous changelog and rebuild [SME: 1548] |
148 |
|
149 |
* Wed Jun 7 2006 Shad L. Lords <slords@mail.com> 1.4.0-02 |
150 |
- Update config for spamassassin 3.10+ [SME: 1548] |
151 |
|
152 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.4.0-01 |
153 |
- Roll stable stream version. [SME: 1016] |
154 |
|
155 |
* Wed Feb 22 2006 Gavin Weight <gweight@gmail.com> 1.3.0-07 |
156 |
- Renamed 40customScore_BAYES_90 to 40customScore_BAYES_95, |
157 |
Edited 40customScore_BAYES_95 to change 90 to 95. [SME: 836] |
158 |
|
159 |
* Tue Feb 7 2006 Shad L. Lords <slords@mail.com> 1.3.0-06 |
160 |
- Add db default for wbl.global_to|type [SME: 693] |
161 |
|
162 |
* Sat Jan 28 2006 Shad L. Lords <slords@mail.com> 1.3.0-05 |
163 |
- Add global white/black lists for to addresses [SME: 594] |
164 |
|
165 |
* Thu Nov 03 2005 Filippo Carletti <carletti@mobilia.it> 1.3.0-04 |
166 |
- Avoid runit spinning if spamd is disabled [SF: 1312897] |
167 |
|
168 |
* Wed Nov 02 2005 Filippo Carletti <carletti@mobilia.it> 1.3.0-03sme01 |
169 |
- Start spamd only if spam filter is enabled [SF: 1312897] |
170 |
|
171 |
* Mon Oct 10 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-03 |
172 |
- Migrate SortSpam property from 0/1 to disabled/enabled [SF: 1321319] |
173 |
|
174 |
* Fri Oct 7 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-02 |
175 |
- Clear qmail{DeliveryInstruction} and qmail{DeliveryType} if |
176 |
they were set for the obsoleted sortspam [SF: 1315596] |
177 |
|
178 |
* Fri Sep 23 2005 Gordon Rowell <gordonr@gormand.com.au> |
179 |
- [1.3.0] |
180 |
- Package renamed to smeserver-spamassassin |
181 |
|
182 |
* Fri Sep 23 2005 Gordon Rowell <gordonr@gormand.com.au> |
183 |
- [1.1.0-08sme01] |
184 |
- Simplify .qmail template fragment and add Requires header |
185 |
for recent e-smith-qmail since we need 00setup from it [SF: 1252336] |
186 |
|
187 |
* Tue Aug 2 2005 Shad Lords <slords@email.com> |
188 |
- [1.1.0-08] |
189 |
- Prepare for change of default database location. [SF: 1216546] |
190 |
|
191 |
* Tue May 31 2005 Charlie Brady <charlieb@e-smith.com> |
192 |
- [1.1.0-07] |
193 |
- Default spamassassin{RejectLevel}==0 [Gordon SF:1202399] |
194 |
|
195 |
* Fri May 13 2005 Charlie Brady <charlieb@e-smith.com> |
196 |
- [1.1.0-06] |
197 |
- Another update from Gordon. |
198 |
- Use condredirect (redirecting to $USERNAME-junkmail) |
199 |
instead of sortspam [SF:1200336] |
200 |
- Provide template for .qmail-junkmail |
201 |
- Remove db defaults for qmail{DeliveryType,DeliveryInstruction}. |
202 |
We don't want one delivery instruction, we want as many as the |
203 |
user has requested. Each instruction should be enabled/disabled |
204 |
on a global and per-user basis, as per SortSpam |
205 |
- TODO: Simplify e-smithForward20 in e-smith-email |
206 |
|
207 |
* Fri May 13 2005 Charlie Brady <charlieb@e-smith.com> |
208 |
- [1.1.0-05] |
209 |
- Really add the new files in last patch from Shad/Gordon. |
210 |
|
211 |
* Thu May 5 2005 Charlie Brady <charlieb@e-smith.com> |
212 |
- [1.1.0-04] |
213 |
- Various contributions from Shad Lords and Gordon Rowell, as follows |
214 |
- Add sortspam from Shad Lords' e-smith-spamassassin |
215 |
- Add lots of config entries and local.cf templates, also from Shad |
216 |
- Modified templates to match new config db names |
217 |
- Add migrate fragments |
218 |
|
219 |
* Wed Apr 27 2005 Charlie Brady <charlieb@e-smith.com> |
220 |
- [1.1.0-03] |
221 |
- Change Requires header to "razor-agents". |
222 |
|
223 |
* Mon Mar 21 2005 Charlie Brady <charlieb@e-smith.com> |
224 |
- [1.1.0-02] |
225 |
- Update config for SpamAssassin 3.0.2 |
226 |
|
227 |
* Wed Feb 4 2004 Michael Soulier <msoulier@e-smith.com> |
228 |
- [1.1.0-01] |
229 |
- rolling to dev - 1.1.0 |
230 |
|
231 |
* Wed Feb 4 2004 Michael Soulier <msoulier@e-smith.com> |
232 |
- [1.0.0-01] |
233 |
- rolling to stable - 1.0.0 |
234 |
|
235 |
* Thu Aug 28 2003 Michael Soulier <msoulier@e-smith.com> |
236 |
- [0.0.8-02] |
237 |
- Added K* init symlinks to runlevels 0, 1 and 6. [msoulier 9761] |
238 |
|
239 |
* Thu Jun 26 2003 Gordon Rowell <gordonr@e-smith.com> |
240 |
- [0.0.8-01] |
241 |
- Enable spamd by default [gordonr 9183] |
242 |
- Simplify spamassassin-update script [gordonr 9183] |
243 |
- Resolve spamd/spamassassing directory confusion [gordonr 9183] |
244 |
- Change spamd use home directory to /var/spool/spamd [gordonr 9183] |
245 |
- Log as smelog user in /var/log/spamd [gordonr 9183] |
246 |
- Update SPEC file with new genfilelist [gordonr 9183] |
247 |
|
248 |
* Fri Jun 20 2003 Gordon Rowell <gordonr@e-smith.com> |
249 |
- [0.0.7-23] |
250 |
- Add path to /service/spamd so restart works [gordonr 9095] |
251 |
|
252 |
* Mon Jun 9 2003 Gordon Rowell <gordonr@e-smith.com> |
253 |
- [0.0.7-22] |
254 |
- Put back skip_rbl_checks|0 default [gordonr 8952] |
255 |
|
256 |
* Mon Jun 9 2003 Gordon Rowell <gordonr@e-smith.com> |
257 |
- [0.0.7-21] |
258 |
- Generate the correct config lines, and make each fragment |
259 |
valid perl [gordonr 8960] |
260 |
|
261 |
* Mon Jun 9 2003 Gordon Rowell <gordonr@e-smith.com> |
262 |
- [0.0.7-20] |
263 |
- Move spamassassin configuration parameters into main configdb |
264 |
as properties of the spamassassing service [gordonr 8960] |
265 |
|
266 |
* Mon Jun 9 2003 Charlie Brady <charlieb@e-smith.com> |
267 |
- [0.0.7-19] |
268 |
- Change config to use RBLs by default. [charlieb 8952] |
269 |
|
270 |
* Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com> |
271 |
- [0.0.7-18] |
272 |
- Use create-system-user to create spamd user. [charlieb 6033] |
273 |
|
274 |
* Tue Apr 22 2003 Gordon Rowell <gordonr@e-smith.com> |
275 |
- [0.0.7-17] |
276 |
- Removed %post call - already done in various events [gordonr 2600] |
277 |
|
278 |
* Tue Apr 22 2003 Gordon Rowell <gordonr@e-smith.com> |
279 |
- [0.0.7-16] |
280 |
- Changed spamd uid (1003 already taken) - [gordonr 8368] |
281 |
|
282 |
* Mon Apr 21 2003 Gordon Rowell <gordonr@e-smith.com> |
283 |
- [0.0.7-15] |
284 |
- Let useradd add the group in %pre. Don't fail %pre if the uid is not |
285 |
unique [gordonr 8368] |
286 |
|
287 |
* Wed Apr 9 2003 Charlie Brady <charlieb@e-smith.com> |
288 |
- [0.0.7-14] |
289 |
- Replace serviceControl() calls with "svc-stop" or "svc -t" as required, |
290 |
so that messages don't leak to console when spamd is restarted. |
291 |
[charlieb 7883] |
292 |
|
293 |
* Thu Apr 3 2003 Gordon Rowell <gordonr@e-smith.com> |
294 |
- [0.0.7-13] |
295 |
- Removed dangling panel link [gordonr 7787] |
296 |
|
297 |
* Wed Apr 2 2003 Charlie Brady <charlieb@e-smith.com> |
298 |
- [0.0.7-12] |
299 |
- Add default DeliveryInstruction andi DeliveryType default |
300 |
properties for qmail, so that "sortspam" is used for local delivery. |
301 |
Update e-smith-email "requires" version to suit. [charlieb 2600] |
302 |
- Change Copyright header to License. [charlieb] |
303 |
|
304 |
* Wed Apr 2 2003 Charlie Brady <charlieb@e-smith.com> |
305 |
- [0.0.7-11] |
306 |
- Remove panel code. Greg's panel code can now be found in |
307 |
e-smith-spamassassin-panel. [charlieb 7787] |
308 |
- Split action into spamassassin config/restart and procmail |
309 |
configure sections. Latter is not yet liked into any |
310 |
actions. [charlieb 2600] |
311 |
- Remove db initialization parts of action script - init done by |
312 |
'defaults' fragments. [charlieb 7526] |
313 |
- Do stop/restart of 'spamd', not 'spamassassin'. [charlieb 2600] |
314 |
|
315 |
* Fri Mar 28 2003 Gordon Rowell <gordonr@e-smith.com> |
316 |
- [0.0.7-10] |
317 |
- Change panel Spam Control -> Spam filtering [gordonr 2600] |
318 |
|
319 |
* Fri Mar 28 2003 Charlie Brady <charlieb@e-smith.com> |
320 |
- [0.0.7-09] |
321 |
- Fix problem with sorting of sensitivity labels in panel [charlieb 7910] |
322 |
|
323 |
* Tue Mar 25 2003 Charlie Brady <charlieb@e-smith.com> |
324 |
- [0.0.7-08] |
325 |
- Remove -c from run file which starts spamd - we don't want to try |
326 |
to create missing user config files. [charlieb 2600] |
327 |
- Create user spamd and run spamd as that userid. [charlieb 2600] |
328 |
|
329 |
* Mon Mar 17 2003 Charlie Brady <charlieb@e-smith.com> |
330 |
- [0.0.7-07] |
331 |
- Add conf.global and wbl.global default configuration data. [charlieb 2600] |
332 |
|
333 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
334 |
- [0.0.7-06] |
335 |
- Various fixes to spamassassin db initialization templates - mostly CVS |
336 |
repository issues. [charlieb 2600] |
337 |
|
338 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
339 |
- [0.0.7-05] |
340 |
- Add the panel link for the new panel. Configure spamd to be paranoid |
341 |
and to create no use config files. [charlieb 2600] |
342 |
|
343 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
344 |
- [0.0.7-04] |
345 |
- Remove Greg's full-featured spamassassin panel. Consult CVS if you want |
346 |
to resurrect any of the code. [charlieb 2600] |
347 |
|
348 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
349 |
- [0.0.7-03] |
350 |
- Fix the minimal FM panel so that it runs. [charlieb 2600] |
351 |
- Fix compile problems in spamassassin-update script. [charlieb 2600] |
352 |
|
353 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
354 |
- [0.0.7-02] |
355 |
- Add starter en-us lexicon for FM version of the panel. [charlieb 2600] |
356 |
|
357 |
* Fri Mar 14 2003 Charlie Brady <charlieb@e-smith.com> |
358 |
- [0.0.7-01] |
359 |
- Use new defaults directory structure to initialize db entries. |
360 |
Add minimal Fm web panel. Add spamassassin-update to email-update |
361 |
and bootstrap-console-save events. [charlieb 2600] |
362 |
|
363 |
* Tue Feb 4 2003 Gordon Rowell <gordonr@e-smith.com> |
364 |
- [0.0.6-01] |
365 |
- Roll new source tarball after the merge [gordonr 2600] |
366 |
|
367 |
* Tue Feb 4 2003 Gordon Rowell <gordonr@e-smith.com> |
368 |
- [0.0.5-04] |
369 |
- Merged in Greg Zartman's <greg@leiinc.com> contrib |
370 |
|
371 |
* Wed Jan 29 2003 Greg Zartman <greg@leiinc.com> |
372 |
- Fixed a small typo in spamassassin server-manager |
373 |
panel that caused a menu label to not show correctly |
374 |
|
375 |
* Wed Jan 29 2003 Greg Zartman <greg@leiinc.com> |
376 |
- [0.0.1-1] |
377 |
- initial Alpha release |
378 |
|
379 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
380 |
- [0.0.5-03] |
381 |
- And rename /service/spamd as well [gordonr 2600] |
382 |
|
383 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
384 |
- [0.0.5-02] |
385 |
- Renamed spamassassin -> spamd to avoid conflict with spamassassin's |
386 |
init script [gordonr 2600] |
387 |
|
388 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
389 |
- [0.0.5-01] |
390 |
- Removed stray /etc/tcprules directory [gordonr 2600] |
391 |
|
392 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
393 |
- [0.0.4-01] |
394 |
- Deleted some detritus [gordonr 2600] |
395 |
|
396 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
397 |
- [0.0.3-01] |
398 |
- And an -as-source run to build the initial version [gordonr 2600] |
399 |
|
400 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
401 |
- [0.0.2-02] |
402 |
- Missed some files on initial import [gordonr 2600] |
403 |
|
404 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
405 |
- [0.0.2-01] |
406 |
- Initial import to 0.0.2 |
407 |
|
408 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
409 |
- [0.0.1-02] |
410 |
- Initial SRPM from CVS [gordonr 2600] |
411 |
|
412 |
* Sun Dec 29 2002 Gordon Rowell <gordonr@e-smith.com> |
413 |
- [0.0.1-1] |
414 |
- Initial |
415 |
|
416 |
%prep |
417 |
%setup |
418 |
%patch1 -p1 |
419 |
%patch2 -p1 |
420 |
%patch3 -p1 |
421 |
%patch5 -p1 |
422 |
%patch6 -p1 |
423 |
%patch8 -p1 |
424 |
%patch9 -p1 |
425 |
|
426 |
%build |
427 |
perl createlinks |
428 |
|
429 |
mkdir -p root/service |
430 |
ln -s /var/service/spamd root/service/spamd |
431 |
|
432 |
mkdir -p root/var/service/spamd/supervise |
433 |
touch root/var/service/spamd/down |
434 |
|
435 |
mkdir -p root/var/service/spamd/log/supervise |
436 |
|
437 |
mkdir -p root/var/log/spamd |
438 |
|
439 |
mkdir -p root/var/service/spamd/env |
440 |
|
441 |
mkdir -p root/var/spool/spamd/.spamassassin |
442 |
|
443 |
%install |
444 |
rm -rf $RPM_BUILD_ROOT |
445 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
446 |
rm -f %{name}-%{version}-%{release}-filelist |
447 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
448 |
--dir /var/service/spamd 'attr(01755,root,root)' \ |
449 |
--file /var/service/spamd/down 'attr(0644,root,root)' \ |
450 |
--file /var/service/spamd/run 'attr(0755,root,root)' \ |
451 |
--dir /var/service/spamd/log 'attr(0755,root,root)' \ |
452 |
--dir /var/service/spamd/log/supervise 'attr(0700,root,root)' \ |
453 |
--dir /var/service/spamd/supervise 'attr(0700,root,root)' \ |
454 |
--file /var/service/spamd/log/run 'attr(0755,root,root)' \ |
455 |
--dir /var/log/spamd 'attr(2750,smelog,smelog)' \ |
456 |
--dir /var/spool/spamd 'attr(2750,spamd,spamd)' \ |
457 |
--dir /var/spool/spamd/.spamassassin 'attr(2750,spamd,spamd)' \ |
458 |
--file /etc/cron.hourly/sa-restart 'attr(0755,root,root)' \ |
459 |
--file /usr/bin/refreshclam 'attr(0755,root,root)' \ |
460 |
> %{name}-%{version}-%{release}-filelist |
461 |
|
462 |
%pre |
463 |
/sbin/e-smith/create-system-user spamd 1005 \ |
464 |
'spamassassin daemon user' /var/spool/spamd /bin/false |
465 |
|
466 |
%clean |
467 |
rm -rf $RPM_BUILD_ROOT |
468 |
|
469 |
%post |
470 |
|
471 |
%files -f %{name}-%{version}-%{release}-filelist |
472 |
%defattr(-,root,root) |