/[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.6 by jpp, Sun Jan 3 04:31:10 2021 UTC Revision 1.18 by jpp, Mon Mar 14 07:03:28 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-clamav.spec,v 1.5 2020/12/16 17:06:02 jcrisp Exp $  # $Id: smeserver-clamav.spec,v 1.17 2022/01/01 04:01:58 terryfage 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.7.0  %define version 2.7.0
7  %define release 2  %define release 14
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.7.0-bz11103-improvements.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    Patch5: smeserver-clamav-2.7.0-bz11695-propertyfix.patch
19    
20  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
21  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 33  BuildRequires: e-smith-devtools Line 38  BuildRequires: e-smith-devtools
38  SME Server enhancement to configure and run clamd and freshclam  SME Server enhancement to configure and run clamd and freshclam
39    
40  %changelog  %changelog
41    * Mon Mar 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-14.sme
42    - remove default property ArchiveBlockEncrypted  [SME: 11695]
43    
44    * 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    * 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    * 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    * 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    * Wed Jun 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-9.sme
63    - fix typo in logrotate [SME: 11608]
64    
65    * Sun Apr 18 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-8.sme
66    - fix typo and missing +x [SME: 11520]
67    
68    * 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    * Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-5.sme
75    - ease use of clamdtop [SME: 11313]
76    
77    * Wed Jan 06 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-4.sme
78    - fix Transaction check error [SME: 11311]
79    
80  * Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme  * Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme
81  - add pid folder /run/clamd/ [SME: 11103]  - add pid folder /run/clamd/ [SME: 11103]
82    few improvements    few improvements
# Line 376  SME Server enhancement to configure and Line 420  SME Server enhancement to configure and
420  mkdir -p root/run/clamd  mkdir -p root/run/clamd
421  rm -rf root/etc/e-smith/templates/usr/lib/systemd/system/freshclam.service.d  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  rm -rf root/usr/lib/systemd/system/freshclam.service.d
423    %patch1 -p1
424    %patch2 -p1
425    %patch3 -p1
426    %patch4 -p1
427    %patch5 -p1
428    
429  %build  %build
430  perl createlinks  perl createlinks
# Line 394  if [ $1 -gt 1 ] ; then Line 443  if [ $1 -gt 1 ] ; then
443    fi    fi
444  fi  fi
445  %post  %post
446    # removing old conf file
447    if [[ -f /etc/clamd.d/clamd.conf ]]; then
448       rm -f /etc/clamd.d/clamd.conf
449    fi
450    
451  # All a bit ugly clearing up due to migrating freshclam here and A5 updates  #echo "Changing freshclam log owners"
 # Most of this can go in due course  
   
 #echo "File cleanup"  
 # cleanup old files  
   
 # no clue where it comes from not in sme9, not in new rpms, not templated  
 #rm -f /etc/cron.d/clamav 2>/dev/null || true  
 # this is clamd-0.100.2-2.el7.sme.x86_64 owned and not templated, removing the rpm will remove it ; useless  
 #rm -f /etc/logrotate.d/clamav 2>/dev/null || true  
 # this is clamav-filesystem-0.103.0-1.el7.noarch owned, should be done elsewhere, will be readded everytime the rpm is updated  
 #rm -f /etc/clamd.d/scan.conf  2>/dev/null || true  
 # should only be removed from prep as it is owned by this rpm  
 #rm -rf /etc/e-smith/events/bootstrap-console-save/templates2expand/etc/cron.daily/freshclam  2>/dev/null || true  
 # clamav-db and clamd rpm owned, might remains because of the content  
 #rm -rf /var/clamav 2>/dev/null || true  
   
 echo "Changing freshclam log owners"  
452  if [[ -d /var/log/freshclam ]]; then  if [[ -d /var/log/freshclam ]]; then
453    chown -R clamupdate:clamupdate /var/log/freshclam;    chown -R clamupdate:clamupdate /var/log/freshclam;
   chown -R clamupdate:clamupdate /var/log/freshclam/*;  
454  fi  fi
455    
456  echo "Changing clamd log owners"  #echo "Changing clamd log owners"
457  if [[ -d /var/log/clamd ]]; then  if [[ -d /var/log/clamd ]]; then
458    chown -R clamscan:clamscan /var/log/clamd;    chown -R clamscan:clamscan /var/log/clamd;
   chown -R clamscan:clamscan /var/log/clamd/*;  
459  fi  fi
460    
461  %install  %install
# Line 432  rm -rf $RPM_BUILD_ROOT Line 466  rm -rf $RPM_BUILD_ROOT
466    --dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \    --dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \
467    --dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \    --dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \
468    --dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \    --dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \
469      --file /sbin/clamdscan 'attr(0755,root,root)' \
470    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \
471    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \
472    --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \    --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \


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