/[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.4 by jpp, Wed Nov 27 03:52:30 2019 UTC Revision 1.19 by terryfage, Wed May 4 13:19:21 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-clamav.spec,v 1.3 2019/10/25 03:14:56 jpp Exp $  # $Id: smeserver-clamav.spec,v 1.18 2022/03/14 07:03:28 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 4  %define release 15
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.6.0-bz10833-lowerMEMLIMITto1g.patch  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  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
22  BuildArchitectures: noarch  BuildArchitectures: noarch
23  Requires: e-smith-lib  Requires: e-smith-lib
24  Requires: e-smith-base  Requires: e-smith-base >= 5.8.0-63
25  Requires: clamav >= 0.94  Requires: clamav >= 0.103
26  Requires: clamd >= 0.94  Requires: clamd >= 0.103
27  Requires: clamav-db  Requires: clamav-data
28    Requires: clamav-update
29  Requires: e-smith-formmagick >= 1.4.0-12  Requires: e-smith-formmagick >= 1.4.0-12
30    Requires: smeserver-spamassassin >= 2.7.0
31  Provides: e-smith-clamav  Provides: e-smith-clamav
32  Obsoletes: e-smith-clamav  Obsoletes: e-smith-clamav
33  Obsoletes: e-smith-antivirus  Obsoletes: e-smith-antivirus
# Line 31  BuildRequires: e-smith-devtools Line 39  BuildRequires: e-smith-devtools
39  SME Server enhancement to configure and run clamd and freshclam  SME Server enhancement to configure and run clamd and freshclam
40    
41  %changelog  %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  * Tue Nov 26 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
95  - increase lower memory limit to 1GB [SME: 10833]  - increase lower memory limit to 1GB [SME: 10833]
96    
# Line 361  SME Server enhancement to configure and Line 421  SME Server enhancement to configure and
421  %prep  %prep
422  %setup  %setup
423  %patch0 -p1  %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  %patch1 -p1
428    %patch2 -p1
429    %patch3 -p1
430    %patch4 -p1
431    %patch5 -p1
432    %patch6 -p1
433    
434  %build  %build
435  perl createlinks  perl createlinks
436    
437  %pre  %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  %post
451  rm -f /etc/cron.d/clamav  # 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  %install
467  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
468  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
469  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
470    --file /var/service/freshclam/run 'attr(0755,root,root)' \    --dir /run/clamd 'attr(2775,clamscan,virusgroup)' \
471    --file /var/service/freshclam/log/run 'attr(0755,root,root)' \    --dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \
472    --dir /var/log/freshclam 'attr(2750,smelog,clamav)' \    --dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \
473    --file /var/service/clamd/run 'attr(0755,root,root)' \    --dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \
474    --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)' \  
475    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \
476    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \
477    --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \    --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    > %{name}-%{version}-%{release}-filelist
483    
484  %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