/[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.13 - (show annotations) (download)
Wed Jun 9 15:33:00 2021 UTC (3 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-9_el7_sme
Changes since 1.12: +5 -2 lines
* Wed Jun 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-9.sme
- fix typo in logrotate [SME: 11608]

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

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