/[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.2 by vip-ire, Thu May 12 21:20:14 2016 UTC Revision 1.10 by jpp, Wed Apr 7 21:05:46 2021 UTC
# Line 1  Line 1 
1  # $Id: smeserver-clamav.spec,v 1.1 2016/02/05 23:45:20 stephdl Exp $  # $Id: smeserver-clamav.spec,v 1.9 2021/01/08 22:25:52 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 2  %define release 6
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
14    Patch1: smeserver-clamav-2.7.0-bz11313-clamdtop.patch
15    Patch2: smeserver-clamav-2.7.0-bz11520-clamd2scan.conf.patch
16    
17  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18  BuildArchitectures: noarch  BuildArchitectures: noarch
19  Requires: e-smith-lib  Requires: e-smith-lib
20  Requires: e-smith-base  Requires: e-smith-base >= 5.8.0-63
21  Requires: clamav >= 0.94  Requires: clamav >= 0.103
22  Requires: clamd >= 0.94  Requires: clamd >= 0.103
23  Requires: clamav-db  Requires: clamav-data
24    Requires: clamav-update
25  Requires: e-smith-formmagick >= 1.4.0-12  Requires: e-smith-formmagick >= 1.4.0-12
26    Requires: smeserver-spamassassin >= 2.7.0
27  Provides: e-smith-clamav  Provides: e-smith-clamav
28  Obsoletes: e-smith-clamav  Obsoletes: e-smith-clamav
29  Obsoletes: e-smith-antivirus  Obsoletes: e-smith-antivirus
# Line 29  BuildRequires: e-smith-devtools Line 35  BuildRequires: e-smith-devtools
35  SME Server enhancement to configure and run clamd and freshclam  SME Server enhancement to configure and run clamd and freshclam
36    
37  %changelog  %changelog
38    * Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme
39    - fix issues with non epel standard scan.conf [SME: 11520]
40      move clamd.conf to scan.conf
41      remove alias for clamtop
42      add a wrapper for clamdscan to force --fdpass
43    
44    * Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-5.sme
45    - ease use of clamdtop [SME: 11313]
46    
47    * Wed Jan 06 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-4.sme
48    - fix Transaction check error [SME: 11311]
49    
50    * Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.7.0-2.sme
51    - add pid folder /run/clamd/ [SME: 11103]
52      few improvements
53    - create update event [SME: 11162]
54    
55    * Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.7.0-1
56    - Updated to use 0.103+ from EPEL [SME: 11194]
57    - Updated to use systemd for clamd [SME: 11103]
58    - Updated to use systemd for freshclam [SME: 11104]
59    
60    * Tue Nov 26 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
61    - increase lower memory limit to 1GB [SME: 10833]
62    
63    * Thu Oct 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
64    - fix for AllowSupplementaryGroups warning [SME: 10813]
65      thanks to  bunkobugsy
66    
67  * Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme  * Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme
68  - Rebuild for [SME: 9393]  - Rebuild for [SME: 9393]
69    
# Line 351  SME Server enhancement to configure and Line 386  SME Server enhancement to configure and
386    
387  %prep  %prep
388  %setup  %setup
389    %patch0 -p1
390    mkdir -p root/run/clamd
391    rm -rf root/etc/e-smith/templates/usr/lib/systemd/system/freshclam.service.d
392    rm -rf root/usr/lib/systemd/system/freshclam.service.d
393    %patch1 -p1
394    %patch2 -p1
395    
396  %build  %build
397  perl createlinks  perl createlinks
398    
399  %pre  %pre
400    if [ $1 -gt 1 ] ; then
401      if [ -e /var/service/clamd/run ] ; then
402           /usr/bin/sv d clamd
403           /usr/bin/sv d clamd/log
404      fi
405    fi
406    if [ $1 -gt 1 ] ; then
407      if [ -e /var/service/freshclam/run ] ; then
408           /usr/bin/sv d freshclam
409           /usr/bin/sv d freshclam/log
410      fi
411    fi
412  %post  %post
413  rm -f /etc/cron.d/clamav  # removing old conf file
414    if [[ -f /etc/clam.d/clamd.conf ]]; then
415       rm -f /etc/clam.d/clamd.conf
416    fi
417    
418    #echo "Changing freshclam log owners"
419    if [[ -d /var/log/freshclam ]]; then
420      chown -R clamupdate:clamupdate /var/log/freshclam;
421      chown -R clamupdate:clamupdate /var/log/freshclam/*;
422    fi
423    
424    #echo "Changing clamd log owners"
425    if [[ -d /var/log/clamd ]]; then
426      chown -R clamscan:clamscan /var/log/clamd;
427      chown -R clamscan:clamscan /var/log/clamd/*;
428    fi
429    
430  %install  %install
431  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
432  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
433  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
434    --file /var/service/freshclam/run 'attr(0755,root,root)' \    --dir /run/clamd 'attr(2775,clamscan,virusgroup)' \
435    --file /var/service/freshclam/log/run 'attr(0755,root,root)' \    --dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \
436    --dir /var/log/freshclam 'attr(2750,smelog,clamav)' \    --dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \
437    --file /var/service/clamd/run 'attr(0755,root,root)' \    --dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \
   --file /var/service/clamd/log/run 'attr(0755,root,root)' \  
   --dir /var/log/clamd 'attr(2750,smelog,smelog)' \  
   --dir /var/spool/clamav/quarantine 'attr(2750,clamav,clamav)' \  
438    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \
439    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \    --file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \
440    --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \    --file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \
441      --file /usr/lib/systemd/system/clamd.service 'attr(0644,root,root)' \
442      --file /usr/lib/systemd/system/freshclam.service 'attr(0644,root,root)' \
443      --dir /usr/lib/systemd/system/clamd.service.d 'attr(0755,root,root)' \
444      --dir /usr/lib/systemd/system/freshclam.service.d 'attr(0755,root,root)' \
445    > %{name}-%{version}-%{release}-filelist    > %{name}-%{version}-%{release}-filelist
446    
447  %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