/[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.14 - (hide annotations) (download)
Fri Feb 19 04:53:21 2021 UTC (3 years, 4 months ago) by jpp
Branch: MAIN
Changes since 1.13: +10 -2 lines
* Thu Feb 18 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-5.sme
- fix spamd unable to load [SME: 11361]

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

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