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

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

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


Revision 1.7 - (show annotations) (download)
Wed Jan 6 22:21:20 2021 UTC (3 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-3_el7_sme
Changes since 1.6: +5 -2 lines
* Wed Jan 06 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-3.sme
- fix Transaction check error [SME: 11311]

1 # $Id: smeserver-clamav.spec,v 1.6 2021/01/03 04:31:10 jpp Exp $
2
3 Summary: SME Server module to configure clamav
4 %define name smeserver-clamav
5 Name: %{name}
6 %define version 2.7.0
7 %define release 3
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: GPL
11 Group: System Environment/Base
12 Source: %{name}-%{version}.tar.xz
13 Patch0: smeserver-clamav-2.7.0-bz11103-improvements.patch
14
15 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
16 BuildArchitectures: noarch
17 Requires: e-smith-lib
18 Requires: e-smith-base >= 5.8.0-63
19 Requires: clamav >= 0.103
20 Requires: clamd >= 0.103
21 Requires: clamav-data
22 Requires: clamav-update
23 Requires: e-smith-formmagick >= 1.4.0-12
24 Requires: smeserver-spamassassin >= 2.7.0
25 Provides: e-smith-clamav
26 Obsoletes: e-smith-clamav
27 Obsoletes: e-smith-antivirus
28 Obsoletes: clamav-es
29 Obsoletes: clamav-es-libs
30 BuildRequires: e-smith-devtools
31
32 %description
33 SME Server enhancement to configure and run clamd and freshclam
34
35 %changelog
36 * Wed Jan 06 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-3.sme
37 - fix Transaction check error [SME: 11311]
38
39 * Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme
40 - add pid folder /run/clamd/ [SME: 11103]
41 few improvements
42 - create update event [SME: 11162]
43
44 * Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-1
45 - Updated to use 0.103+ from EPEL [SME: 11194]
46 - Updated to use systemd for clamd [SME: 11103]
47 - Updated to use systemd for freshclam [SME: 11104]
48
49 * Tue Nov 26 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
50 - increase lower memory limit to 1GB [SME: 10833]
51
52 * Thu Oct 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
53 - fix for AllowSupplementaryGroups warning [SME: 10813]
54 thanks to bunkobugsy
55
56 * Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme
57 - Rebuild for [SME: 9393]
58
59 * Sat Feb 06 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme
60 - Initial release to sme10
61
62 * Tue Dec 1 2015 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme
63 - Disable unofficial sigs for filesystem scans [SME: 9142]
64
65 * Tue Sep 8 2015 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-4.sme
66 - Double the memory limit as we do not have enough room [SME: 8933]
67
68 * Thu Jul 3 2014 Ian Wells <esmith@wellsi.com> 2.4.0-3.sme
69 - Increase MemLimit to 700M for clamav-0.98 [SME: 8483]
70
71 * Mon Jul 8 2013 Chris Burnat <devlist@burnat.com> 2.4.0-2.sme
72 - Move clamscan scheduling to complete before 99-raid-check [SME: 7758]
73
74 * Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
75 - Roll new stream for sme9
76
77 * Mon Jun 14 2010 Ian Wells <esmith@wellsi.com> 2.2.0-12.sme
78 - Re-work patch to improve and document template [SME: 6011]
79
80 * Sat Jun 5 2010 Ian Wells <esmith@wellsi.com> 2.2.0-11.sme
81 - template /etc/cron.daily/freshclam, and make it a NO-OP [SME: 6011]
82
83 * Sun Apr 18 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-10.sme
84 - Increase MemLimit to 600M for clamav-0.96 [SME: 5868]
85
86 * Fri Apr 02 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-9.sme
87 - Increase MemLimit to 300M for clamav-0.96 [SME: 5868]
88
89 * Sat Feb 6 2010 Stephen Noble <support@dungog.net> 2.2.0-8.sme
90 - Setup logrotate for /var/log/clamd/clamscan.log [SME: 5570]
91
92 * Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-7.sme
93 - Remove create option from logrotate configuration [SME: 5570]
94 - Fix version number in previous changelog entry
95
96 * Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-6.sme
97 - Setup logrotate for /var/log/clamd/smeserver-clamscan.log [SME: 5570]
98 - Minor changelog fixes in version number
99
100 * Wed Nov 4 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-5.sme
101 - Change default value for HeuristicScanPrecedence to yes [SME: 5204]
102
103 * Tue Jun 2 2009 Shad L. Lords <slords@mail.com> 2.2.0-4.sme
104 - Fix permissions on freshclam.conf file [SME: 5319]
105
106 * Mon Apr 13 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-3.sme
107 - Add HeuristicScanPrecedence option, default disabled [SME: 4598]
108
109 * Thu Nov 27 2008 Stephen Noble <support@dungog.net> 2.2.0-2.sme
110 - Obsolete e-smith-antivirus [SME: 4786]
111
112 * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme
113 - Roll new stream to separate sme7/sme8 trees [SME: 4633]
114
115 * Mon Sep 22 2008 Stephen Noble <support@dungog.net> 1.2.0-26
116 - Remove obsolete locale tags [SME: 4235]
117
118 * Sun Aug 10 2008 Shad L. Lords <slords@mail.com> 1.2.0-25
119 - Remove links to crontab in all but clamav-update [SME: 4494]
120
121 * Wed Apr 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-24
122 - Remove any /etc/cron.d/clamav file. We moved the content to /etc/crontab
123 [SME: 1047], but we need to remove any leftover file from earlier template
124 expansion, which, if present, could cause the nightly file scanning to be
125 run twice. [SME: 4266]
126
127 * Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-23
128 - Add common <base> tags to e-smith-formmagick's general [SME: 4288]
129
130 * Fri Apr 25 2008 Charlie Brady <charlie_brady@mitel.com> 1.2.0-22
131 - Add Obsoletes headers to force removal of clamav-es and
132 clamav-es-libs. [SME 4167]
133
134 * Fri Apr 18 2008 Shad L. Lords <slords@mail.com> 1.2.0-21
135 - Update defaults for clamav 0.93 [SME: 4223]
136
137 * Fri Apr 18 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-20
138 - Move cron template from cron.d to crontab [SME: 1047]
139
140 * Tue Mar 18 2008 Shad L. Lords <slords@mail.com> 1.2.0-19
141 - Fix clamav version string [SME: 4060]
142
143 * Wed Feb 13 2008 Stephen Noble <support@dungog.net> 1.2.0-18
144 - Remove <base> tags now in general [SME: 3915]
145
146 * Sun Feb 10 2008 Stephen Noble <support@dungog.net> 1.2.0-17
147 - Remove duplicate <base> entries [SME: 3890]
148
149 * Mon Jan 07 2008 Stephen Noble <support@dungog.net> 1.2.0-16
150 - Cosmetic removal of word entire on panel [SME: 3483]
151
152 * Thu Sep 06 2007 Filippo Carletti <filippo.carletti@gmail.com> 1.2.0-15
153 - Fix freshclam.conf permissions [SME: 3375]
154
155 * Fri Jun 08 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.0-14
156 - Use full paths in update-failed script - tai64nlocal was not
157 being found in $PATH. [SME: 1686]
158
159 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
160 - Clean up spec so package can be built by koji/plague
161
162 * Wed Apr 18 2007 Shad L. Lords <slords@mail.com> 1.2.0-13
163 - Up memory limit for clamd again [SME: 2743]
164
165 * Wed Feb 21 2007 Shad L. Lords <slords@mail.com> 1.2.0-12
166 - Up memory limit for clamd [SME: 2528]
167
168 * Wed Feb 14 2007 Shad L. Lords <slords@mail.com> 1.2.0-11
169 - Update for clamav v0.90 [SME: 2508]
170
171 * Tue Feb 13 2007 Shad L. Lords <slords@mail.com> 1.2.0-10
172 - Improve algorithm for displaying errors [SME: 1686]
173
174 * Mon Feb 12 2007 Shad L. Lords <slords@mail.com> 1.2.0-9
175 - Improve sed expression for freshclam failures [SME: 1686]
176
177 * Mon Feb 12 2007 Shad L. Lords <slords@mail.com> 1.2.0-8
178 - Allow clamav to read freshclam update log [SME: 1686]
179
180 * Fri Jan 26 2007 Shad L. Lords <slords@mail.com> 1.2.0-7
181 - Provide more feedback on freshclam events [SME: 1686]
182
183 * Wed Dec 13 2006 Federico Simoncelli <federico.simoncelli@gmail.com> 1.2.0-6
184 - Added support for options: max-ratio, no-html, no-mail. [SME: 2024]
185 - Redirected the stderr output to /var/log/clamd/smeserver-clamscan.log.
186 [SME: 2004]
187
188 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
189 - Update to new release naming. No functional changes.
190 - Make Packager generic
191
192 * Wed Nov 29 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-04
193 - Restrict filesystem scan to /home/e-smith/files by default [SME: 2082]
194
195 * Sun Aug 27 2006 Charlie Brady <charlieb@e-smith.com> 1.2.0-03
196 - Fix --exclude arg syntax. [SME: 1889]
197
198 * Fri Jun 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-02
199 - Fix typo in ArchiveBlockEntrypted [SME: 1584]
200
201 * Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01
202 - Roll stable stream version. [SME: 1016]
203
204 * Tue Mar 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-10
205 - Restart crond in clamav-update so cron notices cron.d/clamav [SME: 966]
206
207 * Wed Feb 8 2006 Gavin Weight <gweight@gmail.com> 1.1.2-09
208 - Added migrate fragment for clamav DatabaseMirror. [SME: 83]
209
210 * Fri Jan 27 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-08
211 - Bump release number to ensure patch is in CVS
212
213 * Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-07
214 - Expand MEMLIMIT in bootstrap-console-save (and don't attempt to
215 restart the service there)
216
217 * Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-06
218 - Change back to softlimit -a [SME: 426]
219
220 * Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-05
221 - Set db default for clamd{MemLimit}==80M and use it in the run script
222 - Expand templates in events rather than run file [SME: 426]
223
224 * Mon Oct 17 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-04
225 - Fix typos in smeserver-clamscan [SF: 1304217]
226
227 * Fri Oct 14 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-03
228 - Move all L10Ns to smeserver-locale [SF: 1309520]
229
230 * Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-02
231 - Added Italian L10N - Thanks Filippo Carletti [SF: 1309266]
232
233 * Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-01
234 - Roll patches to 1.1.1-06
235 - Add German L10N
236
237 * Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-06
238 - Exclude /var and all of /usr/share (not just /usr/share/doc) from
239 filesystem scan [SF: 1304217]
240
241 * Fri Sep 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-05
242 - French L10N fixes [SF: 1242586]
243
244 * Sat Aug 20 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-04
245 - French L10N - Merci Didier Rambeau [SF: 1242586]
246
247 * Sat Aug 20 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-03
248 - Don't scan quarantine area, even if quarantining is disabled [SF: 1245655]
249
250 * Fri Aug 19 2005 Charlie Brady <charlieb@e-smith.com> 1.1.1-02
251 - Add Provides: header, to satisfy any package which requires defunct
252 e-smith-clamav.
253
254 * Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au>
255 - [1.1.1-01]
256 - Package renamed to smeserver-clamav [SF: 1263460]
257
258 * Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au>
259 - [1.1.0-08sme02]
260 - Rename /sbin/e-smith/clamscan to smeserver-clamscan [SF: 1263460]
261
262 * Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au>
263 - [1.1.0-08sme01]
264 - Disable quarantining by default, add panel toggle [SF: 1245655]
265
266 * Tue Aug 9 2005 Gordon Rowell <gordonr@gormand.com.au>
267 - [1.1.0-08]
268 - Add --move=$clamav{QuarantineDirectory} to clamscan,
269 exclude directory from being scanned, add database default
270 and set permissions in spec file [SF: 1245655]
271
272 * Thu Aug 4 2005 Charlie Brady <charlieb@e-smith.com>
273 - [1.1.0-07]
274 - Remove freshclam runs from clamav crontab template - we
275 now run supervised freshclam instance. [SF: 1251944]
276
277 * Thu Aug 4 2005 Shad Lords <slords@mail.com>
278 - [1.1.0-06]
279 - Include db entry to exclude /proc, /sys and
280 /usr/share/doc from scans [SF: 1243741, 1243831]
281
282 * Wed Jul 27 2005 Gordon Rowell <gordonr@gormand.com.au>
283 - [1.1.0-05]
284 - Exclude /proc, /sys and /usr/share/doc from scans
285 [SF: 1243741, 1243831]
286 - Run freshclam with --quiet instead of --verbose [SF: 1245602]
287
288 * Fri Jul 22 2005 Charlie Brady <charlieb@e-smith.com>
289 - [1.1.0-04]
290 - Fix typo in en-us lexicon. [SF: 1242585]
291
292 * Mon May 30 2005 Charlie Brady <charlieb@e-smith.com>
293 - [1.1.0-03]
294 - Fix last-updated section and labels [Gordon: SF-1200428]
295
296 * Tue May 17 2005 Charlie Brady <charlieb@e-smith.com>
297 - [1.1.0-02]
298 - Add clamav-update event directory.
299 - Modify some of the panel code to avoid logging of multiple db property
300 transactions.
301
302 * Fri May 13 2005 Gordon Rowell <gordonr@gormand.com.au>
303 - [1.1.0-01gr06]
304 - Read the timestamp of the clamav database files in the panel
305 to show the last updated time [SF:1200428]
306 - Change /sbin/e-smith/freshclam-update-ok to /bin/sh, with no
307 content.
308 - TODO: make the update mails configurable
309
310 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
311 - [1.1.0-01gr05]
312 - And hide the sections
313
314 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
315 - [1.1.0-01gr04]
316 - Fix up section bars
317
318 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
319 - [1.1.0-01gr03]
320 - Removed the qmailscan_integration part of the panel
321 - Removed the database mirror select box. Anyone who isn't
322 satisfied with using db.local.clamav.net can set the hostname
323 in the database directly.
324 - Hid the updates and proxy sections, based on
325 $clamav{ShowProxySection} and $clamav{ShowUpdatesSection}
326 - Panel looks rather bare now
327 - Read the last updated date from $clamav{SignaturesUpdated}
328 - Modified /sbin/e-smith/freshclam-update-ok to set the above value
329 - Morphed /etc/clamscan template into /sbin/e-smith/clamscan,
330 which can read the db directly.
331
332 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
333 - [1.1.0-01gr02]
334 - Use db.local.clamav.net by default (rather than db.us).
335
336 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
337 - [1.1.0-01gr01]
338 - Bump version to 1.1.0-01gr01 to upgrade over Shad's 1.0.0
339 - Roll new tarball after major merge of Shad's work.
340
341 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
342 - [0.0.1-06gr02]
343 - Cleaned up patch and startup symlinks
344
345 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
346 - [0.0.1-06gr01]
347 - Merge in Shad Lords' e-smith-spamassassin work (based in part
348 on work from Damien Curtain) and panel
349 - Moved freshclam run script options to database defaults
350 - Created /sbin/e-smith/freshclam-update-{failed,ok}
351
352 * Tue Apr 19 2005 Charlie Brady <charlieb@e-smith.com>
353 - [0.0.1-06]
354 - Add missing log directories.
355
356 * Tue Apr 19 2005 Charlie Brady <charlieb@e-smith.com>
357 - [0.0.1-05]
358 - Don't start freshclam or clamd until after bootstrap-console.
359 - Move all symlink creation into createlinks script.
360
361 * Mon Mar 21 2005 Charlie Brady <charlieb@e-smith.com>
362 - [0.0.1-04]
363 - Fix data directory in freshclam configuration.
364
365 * Fri Feb 18 2005 Charlie Brady <charlieb@e-smith.com> 0.0.1-03
366 - Config fixes for clamav-0.83
367
368 * Wed Feb 09 2005 Charlie Brady <charlieb@e-smith.com>
369 - [0.0.1-02]
370 - Add Requires headers for clamd and clamav-db.
371
372 * Wed Feb 09 2005 Charlie Brady <charlieb@e-smith.com>
373 - [0.0.1-01]
374 - Initial
375
376 %prep
377 %setup
378 %patch0 -p1
379 mkdir -p root/run/clamd
380 rm -rf root/etc/e-smith/templates/usr/lib/systemd/system/freshclam.service.d
381 rm -rf root/usr/lib/systemd/system/freshclam.service.d
382
383 %build
384 perl createlinks
385
386 %pre
387 if [ $1 -gt 1 ] ; then
388 if [ -e /var/service/clamd/run ] ; then
389 /usr/bin/sv d clamd
390 /usr/bin/sv d clamd/log
391 fi
392 fi
393 if [ $1 -gt 1 ] ; then
394 if [ -e /var/service/freshclam/run ] ; then
395 /usr/bin/sv d freshclam
396 /usr/bin/sv d freshclam/log
397 fi
398 fi
399 %post
400
401 # All a bit ugly clearing up due to migrating freshclam here and A5 updates
402 # Most of this can go in due course
403
404 #echo "File cleanup"
405 # cleanup old files
406
407 # no clue where it comes from not in sme9, not in new rpms, not templated
408 #rm -f /etc/cron.d/clamav 2>/dev/null || true
409 # this is clamd-0.100.2-2.el7.sme.x86_64 owned and not templated, removing the rpm will remove it ; useless
410 #rm -f /etc/logrotate.d/clamav 2>/dev/null || true
411 # this is clamav-filesystem-0.103.0-1.el7.noarch owned, should be done elsewhere, will be readded everytime the rpm is updated
412 #rm -f /etc/clamd.d/scan.conf 2>/dev/null || true
413 # should only be removed from prep as it is owned by this rpm
414 #rm -rf /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/cron.daily/freshclam 2>/dev/null || true
415 # clamav-db and clamd rpm owned, might remains because of the content
416 #rm -rf /var/clamav 2>/dev/null || true
417
418 echo "Changing freshclam log owners"
419 if [[ -d /var/log/freshclam ]]; then
420 chown -R clamupdate:clamupdate /var/log/freshclam;
421 chown -R clamupdate:clamupdate /var/log/freshclam/*;
422 fi
423
424 echo "Changing clamd log owners"
425 if [[ -d /var/log/clamd ]]; then
426 chown -R clamscan:clamscan /var/log/clamd;
427 chown -R clamscan:clamscan /var/log/clamd/*;
428 fi
429
430 %install
431 rm -rf $RPM_BUILD_ROOT
432 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
433 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
434 --dir /run/clamd 'attr(2775,clamscan,virusgroup)' \
435 --dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \
436 --dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \
437 --dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \
438 --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \
439 --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \
440 --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \
441 --file /usr/lib/systemd/system/clamd.service 'attr(0644,root,root)' \
442 --file /usr/lib/systemd/system/freshclam.service 'attr(0644,root,root)' \
443 --dir /usr/lib/systemd/system/clamd.service.d 'attr(0755,root,root)' \
444 --dir /usr/lib/systemd/system/freshclam.service.d 'attr(0755,root,root)' \
445 > %{name}-%{version}-%{release}-filelist
446
447 %clean
448 rm -rf $RPM_BUILD_ROOT
449
450 %files -f %{name}-%{version}-%{release}-filelist
451 %defattr(-,root,root)

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