mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/c-icap: add customized virus found page (#1048)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user