/[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.6 - (show annotations) (download)
Sun Jan 3 04:31:10 2021 UTC (3 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-2_el7_sme
Changes since 1.5: +39 -13 lines
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme
- add pid folder /run/clamd/ [SME: 11103]
  few improvements
- create update event [SME: 11162]

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

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