/[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.13 - (hide annotations) (download)
Wed Feb 17 18:47:38 2021 UTC (3 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-spamassassin-2_7_0-4_el7_sme
Changes since 1.12: +6 -2 lines
* Wed Feb 17 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-4.sme
- add requires DCC as we have built it  [SME: 11065]

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

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