/[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.12 - (hide annotations) (download)
Fri Jan 8 19:49:49 2021 UTC (3 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-spamassassin-2_7_0-3_el7_sme
Changes since 1.11: +3 -3 lines
* Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-3.sme
- fix smeserver-spamassassin-update event fix [SME: 11166]

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

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