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