/[smeserver]/rpms/smeserver-spamassassin/sme10/smeserver-spamassassin.spec
ViewVC logotype

Contents of /rpms/smeserver-spamassassin/sme10/smeserver-spamassassin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.25 - (show annotations) (download)
Wed Apr 7 21:24:36 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-spamassassin-2_7_0-10_el7_sme
Changes since 1.24: +4 -2 lines
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-10.sme
- prevent noise in log at spamassassin call from qpsmtpd [SME: 11491]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed