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