/[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.5 - (show annotations) (download)
Wed Dec 16 17:06:02 2020 UTC (3 years, 11 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-1_el7_sme
Changes since 1.4: +47 -19 lines
Initial import

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

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