/[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.18 - (show annotations) (download)
Mon Feb 22 04:04:24 2021 UTC (3 years, 9 months ago) by jpp
Branch: MAIN
Changes since 1.17: +18 -2 lines
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-7.sme
- remove spamd reference as service use spamassassin.service [SME: 11375]
  migrate spamd propertie SpamLearning to spamassassin
  template for /etc/sysconfig/spamassassin, revert --allow-tell option
  stop spamassassin spamd and delete /etc/systemd/system/spamassassin.service link if exists

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

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