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

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

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


Revision 1.15 - (hide annotations) (download)
Mon Dec 20 14:43:14 2021 UTC (2 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-11_el7_sme
Changes since 1.14: +11 -4 lines
* Mon Dec 20 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-11.sme
- rename property ArchiveBlockEncrypted to AlertEncrypted as per upstream [SME: 11695]
  added properties AlertBrokenExecutables AlertExceedsMax AlertOLE2Macros
  AlertPartitionIntersection AlertPhishingCloak and AlertPhishingSSLMismatch
  with default no
  added property HeuristicAlerts with default yes
- fix noise on centos2sme [SME: 11474]

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

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