/[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.10 - (show annotations) (download)
Wed Apr 7 21:05:46 2021 UTC (3 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-6_el7_sme
Changes since 1.9: +16 -21 lines
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme
- fix issues with non epel standard scan.conf [SME: 11520]
  move clamd.conf to scan.conf
  remove alias for clamtop
  add a wrapper for clamdscan to force --fdpass

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