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

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

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


Revision 1.10 - (show annotations) (download)
Wed Dec 16 16:21:20 2020 UTC (3 years, 11 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-spamassassin-2_7_0-1_el7_sme
Changes since 1.9: +30 -18 lines
Initial import

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

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