1 |
# $Id: smeserver-clamav.spec,v 1.12 2021/04/19 00:56:51 jpp Exp $ |
# $Id: smeserver-clamav.spec,v 1.14 2021/11/15 18:20:56 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 9 |
%define release 11 |
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 |
|
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 |
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-11.sme |
41 |
|
- rename property ArchiveBlockEncrypted to AlertEncrypted as per upstream [SME: 11695] |
42 |
|
added properties AlertBrokenExecutables AlertExceedsMax AlertOLE2Macros |
43 |
|
AlertPartitionIntersection AlertPhishingCloak and AlertPhishingSSLMismatch |
44 |
|
with default no |
45 |
|
added property HeuristicAlerts with default yes |
46 |
|
- fix noise on centos2sme [SME: 11474] |
47 |
|
|
48 |
|
* Mon Nov 15 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-10.sme |
49 |
|
- identify from which server is freshclam error [SME: 11755] |
50 |
|
fix from Graeme Fleming |
51 |
|
|
52 |
* Wed Jun 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-9.sme |
* Wed Jun 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-9.sme |
53 |
- fix typo in logrotate [SME: 11608] |
- fix typo in logrotate [SME: 11608] |
54 |
|
|
412 |
rm -rf root/usr/lib/systemd/system/freshclam.service.d |
rm -rf root/usr/lib/systemd/system/freshclam.service.d |
413 |
%patch1 -p1 |
%patch1 -p1 |
414 |
%patch2 -p1 |
%patch2 -p1 |
415 |
|
%patch3 -p1 |
416 |
|
|
417 |
%build |
%build |
418 |
perl createlinks |
perl createlinks |
439 |
#echo "Changing freshclam log owners" |
#echo "Changing freshclam log owners" |
440 |
if [[ -d /var/log/freshclam ]]; then |
if [[ -d /var/log/freshclam ]]; then |
441 |
chown -R clamupdate:clamupdate /var/log/freshclam; |
chown -R clamupdate:clamupdate /var/log/freshclam; |
|
chown -R clamupdate:clamupdate /var/log/freshclam/*; |
|
442 |
fi |
fi |
443 |
|
|
444 |
#echo "Changing clamd log owners" |
#echo "Changing clamd log owners" |
445 |
if [[ -d /var/log/clamd ]]; then |
if [[ -d /var/log/clamd ]]; then |
446 |
chown -R clamscan:clamscan /var/log/clamd; |
chown -R clamscan:clamscan /var/log/clamd; |
|
chown -R clamscan:clamscan /var/log/clamd/*; |
|
447 |
fi |
fi |
448 |
|
|
449 |
%install |
%install |