/[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.18 - (hide annotations) (download)
Mon Mar 14 07:03:28 2022 UTC (2 years, 2 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-14_el7_sme
Changes since 1.17: +5 -2 lines
* Mon Mar 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-14.sme
- remove default property ArchiveBlockEncrypted  [SME: 11695]

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

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