1 |
# $Id: smeserver-clamav.spec,v 1.9 2021/01/08 22:25:52 jpp Exp $ |
# $Id: smeserver-clamav.spec,v 1.13 2021/06/09 15:33:00 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.7.0 |
%define version 2.7.0 |
7 |
%define release 6 |
%define release 10 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
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 |
Patch1: smeserver-clamav-2.7.0-bz11313-clamdtop.patch |
15 |
Patch2: smeserver-clamav-2.7.0-bz11520-clamd2scan.conf.patch |
Patch2: smeserver-clamav-2.7.0-bz11520-clamd2scan.conf.patch |
16 |
|
Patch3: smeserver-clamav-2.7.0-bz11755-identify-freshclam-error.patch |
17 |
|
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
36 |
SME Server enhancement to configure and run clamd and freshclam |
SME Server enhancement to configure and run clamd and freshclam |
37 |
|
|
38 |
%changelog |
%changelog |
39 |
|
* Mon Nov 15 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-10.sme |
40 |
|
- identify from which server is freshclam error [SME: 11755] |
41 |
|
fix from Graeme Fleming |
42 |
|
|
43 |
|
* Wed Jun 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-9.sme |
44 |
|
- fix typo in logrotate [SME: 11608] |
45 |
|
|
46 |
|
* Sun Apr 18 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-8.sme |
47 |
|
- fix typo and missing +x [SME: 11520] |
48 |
|
|
49 |
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme |
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-6.sme |
50 |
- fix issues with non epel standard scan.conf [SME: 11520] |
- fix issues with non epel standard scan.conf [SME: 11520] |
51 |
move clamd.conf to scan.conf |
move clamd.conf to scan.conf |
403 |
rm -rf root/usr/lib/systemd/system/freshclam.service.d |
rm -rf root/usr/lib/systemd/system/freshclam.service.d |
404 |
%patch1 -p1 |
%patch1 -p1 |
405 |
%patch2 -p1 |
%patch2 -p1 |
406 |
|
%patch3 -p1 |
407 |
|
|
408 |
%build |
%build |
409 |
perl createlinks |
perl createlinks |
423 |
fi |
fi |
424 |
%post |
%post |
425 |
# removing old conf file |
# removing old conf file |
426 |
if [[ -f /etc/clam.d/clamd.conf ]]; then |
if [[ -f /etc/clamd.d/clamd.conf ]]; then |
427 |
rm -f /etc/clam.d/clamd.conf |
rm -f /etc/clamd.d/clamd.conf |
428 |
fi |
fi |
429 |
|
|
430 |
#echo "Changing freshclam log owners" |
#echo "Changing freshclam log owners" |
447 |
--dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \ |
--dir /var/log/freshclam 'attr(2755,clamupdate,clamupdate)' \ |
448 |
--dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \ |
--dir /var/log/clamd 'attr(2755,clamscan,clamscan)' \ |
449 |
--dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \ |
--dir /var/spool/clamav/quarantine 'attr(2750,clamscan,clamscan)' \ |
450 |
|
--file /sbin/clamdscan 'attr(0755,root,root)' \ |
451 |
--file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \ |
--file /sbin/e-smith/freshclam-update-failed 'attr(0755,root,root)' \ |
452 |
--file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \ |
--file /sbin/e-smith/freshclam-update-ok 'attr(0755,root,root)' \ |
453 |
--file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \ |
--file /sbin/e-smith/smeserver-clamscan 'attr(0755,root,root)' \ |