www/c-icap: add customized virus found page (#1048)

This commit is contained in:
Michael
2018-12-10 19:02:19 +01:00
committed by Franco Fichtner
parent 6b7098c183
commit 669dfe2af0
9 changed files with 152 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= c-icap
PLUGIN_VERSION= 1.6
PLUGIN_VERSION= 1.7
PLUGIN_COMMENT= c-icap connects the web proxy with a virus scanner
PLUGIN_DEPENDS= c-icap c-icap-modules
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -7,3 +7,6 @@ chmod 750 /var/run/c-icap
mkdir -p /var/log/c-icap
chown -R c_icap:c_icap /var/log/c-icap
chmod 750 /var/log/c-icap
mkdir -p /tmp/c-icap/templates/virus_scan/en
chmod -R 755 /tmp/c-icap/
@@ -2,3 +2,8 @@ c_icap:/etc/rc.conf.d/c_icap
c-icap.conf:/usr/local/etc/c-icap/c-icap.conf
newsyslog.conf:/etc/newsyslog.conf.d/c-icap
virus_scan.conf:/usr/local/etc/c-icap/virus_scan.conf
VIRUS_FOUND:/tmp/c-icap/templates/virus_scan/en/VIRUS_FOUND
VIR_MODE_HEAD:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_HEAD
VIR_MODE_PROGRESS:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_PROGRESS
VIR_MODE_TAIL:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_TAIL
VIR_MODE_VIRUS_FOUND:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_VIRUS_FOUND
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
<html>
<head>
<!--C-ICAP/"VERSION" virus_scan module -->
</head>
<body>
<H2> c-icap download page for %VFR <H2>
@@ -0,0 +1 @@
Downloaded %Ib bytes from %VFS of data <br>
@@ -0,0 +1,4 @@
Download your file(size=%Ib) from <a href="%VHS">%VFR</a> <br>
</body>
</html>
File diff suppressed because one or more lines are too long
@@ -72,7 +72,7 @@ Pipelining on
SupportBuggyClients off
ModulesDir /usr/local/lib/c_icap
ServicesDir /usr/local/lib/c_icap
TemplateDir /usr/local/share/c_icap/templates/
TemplateDir /tmp/c-icap/templates/
TemplateDefaultLanguage en
LoadMagicFile /usr/local/etc/c-icap/c-icap.magic
ServerLog /var/log/c-icap/server.log