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

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

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

Revision 1.3 by jpp, Fri Oct 25 03:14:56 2019 UTC Revision 1.16 by terryfage, Thu Dec 30 08:34:13 2021 UTC
# Line 1  Line 1 
1  # $Id: smeserver-clamav.spec,v 1.2 2016/05/12 21:20:14 vip-ire Exp $  # $Id: smeserver-clamav.spec,v 1.15 2021/12/20 14:43:14 jpp Exp $
2    
3  Summary: SME Server module to configure clamav  Summary: SME Server module to configure clamav
4  %define name smeserver-clamav  %define name smeserver-clamav
5  Name: %{name}  Name: %{name}
6  %define version 2.6.0  %define version 2.7.0
7  %define release 3  %define release 12
8  Version: %{version}  Version: %{version}
9  Release: %{release}%{?dist}  Release: %{release}%{?dist}
10  License: GPL  License: GPL
11  Group: System Environment/Base  Group: System Environment/Base
12  Source: %{name}-%{version}.tar.xz  Source: %{name}-%{version}.tar.xz
13  Patch0: smeserver-clamav-2.6.0-bz10813-AllowSupplementaryGroups.patch  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    
19  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20  BuildArchitectures: noarch  BuildArchitectures: noarch
21  Requires: e-smith-lib  Requires: e-smith-lib
22  Requires: e-smith-base  Requires: e-smith-base >= 5.8.0-63
23  Requires: clamav >= 0.94  Requires: clamav >= 0.103
24  Requires: clamd >= 0.94  Requires: clamd >= 0.103
25  Requires: clamav-db  Requires: clamav-data
26    Requires: clamav-update
27  Requires: e-smith-formmagick >= 1.4.0-12  Requires: e-smith-formmagick >= 1.4.0-12
28    Requires: smeserver-spamassassin >= 2.7.0
29  Provides: e-smith-clamav  Provides: e-smith-clamav
30  Obsoletes: e-smith-clamav  Obsoletes: e-smith-clamav
31  Obsoletes: e-smith-antivirus  Obsoletes: e-smith-antivirus
# Line 30  BuildRequires: e-smith-devtools Line 37  BuildRequires: e-smith-devtools
37  SME Server enhancement to configure and run clamd and freshclam  SME Server enhancement to configure and run clamd and freshclam
38    
39  %changelog  %changelog
40    * Mon Dec 20 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-12.sme
41    - fix spec file error 2.7.0-11.sme [SME: 11474]
42    
43    * Mon Dec 20 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-11.sme
44    - rename property ArchiveBlockEncrypted to AlertEncrypted as per upstream [SME: 11695]
45      added properties AlertBrokenExecutables AlertExceedsMax AlertOLE2Macros
46      AlertPartitionIntersection AlertPhishingCloak and AlertPhishingSSLMismatch
47      with default no
48      added property HeuristicAlerts with default yes
49    - fix noise on centos2sme [SME: 11474]
50    
51    * Mon Nov 15 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-10.sme
52    - identify from which server is freshclam error [SME: 11755]
53      fix from  Graeme Fleming
54    
55    * Wed Jun 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-9.sme
56    - fix typo in logrotate [SME: 11608]
57    
58    * Sun Apr 18 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-8.sme
59    - fix typo and missing +x [SME: 11520]
60    
61    * Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme
62    - fix issues with non epel standard scan.conf [SME: 11520]
63      move clamd.conf to scan.conf
64      remove alias for clamtop
65      add a wrapper for clamdscan to force --fdpass
66    
67    * Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-5.sme
68    - ease use of clamdtop [SME: 11313]
69    
70    * Wed Jan 06 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-4.sme
71    - fix Transaction check error [SME: 11311]
72    
73    * Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme
74    - add pid folder /run/clamd/ [SME: 11103]
75      few improvements
76    - create update event [SME: 11162]
77    
78    * Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-1
79    - Updated to use 0.103+ from EPEL [SME: 11194]
80    - Updated to use systemd for clamd [SME: 11103]
81    - Updated to use systemd for freshclam [SME: 11104]
82    
83    * Tue Nov 26 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
84    - increase lower memory limit to 1GB [SME: 10833]
85    
86  * Thu Oct 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme  * Thu Oct 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
87  - fix for AllowSupplementaryGroups warning [SME: 10813]  - fix for AllowSupplementaryGroups warning [SME: 10813]
88    thanks to  bunkobugsy    thanks to  bunkobugsy
# Line 357  SME Server enhancement to configure and Line 410  SME Server enhancement to configure and
410  %prep  %prep
411  %setup  %setup
412  %patch0 -p1  %patch0 -p1
413    mkdir -p root/run/clamd
414    rm -rf root/etc/e-smith/templates/usr/lib/systemd/system/freshclam.service.d
415    rm -rf root/usr/lib/systemd/system/freshclam.service.d
416    %patch1 -p1
417    %patch2 -p1
418    %patch3 -p1
419    %patch4 -p1
420    
421  %build  %build
422  perl createlinks  perl createlinks
423    
424  %pre  %pre
425    if [ $1 -gt 1 ] ; then
426      if [ -e /var/service/clamd/run ] ; then
427           /usr/bin/sv d clamd
428           /usr/bin/sv d clamd/log
429      fi
430    fi
431    if [ $1 -gt 1 ] ; then
432      if [ -e /var/service/freshclam/run ] ; then
433           /usr/bin/sv d freshclam
434           /usr/bin/sv d freshclam/log
435      fi
436    fi
437  %post  %post
438  rm -f /etc/cron.d/clamav  # removing old conf file
439    if [[ -f /etc/clamd.d/clamd.conf ]]; then
440       rm -f /etc/clamd.d/clamd.conf
441    fi
442    
443    #echo "Changing freshclam log owners"
444    if [[ -d /var/log/freshclam ]]; then
445      chown -R clamupdate:clamupdate /var/log/freshclam;
446    fi
447    
448    #echo "Changing clamd log owners"
449    if [[ -d /var/log/clamd ]]; then
450      chown -R clamscan:clamscan /var/log/clamd;
451    fi
452    
453  %install  %install
454  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
455  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
456  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
457    --file /var/service/freshclam/run 'attr(0755,root,root)' \    --dir /run/clamd 'attr(2775,clamscan,virusgroup)' \
458    --file /var/service/freshclam/log/run 'attr(0755,root,root)' \    --dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \
459    --dir /var/log/freshclam 'attr(2750,smelog,clamav)' \    --dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \
460    --file /var/service/clamd/run 'attr(0755,root,root)' \    --dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \
461    --file /var/service/clamd/log/run 'attr(0755,root,root)' \    --file /sbin/clamdscan 'attr(0755,root,root)' \
   --dir /var/log/clamd 'attr(2750,smelog,smelog)' \  
   --dir /var/spool/clamav/quarantine 'attr(2750,clamav,clamav)' \  
462    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \
463    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \
464    --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \    --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \
465      --file /usr/lib/systemd/system/clamd.service 'attr(0644,root,root)' \
466      --file /usr/lib/systemd/system/freshclam.service 'attr(0644,root,root)' \
467      --dir /usr/lib/systemd/system/clamd.service.d 'attr(0755,root,root)' \
468      --dir /usr/lib/systemd/system/freshclam.service.d 'attr(0755,root,root)' \
469    > %{name}-%{version}-%{release}-filelist    > %{name}-%{version}-%{release}-filelist
470    
471  %clean  %clean


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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