/[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.21 - (hide annotations) (download)
Mon Feb 22 04:23:46 2021 UTC (3 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-spamassassin-2_7_0-7_el7_sme
Changes since 1.20: +2 -2 lines
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-7.sme
- remove spamd reference as service use spamassassin.service [SME: 11375]
  migrate spamd propertie SpamLearning to spamassassin
  template for /etc/sysconfig/spamassassin, revert --allow-tell option
  stop spamassassin spamd and delete /etc/systemd/system/spamassassin.service link if exists

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

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