diff options
author | Amish | 2018-04-10 14:53:43 +0530 |
---|---|---|
committer | Amish | 2018-04-10 14:53:43 +0530 |
commit | 770b980afdb6bbcc3d865f5755a2294efe4dc1a4 (patch) | |
tree | 6fff7523806bd660d2d16979785d2da2576639dd | |
parent | 9d674898942a90bcf8b042ee2909c64f76bbef32 (diff) | |
download | aur-770b980afdb6bbcc3d865f5755a2294efe4dc1a4.tar.gz |
Log only if virus found and also log remote proxy username
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = c-icap-modules pkgdesc = Modules for C-ICAP server pkgver = 0.5.1 - pkgrel = 1 + pkgrel = 2 url = http://c-icap.sourceforge.net/ arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Amish <contact at via dot aur> pkgname=c-icap-modules pkgver=0.5.1 -pkgrel=1 +pkgrel=2 pkgdesc='Modules for C-ICAP server' depends=('c-icap' 'clamav') arch=(i686 x86_64) @@ -48,8 +48,9 @@ package() { # enable logging cat > "${pkgdir}"/etc/c-icap/vscan-local.conf << 'EOF' -LogFormat myVScanFmt "%tl, %>a %is %Ib %Ob %huo [Action: %{virus_scan:action}Sa] [Virus: %{virus_scan:virus}Sa]" +LogFormat myVScanFmt "%tl, %>a %is %Ib %Ob %huo [Action: %{virus_scan:action}Sa] [Virus: %{virus_scan:virus}Sa] [User: %{X-Client-Username}>ih]" acl VSCAN service virus_scan -AccessLog /var/log/c-icap/vscan.log myVScanFmt VSCAN +acl VFOUND icap_resp_header{X-Infection-Found} /Type=0/ +AccessLog /var/log/c-icap/vscan.log myVScanFmt VSCAN VFOUND EOF } |