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