/[smeserver]/rpms/smeserver-clamav/sme10/smeserver-clamav.spec
ViewVC logotype

Contents of /rpms/smeserver-clamav/sme10/smeserver-clamav.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.19 - (show annotations) (download)
Wed May 4 13:19:21 2022 UTC (2 years, 1 month ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-15_el7_sme
Changes since 1.18: +7 -2 lines
* Wed May 04 2022 Zsolt Vasarhelyi <vasarhelyizsolt@hotmail.com> 2.7.0-15.sme
- logrotate clamd keeps logging to old log [SME: 11963]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed