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