/[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.16 - (show annotations) (download)
Fri Feb 19 06:03:30 2021 UTC (3 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-spamassassin-2_7_0-5_el7_sme
Changes since 1.15: +4 -1 lines
* Thu Feb 18 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-5.sme
- fix spamd unable to load [SME: 11361]
- redirect spamd loging to spamd.log instead of message [SME: 11362]

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

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