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

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

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


Revision 1.28 - (show annotations) (download)
Sat Jun 5 14:38:24 2010 UTC (14 years, 5 months ago) by wellsi
Branch: MAIN
CVS Tags: smeserver-clamav-2_0_0-10_el4_sme
Changes since 1.27: +2 -2 lines
Correcting day in changelog

1 # $Id: smeserver-clamav.spec,v 1.27 2010/06/05 07:36:22 wellsi Exp $
2
3 Summary: SME Server module to configure clamav
4 %define name smeserver-clamav
5 Name: %{name}
6 %define version 2.0.0
7 %define release 10
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: GPL
11 Group: System Environment/Base
12 Source: %{name}-%{version}.tar.gz
13 Patch0: smeserver-clamav-2.0.0-HeuristicScanPrecedence.patch
14 Patch1: smeserver-clamav-2.0.0-fixperm.patch
15 Patch2: smeserver-clamav-2.0.0-logrotate.patch
16 Patch3: smeserver-clamav-2.0.0-nocreate.patch
17 Patch4: smeserver-clamav-2.0.0-logrotate.patch2
18 Patch5: smeserver-clamav-2.0.0-MemLimit.patch
19 Patch6: smeserver-clamav-2.0.0.crondaily.patch
20 Patch7: smeserver-clamav-2.0.0-crondailyCreatelinks.patch
21 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
22 BuildArchitectures: noarch
23 Requires: e-smith-lib
24 Requires: e-smith-base
25 Requires: clamav >= 0.94
26 Requires: clamd >= 0.94
27 Requires: clamav-db
28 Requires: e-smith-formmagick >= 1.4.0-12
29 Provides: e-smith-clamav
30 Obsoletes: e-smith-clamav
31 Obsoletes: e-smith-antivirus
32 Obsoletes: clamav-es
33 Obsoletes: clamav-es-libs
34 BuildRequires: e-smith-devtools
35
36 %description
37 SME Server enhancement to configure and run clamd and freshclam
38
39 %changelog
40 * Sat Jun 5 2010 Ian Wells <esmith@wellsi.com> 2.0.0-10.sme
41 - correct createlinks for /etc/cron.daily/freshclam [SME: 4297]
42
43 * Thu Jun 3 2010 Ian Wells <esmith@wellsi.com> 2.0.0-9.sme
44 - template /etc/cron.daily/freshclam, and make it a NO-OP [SME: 4297]
45
46 * Sun Apr 18 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-8.sme
47 - Increase MemLimit to 600M for clamav-0.96 [SME: 5649]
48
49 * Sat Feb 6 2010 Stephen Noble <support@dungog.net> 2.0.0-7.sme
50 - Setup logrotate for /var/log/clamd/clamscan.log [SME: 5287]
51
52 * Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-6.sme
53 - Remove create option from logrotate configuration [SME: 5287]
54
55 * Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-5.sme
56 - Setup logrotate for /var/log/clamd/smeserver-clamscan.log [SME: 5287]
57 - Minor changelog fixes in version number
58
59 * Tue Jun 2 2009 Shad L. Lords <slords@mail.com> 2.0.0-4.sme
60 - Fix permissions on freshclam.conf file [SME: 5320]
61
62 * Mon Apr 13 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-3.sme
63 - Add HeuristicScanPrecedence option, default disabled [SME: 4598]
64
65 * Thu Nov 27 2008 Stephen Noble <support@dungog.net> 2.0.0-2.sme
66 - Obsolete e-smith-antivirus [SME: 4786]
67
68 * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.0.0-1.sme
69 - Roll new stream to separate sme7/sme8 trees [SME: 4633]
70
71 * Mon Sep 22 2008 Stephen Noble <support@dungog.net> 1.2.0-26
72 - Remove obsolete locale tags [SME: 4235]
73
74 * Sun Aug 10 2008 Shad L. Lords <slords@mail.com> 1.2.0-25
75 - Remove links to crontab in all but clamav-update [SME: 4494]
76
77 * Wed Apr 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-24
78 - Remove any /etc/cron.d/clamav file. We moved the content to /etc/crontab
79 [SME: 1047], but we need to remove any leftover file from earlier template
80 expansion, which, if present, could cause the nightly file scanning to be
81 run twice. [SME: 4266]
82
83 * Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-23
84 - Add common <base> tags to e-smith-formmagick's general [SME: 4288]
85
86 * Fri Apr 25 2008 Charlie Brady <charlie_brady@mitel.com> 1.2.0-22
87 - Add Obsoletes headers to force removal of clamav-es and
88 clamav-es-libs. [SME 4167]
89
90 * Fri Apr 18 2008 Shad L. Lords <slords@mail.com> 1.2.0-21
91 - Update defaults for clamav 0.93 [SME: 4223]
92
93 * Fri Apr 18 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-20
94 - Move cron template from cron.d to crontab [SME: 1047]
95
96 * Tue Mar 18 2008 Shad L. Lords <slords@mail.com> 1.2.0-19
97 - Fix clamav version string [SME: 4060]
98
99 * Wed Feb 13 2008 Stephen Noble <support@dungog.net> 1.2.0-18
100 - Remove <base> tags now in general [SME: 3915]
101
102 * Sun Feb 10 2008 Stephen Noble <support@dungog.net> 1.2.0-17
103 - Remove duplicate <base> entries [SME: 3890]
104
105 * Mon Jan 07 2008 Stephen Noble <support@dungog.net> 1.2.0-16
106 - Cosmetic removal of word entire on panel [SME: 3483]
107
108 * Thu Sep 06 2007 Filippo Carletti <filippo.carletti@gmail.com> 1.2.0-15
109 - Fix freshclam.conf permissions [SME: 3375]
110
111 * Fri Jun 08 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.0-14
112 - Use full paths in update-failed script - tai64nlocal was not
113 being found in $PATH. [SME: 1686]
114
115 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
116 - Clean up spec so package can be built by koji/plague
117
118 * Wed Apr 18 2007 Shad L. Lords <slords@mail.com> 1.2.0-13
119 - Up memory limit for clamd again [SME: 2743]
120
121 * Wed Feb 21 2007 Shad L. Lords <slords@mail.com> 1.2.0-12
122 - Up memory limit for clamd [SME: 2528]
123
124 * Wed Feb 14 2007 Shad L. Lords <slords@mail.com> 1.2.0-11
125 - Update for clamav v0.90 [SME: 2508]
126
127 * Tue Feb 13 2007 Shad L. Lords <slords@mail.com> 1.2.0-10
128 - Improve algorithm for displaying errors [SME: 1686]
129
130 * Mon Feb 12 2007 Shad L. Lords <slords@mail.com> 1.2.0-9
131 - Improve sed expression for freshclam failures [SME: 1686]
132
133 * Mon Feb 12 2007 Shad L. Lords <slords@mail.com> 1.2.0-8
134 - Allow clamav to read freshclam update log [SME: 1686]
135
136 * Fri Jan 26 2007 Shad L. Lords <slords@mail.com> 1.2.0-7
137 - Provide more feedback on freshclam events [SME: 1686]
138
139 * Wed Dec 13 2006 Federico Simoncelli <federico.simoncelli@gmail.com> 1.2.0-6
140 - Added support for options: max-ratio, no-html, no-mail. [SME: 2024]
141 - Redirected the stderr output to /var/log/clamd/smeserver-clamscan.log.
142 [SME: 2004]
143
144 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
145 - Update to new release naming. No functional changes.
146 - Make Packager generic
147
148 * Wed Nov 29 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-04
149 - Restrict filesystem scan to /home/e-smith/files by default [SME: 2082]
150
151 * Sun Aug 27 2006 Charlie Brady <charlieb@e-smith.com> 1.2.0-03
152 - Fix --exclude arg syntax. [SME: 1889]
153
154 * Fri Jun 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-02
155 - Fix typo in ArchiveBlockEntrypted [SME: 1584]
156
157 * Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01
158 - Roll stable stream version. [SME: 1016]
159
160 * Tue Mar 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-10
161 - Restart crond in clamav-update so cron notices cron.d/clamav [SME: 966]
162
163 * Wed Feb 8 2006 Gavin Weight <gweight@gmail.com> 1.1.2-09
164 - Added migrate fragment for clamav DatabaseMirror. [SME: 83]
165
166 * Fri Jan 27 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-08
167 - Bump release number to ensure patch is in CVS
168
169 * Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-07
170 - Expand MEMLIMIT in bootstrap-console-save (and don't attempt to
171 restart the service there)
172
173 * Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-06
174 - Change back to softlimit -a [SME: 426]
175
176 * Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-05
177 - Set db default for clamd{MemLimit}==80M and use it in the run script
178 - Expand templates in events rather than run file [SME: 426]
179
180 * Mon Oct 17 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-04
181 - Fix typos in smeserver-clamscan [SF: 1304217]
182
183 * Fri Oct 14 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-03
184 - Move all L10Ns to smeserver-locale [SF: 1309520]
185
186 * Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-02
187 - Added Italian L10N - Thanks Filippo Carletti [SF: 1309266]
188
189 * Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-01
190 - Roll patches to 1.1.1-06
191 - Add German L10N
192
193 * Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-06
194 - Exclude /var and all of /usr/share (not just /usr/share/doc) from
195 filesystem scan [SF: 1304217]
196
197 * Fri Sep 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-05
198 - French L10N fixes [SF: 1242586]
199
200 * Sat Aug 20 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-04
201 - French L10N - Merci Didier Rambeau [SF: 1242586]
202
203 * Sat Aug 20 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-03
204 - Don't scan quarantine area, even if quarantining is disabled [SF: 1245655]
205
206 * Fri Aug 19 2005 Charlie Brady <charlieb@e-smith.com> 1.1.1-02
207 - Add Provides: header, to satisfy any package which requires defunct
208 e-smith-clamav.
209
210 * Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au>
211 - [1.1.1-01]
212 - Package renamed to smeserver-clamav [SF: 1263460]
213
214 * Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au>
215 - [1.1.0-08sme02]
216 - Rename /sbin/e-smith/clamscan to smeserver-clamscan [SF: 1263460]
217
218 * Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au>
219 - [1.1.0-08sme01]
220 - Disable quarantining by default, add panel toggle [SF: 1245655]
221
222 * Tue Aug 9 2005 Gordon Rowell <gordonr@gormand.com.au>
223 - [1.1.0-08]
224 - Add --move=$clamav{QuarantineDirectory} to clamscan,
225 exclude directory from being scanned, add database default
226 and set permissions in spec file [SF: 1245655]
227
228 * Thu Aug 4 2005 Charlie Brady <charlieb@e-smith.com>
229 - [1.1.0-07]
230 - Remove freshclam runs from clamav crontab template - we
231 now run supervised freshclam instance. [SF: 1251944]
232
233 * Thu Aug 4 2005 Shad Lords <slords@mail.com>
234 - [1.1.0-06]
235 - Include db entry to exclude /proc, /sys and
236 /usr/share/doc from scans [SF: 1243741, 1243831]
237
238 * Wed Jul 27 2005 Gordon Rowell <gordonr@gormand.com.au>
239 - [1.1.0-05]
240 - Exclude /proc, /sys and /usr/share/doc from scans
241 [SF: 1243741, 1243831]
242 - Run freshclam with --quiet instead of --verbose [SF: 1245602]
243
244 * Fri Jul 22 2005 Charlie Brady <charlieb@e-smith.com>
245 - [1.1.0-04]
246 - Fix typo in en-us lexicon. [SF: 1242585]
247
248 * Mon May 30 2005 Charlie Brady <charlieb@e-smith.com>
249 - [1.1.0-03]
250 - Fix last-updated section and labels [Gordon: SF-1200428]
251
252 * Tue May 17 2005 Charlie Brady <charlieb@e-smith.com>
253 - [1.1.0-02]
254 - Add clamav-update event directory.
255 - Modify some of the panel code to avoid logging of multiple db property
256 transactions.
257
258 * Fri May 13 2005 Gordon Rowell <gordonr@gormand.com.au>
259 - [1.1.0-01gr06]
260 - Read the timestamp of the clamav database files in the panel
261 to show the last updated time [SF:1200428]
262 - Change /sbin/e-smith/freshclam-update-ok to /bin/sh, with no
263 content.
264 - TODO: make the update mails configurable
265
266 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
267 - [1.1.0-01gr05]
268 - And hide the sections
269
270 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
271 - [1.1.0-01gr04]
272 - Fix up section bars
273
274 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
275 - [1.1.0-01gr03]
276 - Removed the qmailscan_integration part of the panel
277 - Removed the database mirror select box. Anyone who isn't
278 satisfied with using db.local.clamav.net can set the hostname
279 in the database directly.
280 - Hid the updates and proxy sections, based on
281 $clamav{ShowProxySection} and $clamav{ShowUpdatesSection}
282 - Panel looks rather bare now
283 - Read the last updated date from $clamav{SignaturesUpdated}
284 - Modified /sbin/e-smith/freshclam-update-ok to set the above value
285 - Morphed /etc/clamscan template into /sbin/e-smith/clamscan,
286 which can read the db directly.
287
288 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
289 - [1.1.0-01gr02]
290 - Use db.local.clamav.net by default (rather than db.us).
291
292 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
293 - [1.1.0-01gr01]
294 - Bump version to 1.1.0-01gr01 to upgrade over Shad's 1.0.0
295 - Roll new tarball after major merge of Shad's work.
296
297 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
298 - [0.0.1-06gr02]
299 - Cleaned up patch and startup symlinks
300
301 * Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au>
302 - [0.0.1-06gr01]
303 - Merge in Shad Lords' e-smith-spamassassin work (based in part
304 on work from Damien Curtain) and panel
305 - Moved freshclam run script options to database defaults
306 - Created /sbin/e-smith/freshclam-update-{failed,ok}
307
308 * Tue Apr 19 2005 Charlie Brady <charlieb@e-smith.com>
309 - [0.0.1-06]
310 - Add missing log directories.
311
312 * Tue Apr 19 2005 Charlie Brady <charlieb@e-smith.com>
313 - [0.0.1-05]
314 - Don't start freshclam or clamd until after bootstrap-console.
315 - Move all symlink creation into createlinks script.
316
317 * Mon Mar 21 2005 Charlie Brady <charlieb@e-smith.com>
318 - [0.0.1-04]
319 - Fix data directory in freshclam configuration.
320
321 * Fri Feb 18 2005 Charlie Brady <charlieb@e-smith.com> 0.0.1-03
322 - Config fixes for clamav-0.83
323
324 * Wed Feb 09 2005 Charlie Brady <charlieb@e-smith.com>
325 - [0.0.1-02]
326 - Add Requires headers for clamd and clamav-db.
327
328 * Wed Feb 09 2005 Charlie Brady <charlieb@e-smith.com>
329 - [0.0.1-01]
330 - Initial
331
332 %prep
333 %setup
334 %patch0 -p1
335 %patch1 -p1
336 %patch2 -p1
337 %patch3 -p1
338 %patch4 -p1
339 %patch5 -p1
340 %patch6 -p1
341 %patch7 -p1
342
343 %build
344 perl createlinks
345 touch root/var/service/freshclam/down
346 touch root/var/service/clamd/down
347 mkdir -p root/var/service/clamd/env
348 mkdir -p root/var/log/clamd root/var/log/freshclam
349 mkdir -p root/var/spool/clamav/quarantine
350
351 %pre
352
353 %post
354 rm -f /etc/cron.d/clamav
355
356 %install
357 rm -rf $RPM_BUILD_ROOT
358 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
359 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
360 --file /var/service/freshclam/run 'attr(0755,root,root)' \
361 --file /var/service/freshclam/log/run 'attr(0755,root,root)' \
362 --dir /var/log/freshclam 'attr(2750,smelog,clamav)' \
363 --file /var/service/clamd/run 'attr(0755,root,root)' \
364 --file /var/service/clamd/log/run 'attr(0755,root,root)' \
365 --dir /var/log/clamd 'attr(2750,smelog,smelog)' \
366 --dir /var/spool/clamav/quarantine 'attr(2750,clamav,clamav)' \
367 --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \
368 --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \
369 --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \
370 > %{name}-%{version}-%{release}-filelist
371
372 %clean
373 rm -rf $RPM_BUILD_ROOT
374
375 %files -f %{name}-%{version}-%{release}-filelist
376 %defattr(-,root,root)

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