1 |
# $Id: smeserver-clamav.spec,v 1.10 2021/04/07 21:05:46 jpp Exp $ |
2 |
|
3 |
Summary: SME Server module to configure clamav |
4 |
%define name smeserver-clamav |
5 |
Name: %{name} |
6 |
%define version 2.7.0 |
7 |
%define release 7 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: System Environment/Base |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: smeserver-clamav-2.7.0-bz11103-improvements.patch |
14 |
Patch1: smeserver-clamav-2.7.0-bz11313-clamdtop.patch |
15 |
Patch2: smeserver-clamav-2.7.0-bz11520-clamd2scan.conf.patch |
16 |
|
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildArchitectures: noarch |
19 |
Requires: e-smith-lib |
20 |
Requires: e-smith-base >= 5.8.0-63 |
21 |
Requires: clamav >= 0.103 |
22 |
Requires: clamd >= 0.103 |
23 |
Requires: clamav-data |
24 |
Requires: clamav-update |
25 |
Requires: e-smith-formmagick >= 1.4.0-12 |
26 |
Requires: smeserver-spamassassin >= 2.7.0 |
27 |
Provides: e-smith-clamav |
28 |
Obsoletes: e-smith-clamav |
29 |
Obsoletes: e-smith-antivirus |
30 |
Obsoletes: clamav-es |
31 |
Obsoletes: clamav-es-libs |
32 |
BuildRequires: e-smith-devtools |
33 |
|
34 |
%description |
35 |
SME Server enhancement to configure and run clamd and freshclam |
36 |
|
37 |
%changelog |
38 |
* Sun Apr 18 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-7.sme |
39 |
- fix typo and missing +x [SME: 11520] |
40 |
|
41 |
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme |
42 |
- fix issues with non epel standard scan.conf [SME: 11520] |
43 |
move clamd.conf to scan.conf |
44 |
remove alias for clamtop |
45 |
add a wrapper for clamdscan to force --fdpass |
46 |
|
47 |
* Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-5.sme |
48 |
- ease use of clamdtop [SME: 11313] |
49 |
|
50 |
* Wed Jan 06 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-4.sme |
51 |
- fix Transaction check error [SME: 11311] |
52 |
|
53 |
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme |
54 |
- add pid folder /run/clamd/ [SME: 11103] |
55 |
few improvements |
56 |
- create update event [SME: 11162] |
57 |
|
58 |
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-1 |
59 |
- Updated to use 0.103+ from EPEL [SME: 11194] |
60 |
- Updated to use systemd for clamd [SME: 11103] |
61 |
- Updated to use systemd for freshclam [SME: 11104] |
62 |
|
63 |
* Tue Nov 26 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
64 |
- increase lower memory limit to 1GB [SME: 10833] |
65 |
|
66 |
* Thu Oct 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
67 |
- fix for AllowSupplementaryGroups warning [SME: 10813] |
68 |
thanks to bunkobugsy |
69 |
|
70 |
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme |
71 |
- Rebuild for [SME: 9393] |
72 |
|
73 |
* Sat Feb 06 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
74 |
- Initial release to sme10 |
75 |
|
76 |
* Tue Dec 1 2015 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme |
77 |
- Disable unofficial sigs for filesystem scans [SME: 9142] |
78 |
|
79 |
* Tue Sep 8 2015 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-4.sme |
80 |
- Double the memory limit as we do not have enough room [SME: 8933] |
81 |
|
82 |
* Thu Jul 3 2014 Ian Wells <esmith@wellsi.com> 2.4.0-3.sme |
83 |
- Increase MemLimit to 700M for clamav-0.98 [SME: 8483] |
84 |
|
85 |
* Mon Jul 8 2013 Chris Burnat <devlist@burnat.com> 2.4.0-2.sme |
86 |
- Move clamscan scheduling to complete before 99-raid-check [SME: 7758] |
87 |
|
88 |
* Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
89 |
- Roll new stream for sme9 |
90 |
|
91 |
* Mon Jun 14 2010 Ian Wells <esmith@wellsi.com> 2.2.0-12.sme |
92 |
- Re-work patch to improve and document template [SME: 6011] |
93 |
|
94 |
* Sat Jun 5 2010 Ian Wells <esmith@wellsi.com> 2.2.0-11.sme |
95 |
- template /etc/cron.daily/freshclam, and make it a NO-OP [SME: 6011] |
96 |
|
97 |
* Sun Apr 18 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-10.sme |
98 |
- Increase MemLimit to 600M for clamav-0.96 [SME: 5868] |
99 |
|
100 |
* Fri Apr 02 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-9.sme |
101 |
- Increase MemLimit to 300M for clamav-0.96 [SME: 5868] |
102 |
|
103 |
* Sat Feb 6 2010 Stephen Noble <support@dungog.net> 2.2.0-8.sme |
104 |
- Setup logrotate for /var/log/clamd/clamscan.log [SME: 5570] |
105 |
|
106 |
* Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-7.sme |
107 |
- Remove create option from logrotate configuration [SME: 5570] |
108 |
- Fix version number in previous changelog entry |
109 |
|
110 |
* Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-6.sme |
111 |
- Setup logrotate for /var/log/clamd/smeserver-clamscan.log [SME: 5570] |
112 |
- Minor changelog fixes in version number |
113 |
|
114 |
* Wed Nov 4 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-5.sme |
115 |
- Change default value for HeuristicScanPrecedence to yes [SME: 5204] |
116 |
|
117 |
* Tue Jun 2 2009 Shad L. Lords <slords@mail.com> 2.2.0-4.sme |
118 |
- Fix permissions on freshclam.conf file [SME: 5319] |
119 |
|
120 |
* Mon Apr 13 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-3.sme |
121 |
- Add HeuristicScanPrecedence option, default disabled [SME: 4598] |
122 |
|
123 |
* Thu Nov 27 2008 Stephen Noble <support@dungog.net> 2.2.0-2.sme |
124 |
- Obsolete e-smith-antivirus [SME: 4786] |
125 |
|
126 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
127 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
128 |
|
129 |
* Mon Sep 22 2008 Stephen Noble <support@dungog.net> 1.2.0-26 |
130 |
- Remove obsolete locale tags [SME: 4235] |
131 |
|
132 |
* Sun Aug 10 2008 Shad L. Lords <slords@mail.com> 1.2.0-25 |
133 |
- Remove links to crontab in all but clamav-update [SME: 4494] |
134 |
|
135 |
* Wed Apr 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-24 |
136 |
- Remove any /etc/cron.d/clamav file. We moved the content to /etc/crontab |
137 |
[SME: 1047], but we need to remove any leftover file from earlier template |
138 |
expansion, which, if present, could cause the nightly file scanning to be |
139 |
run twice. [SME: 4266] |
140 |
|
141 |
* Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-23 |
142 |
- Add common <base> tags to e-smith-formmagick's general [SME: 4288] |
143 |
|
144 |
* Fri Apr 25 2008 Charlie Brady <charlie_brady@mitel.com> 1.2.0-22 |
145 |
- Add Obsoletes headers to force removal of clamav-es and |
146 |
clamav-es-libs. [SME 4167] |
147 |
|
148 |
* Fri Apr 18 2008 Shad L. Lords <slords@mail.com> 1.2.0-21 |
149 |
- Update defaults for clamav 0.93 [SME: 4223] |
150 |
|
151 |
* Fri Apr 18 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-20 |
152 |
- Move cron template from cron.d to crontab [SME: 1047] |
153 |
|
154 |
* Tue Mar 18 2008 Shad L. Lords <slords@mail.com> 1.2.0-19 |
155 |
- Fix clamav version string [SME: 4060] |
156 |
|
157 |
* Wed Feb 13 2008 Stephen Noble <support@dungog.net> 1.2.0-18 |
158 |
- Remove <base> tags now in general [SME: 3915] |
159 |
|
160 |
* Sun Feb 10 2008 Stephen Noble <support@dungog.net> 1.2.0-17 |
161 |
- Remove duplicate <base> entries [SME: 3890] |
162 |
|
163 |
* Mon Jan 07 2008 Stephen Noble <support@dungog.net> 1.2.0-16 |
164 |
- Cosmetic removal of word entire on panel [SME: 3483] |
165 |
|
166 |
* Thu Sep 06 2007 Filippo Carletti <filippo.carletti@gmail.com> 1.2.0-15 |
167 |
- Fix freshclam.conf permissions [SME: 3375] |
168 |
|
169 |
* Fri Jun 08 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.0-14 |
170 |
- Use full paths in update-failed script - tai64nlocal was not |
171 |
being found in $PATH. [SME: 1686] |
172 |
|
173 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
174 |
- Clean up spec so package can be built by koji/plague |
175 |
|
176 |
* Wed Apr 18 2007 Shad L. Lords <slords@mail.com> 1.2.0-13 |
177 |
- Up memory limit for clamd again [SME: 2743] |
178 |
|
179 |
* Wed Feb 21 2007 Shad L. Lords <slords@mail.com> 1.2.0-12 |
180 |
- Up memory limit for clamd [SME: 2528] |
181 |
|
182 |
* Wed Feb 14 2007 Shad L. Lords <slords@mail.com> 1.2.0-11 |
183 |
- Update for clamav v0.90 [SME: 2508] |
184 |
|
185 |
* Tue Feb 13 2007 Shad L. Lords <slords@mail.com> 1.2.0-10 |
186 |
- Improve algorithm for displaying errors [SME: 1686] |
187 |
|
188 |
* Mon Feb 12 2007 Shad L. Lords <slords@mail.com> 1.2.0-9 |
189 |
- Improve sed expression for freshclam failures [SME: 1686] |
190 |
|
191 |
* Mon Feb 12 2007 Shad L. Lords <slords@mail.com> 1.2.0-8 |
192 |
- Allow clamav to read freshclam update log [SME: 1686] |
193 |
|
194 |
* Fri Jan 26 2007 Shad L. Lords <slords@mail.com> 1.2.0-7 |
195 |
- Provide more feedback on freshclam events [SME: 1686] |
196 |
|
197 |
* Wed Dec 13 2006 Federico Simoncelli <federico.simoncelli@gmail.com> 1.2.0-6 |
198 |
- Added support for options: max-ratio, no-html, no-mail. [SME: 2024] |
199 |
- Redirected the stderr output to /var/log/clamd/smeserver-clamscan.log. |
200 |
[SME: 2004] |
201 |
|
202 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
203 |
- Update to new release naming. No functional changes. |
204 |
- Make Packager generic |
205 |
|
206 |
* Wed Nov 29 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-04 |
207 |
- Restrict filesystem scan to /home/e-smith/files by default [SME: 2082] |
208 |
|
209 |
* Sun Aug 27 2006 Charlie Brady <charlieb@e-smith.com> 1.2.0-03 |
210 |
- Fix --exclude arg syntax. [SME: 1889] |
211 |
|
212 |
* Fri Jun 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-02 |
213 |
- Fix typo in ArchiveBlockEntrypted [SME: 1584] |
214 |
|
215 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01 |
216 |
- Roll stable stream version. [SME: 1016] |
217 |
|
218 |
* Tue Mar 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-10 |
219 |
- Restart crond in clamav-update so cron notices cron.d/clamav [SME: 966] |
220 |
|
221 |
* Wed Feb 8 2006 Gavin Weight <gweight@gmail.com> 1.1.2-09 |
222 |
- Added migrate fragment for clamav DatabaseMirror. [SME: 83] |
223 |
|
224 |
* Fri Jan 27 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-08 |
225 |
- Bump release number to ensure patch is in CVS |
226 |
|
227 |
* Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-07 |
228 |
- Expand MEMLIMIT in bootstrap-console-save (and don't attempt to |
229 |
restart the service there) |
230 |
|
231 |
* Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-06 |
232 |
- Change back to softlimit -a [SME: 426] |
233 |
|
234 |
* Wed Jan 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-05 |
235 |
- Set db default for clamd{MemLimit}==80M and use it in the run script |
236 |
- Expand templates in events rather than run file [SME: 426] |
237 |
|
238 |
* Mon Oct 17 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-04 |
239 |
- Fix typos in smeserver-clamscan [SF: 1304217] |
240 |
|
241 |
* Fri Oct 14 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-03 |
242 |
- Move all L10Ns to smeserver-locale [SF: 1309520] |
243 |
|
244 |
* Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-02 |
245 |
- Added Italian L10N - Thanks Filippo Carletti [SF: 1309266] |
246 |
|
247 |
* Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-01 |
248 |
- Roll patches to 1.1.1-06 |
249 |
- Add German L10N |
250 |
|
251 |
* Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-06 |
252 |
- Exclude /var and all of /usr/share (not just /usr/share/doc) from |
253 |
filesystem scan [SF: 1304217] |
254 |
|
255 |
* Fri Sep 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-05 |
256 |
- French L10N fixes [SF: 1242586] |
257 |
|
258 |
* Sat Aug 20 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-04 |
259 |
- French L10N - Merci Didier Rambeau [SF: 1242586] |
260 |
|
261 |
* Sat Aug 20 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.1-03 |
262 |
- Don't scan quarantine area, even if quarantining is disabled [SF: 1245655] |
263 |
|
264 |
* Fri Aug 19 2005 Charlie Brady <charlieb@e-smith.com> 1.1.1-02 |
265 |
- Add Provides: header, to satisfy any package which requires defunct |
266 |
e-smith-clamav. |
267 |
|
268 |
* Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au> |
269 |
- [1.1.1-01] |
270 |
- Package renamed to smeserver-clamav [SF: 1263460] |
271 |
|
272 |
* Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au> |
273 |
- [1.1.0-08sme02] |
274 |
- Rename /sbin/e-smith/clamscan to smeserver-clamscan [SF: 1263460] |
275 |
|
276 |
* Thu Aug 18 2005 Gordon Rowell <gordonr@gormand.com.au> |
277 |
- [1.1.0-08sme01] |
278 |
- Disable quarantining by default, add panel toggle [SF: 1245655] |
279 |
|
280 |
* Tue Aug 9 2005 Gordon Rowell <gordonr@gormand.com.au> |
281 |
- [1.1.0-08] |
282 |
- Add --move=$clamav{QuarantineDirectory} to clamscan, |
283 |
exclude directory from being scanned, add database default |
284 |
and set permissions in spec file [SF: 1245655] |
285 |
|
286 |
* Thu Aug 4 2005 Charlie Brady <charlieb@e-smith.com> |
287 |
- [1.1.0-07] |
288 |
- Remove freshclam runs from clamav crontab template - we |
289 |
now run supervised freshclam instance. [SF: 1251944] |
290 |
|
291 |
* Thu Aug 4 2005 Shad Lords <slords@mail.com> |
292 |
- [1.1.0-06] |
293 |
- Include db entry to exclude /proc, /sys and |
294 |
/usr/share/doc from scans [SF: 1243741, 1243831] |
295 |
|
296 |
* Wed Jul 27 2005 Gordon Rowell <gordonr@gormand.com.au> |
297 |
- [1.1.0-05] |
298 |
- Exclude /proc, /sys and /usr/share/doc from scans |
299 |
[SF: 1243741, 1243831] |
300 |
- Run freshclam with --quiet instead of --verbose [SF: 1245602] |
301 |
|
302 |
* Fri Jul 22 2005 Charlie Brady <charlieb@e-smith.com> |
303 |
- [1.1.0-04] |
304 |
- Fix typo in en-us lexicon. [SF: 1242585] |
305 |
|
306 |
* Mon May 30 2005 Charlie Brady <charlieb@e-smith.com> |
307 |
- [1.1.0-03] |
308 |
- Fix last-updated section and labels [Gordon: SF-1200428] |
309 |
|
310 |
* Tue May 17 2005 Charlie Brady <charlieb@e-smith.com> |
311 |
- [1.1.0-02] |
312 |
- Add clamav-update event directory. |
313 |
- Modify some of the panel code to avoid logging of multiple db property |
314 |
transactions. |
315 |
|
316 |
* Fri May 13 2005 Gordon Rowell <gordonr@gormand.com.au> |
317 |
- [1.1.0-01gr06] |
318 |
- Read the timestamp of the clamav database files in the panel |
319 |
to show the last updated time [SF:1200428] |
320 |
- Change /sbin/e-smith/freshclam-update-ok to /bin/sh, with no |
321 |
content. |
322 |
- TODO: make the update mails configurable |
323 |
|
324 |
* Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au> |
325 |
- [1.1.0-01gr05] |
326 |
- And hide the sections |
327 |
|
328 |
* Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au> |
329 |
- [1.1.0-01gr04] |
330 |
- Fix up section bars |
331 |
|
332 |
* Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au> |
333 |
- [1.1.0-01gr03] |
334 |
- Removed the qmailscan_integration part of the panel |
335 |
- Removed the database mirror select box. Anyone who isn't |
336 |
satisfied with using db.local.clamav.net can set the hostname |
337 |
in the database directly. |
338 |
- Hid the updates and proxy sections, based on |
339 |
$clamav{ShowProxySection} and $clamav{ShowUpdatesSection} |
340 |
- Panel looks rather bare now |
341 |
- Read the last updated date from $clamav{SignaturesUpdated} |
342 |
- Modified /sbin/e-smith/freshclam-update-ok to set the above value |
343 |
- Morphed /etc/clamscan template into /sbin/e-smith/clamscan, |
344 |
which can read the db directly. |
345 |
|
346 |
* Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au> |
347 |
- [1.1.0-01gr02] |
348 |
- Use db.local.clamav.net by default (rather than db.us). |
349 |
|
350 |
* Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au> |
351 |
- [1.1.0-01gr01] |
352 |
- Bump version to 1.1.0-01gr01 to upgrade over Shad's 1.0.0 |
353 |
- Roll new tarball after major merge of Shad's work. |
354 |
|
355 |
* Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au> |
356 |
- [0.0.1-06gr02] |
357 |
- Cleaned up patch and startup symlinks |
358 |
|
359 |
* Fri May 6 2005 Gordon Rowell <gordonr@gormand.com.au> |
360 |
- [0.0.1-06gr01] |
361 |
- Merge in Shad Lords' e-smith-spamassassin work (based in part |
362 |
on work from Damien Curtain) and panel |
363 |
- Moved freshclam run script options to database defaults |
364 |
- Created /sbin/e-smith/freshclam-update-{failed,ok} |
365 |
|
366 |
* Tue Apr 19 2005 Charlie Brady <charlieb@e-smith.com> |
367 |
- [0.0.1-06] |
368 |
- Add missing log directories. |
369 |
|
370 |
* Tue Apr 19 2005 Charlie Brady <charlieb@e-smith.com> |
371 |
- [0.0.1-05] |
372 |
- Don't start freshclam or clamd until after bootstrap-console. |
373 |
- Move all symlink creation into createlinks script. |
374 |
|
375 |
* Mon Mar 21 2005 Charlie Brady <charlieb@e-smith.com> |
376 |
- [0.0.1-04] |
377 |
- Fix data directory in freshclam configuration. |
378 |
|
379 |
* Fri Feb 18 2005 Charlie Brady <charlieb@e-smith.com> 0.0.1-03 |
380 |
- Config fixes for clamav-0.83 |
381 |
|
382 |
* Wed Feb 09 2005 Charlie Brady <charlieb@e-smith.com> |
383 |
- [0.0.1-02] |
384 |
- Add Requires headers for clamd and clamav-db. |
385 |
|
386 |
* Wed Feb 09 2005 Charlie Brady <charlieb@e-smith.com> |
387 |
- [0.0.1-01] |
388 |
- Initial |
389 |
|
390 |
%prep |
391 |
%setup |
392 |
%patch0 -p1 |
393 |
mkdir -p root/run/clamd |
394 |
rm -rf root/etc/e-smith/templates/usr/lib/systemd/system/freshclam.service.d |
395 |
rm -rf root/usr/lib/systemd/system/freshclam.service.d |
396 |
%patch1 -p1 |
397 |
%patch2 -p1 |
398 |
|
399 |
%build |
400 |
perl createlinks |
401 |
|
402 |
%pre |
403 |
if [ $1 -gt 1 ] ; then |
404 |
if [ -e /var/service/clamd/run ] ; then |
405 |
/usr/bin/sv d clamd |
406 |
/usr/bin/sv d clamd/log |
407 |
fi |
408 |
fi |
409 |
if [ $1 -gt 1 ] ; then |
410 |
if [ -e /var/service/freshclam/run ] ; then |
411 |
/usr/bin/sv d freshclam |
412 |
/usr/bin/sv d freshclam/log |
413 |
fi |
414 |
fi |
415 |
%post |
416 |
# removing old conf file |
417 |
if [[ -f /etc/clamd.d/clamd.conf ]]; then |
418 |
rm -f /etc/clamd.d/clamd.conf |
419 |
fi |
420 |
|
421 |
#echo "Changing freshclam log owners" |
422 |
if [[ -d /var/log/freshclam ]]; then |
423 |
chown -R clamupdate:clamupdate /var/log/freshclam; |
424 |
chown -R clamupdate:clamupdate /var/log/freshclam/*; |
425 |
fi |
426 |
|
427 |
#echo "Changing clamd log owners" |
428 |
if [[ -d /var/log/clamd ]]; then |
429 |
chown -R clamscan:clamscan /var/log/clamd; |
430 |
chown -R clamscan:clamscan /var/log/clamd/*; |
431 |
fi |
432 |
|
433 |
%install |
434 |
rm -rf $RPM_BUILD_ROOT |
435 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
436 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
437 |
--dir /run/clamd 'attr(2775,clamscan,virusgroup)' \ |
438 |
--dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \ |
439 |
--dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \ |
440 |
--dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \ |
441 |
--file /usr/sbin/clamdscan 'attr(0755,root,root)' \ |
442 |
--file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \ |
443 |
--file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \ |
444 |
--file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \ |
445 |
--file /usr/lib/systemd/system/clamd.service 'attr(0644,root,root)' \ |
446 |
--file /usr/lib/systemd/system/freshclam.service 'attr(0644,root,root)' \ |
447 |
--dir /usr/lib/systemd/system/clamd.service.d 'attr(0755,root,root)' \ |
448 |
--dir /usr/lib/systemd/system/freshclam.service.d 'attr(0755,root,root)' \ |
449 |
> %{name}-%{version}-%{release}-filelist |
450 |
|
451 |
%clean |
452 |
rm -rf $RPM_BUILD_ROOT |
453 |
|
454 |
%files -f %{name}-%{version}-%{release}-filelist |
455 |
%defattr(-,root,root) |