summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmish2018-04-10 14:53:43 +0530
committerAmish2018-04-10 14:53:43 +0530
commit770b980afdb6bbcc3d865f5755a2294efe4dc1a4 (patch)
tree6fff7523806bd660d2d16979785d2da2576639dd
parent9d674898942a90bcf8b042ee2909c64f76bbef32 (diff)
downloadaur-770b980afdb6bbcc3d865f5755a2294efe4dc1a4.tar.gz
Log only if virus found and also log remote proxy username
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 99125890a9b5..2372041a55d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 2d0655c38c63..f97ba5c23d1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}