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

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