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