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

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

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


Revision 1.26 - (hide annotations) (download)
Wed Mar 8 09:55:14 2023 UTC (15 months, 1 week ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-spamassassin-2_7_0-11_el7_sme
Changes since 1.25: +9 -4 lines
* Tue Mar 07 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-11.sme
- update for Spamassassin 4 - thanks for the patch Zsolt [SME: 12330]

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

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