aboutsummaryrefslogtreecommitdiffstats
path: root/packages/clamav.xml
diff options
context:
space:
mode:
authorFernando Lemos <fernandotcl@pfsense.org>2006-06-02 13:08:05 +0000
committerFernando Lemos <fernandotcl@pfsense.org>2006-06-02 13:08:05 +0000
commit5368c88c63ddd7d175337c0ca73702d813b1fdf8 (patch)
tree6812a28503cb207815fabd32035dfca33e17f277 /packages/clamav.xml
parent24de87f8d94b43fc05aaaffe48f5f927e81ed9f8 (diff)
downloadpfsense-packages-5368c88c63ddd7d175337c0ca73702d813b1fdf8.tar.gz
pfsense-packages-5368c88c63ddd7d175337c0ca73702d813b1fdf8.tar.bz2
pfsense-packages-5368c88c63ddd7d175337c0ca73702d813b1fdf8.zip
This is not based on Raj's ClamAV package. This is the backend for Viralator, p3scan and clamsmtp. No, it doesn't support HAVP yet, but maybe it just works with Raj's HAVP package. I have plans of putting HAVP support into this interface, maybe HAVP + Squid, but I still gotta play a bit more with HAVP, and maybe I and Raj could work togheter to make this integration, dunno. This might just work out of the box, or maybe not. This package does nothing without p3scan, clamsmtp or Viralator, as of now.
Diffstat (limited to 'packages/clamav.xml')
-rw-r--r--packages/clamav.xml100
1 files changed, 82 insertions, 18 deletions
diff --git a/packages/clamav.xml b/packages/clamav.xml
index ee390a50..212c2e68 100644
--- a/packages/clamav.xml
+++ b/packages/clamav.xml
@@ -1,24 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
<packagegui>
- <name>clamav</name>
- <version>0.1</version>
- <title>ClamAV: Settings</title>
- <include_file>/usr/local/pkg/clamav.inc</include_file>
+ <include_file>clamav.inc</include_file>
+ <!-- Installation -->
+ <additional_files_needed>
+ <item>http://www.pfsense.org/packages/config/clamav.inc</item>
+ </additional_files_needed>
+ <custom_php_install_command>
+ clamav_install_command();
+ </custom_php_install_command>
+ <menu>
+ <name>Antivirus</name>
+ <tooltiptext>Configure antivirus settings</tooltiptext>
+ <section>Services</section>
+ <url>/pkg_edit.php?xml=clamav.xml&amp;id=0</url>
+ </menu>
<service>
- <name>clamav</name>
- <rcfile>/usr/local/etc/rc.d/clamav.sh</rcfile>
+ <name>ClamAV</name>
+ <description>The ClamAV antivirus.</description>
+ <rcfile>clamd.sh</rcfile>
+ <executable>clamd</executable>
+ </service>
+ <service>
+ <name>FreshClam</name>
+ <description>A daemon that periodically updates the ClamAV virus database.</description>
+ <rcfile>freshclam.sh</rcfile>
+ <executable>freshclam</executable>
</service>
- <additional_files_needed>
- <prefix>/usr/local/pkg/</prefix>
- <chmod>0755</chmod>
- <item>http://agni.linuxense.com/packages/config/clamav.inc</item>
- </additional_files_needed>
-
- <custom_php_install_command> clamav_install_command(); </custom_php_install_command>
- <custom_php_deinstall_command> clamav_deinstall_command(); </custom_php_deinstall_command>
- <custom_delete_php_command> sync_package_clamav(); </custom_delete_php_command>
- <custom_php_resync_config_command> sync_package_clamav(); </custom_php_resync_config_command>
- <custom_add_php_command> sync_package_clamav(); </custom_add_php_command>
+ <!-- Interface -->
+ <name>clamav</name>
+ <title>Antivirus</title>
+ <fields>
+ <field>
+ <fieldname>expert</fieldname>
+ <fielddescr>Expert mode</fielddescr>
+ <description>This enables the expert mode. Don't check this unless you are sure of what you are doing.</description>
+ <type>checkbox</type>
+ <enablefields>brokenexec,scan_pe,scan_ole2,scan_html,scan_archive</enablefields>
+ <required/>
+ </field>
+ <field>
+ <fieldname>brokenexec</fieldname>
+ <fielddescr>Detect broken executables</fielddescr>
+ <description>Try to detect broken executables.</description>
+ <type>checkbox</type>
+ <default_value>on</default_value>
+ </field>
+ <field>
+ <fieldname>scan_pe</fieldname>
+ <fielddescr>Scan PE</fielddescr>
+ <description>Scan files in 32-bit Windows' Portable Executable format.</description>
+ <type>checkbox</type>
+ <default_value>on</default_value>
+ </field>
+ <field>
+ <fieldname>scan_ole2</fieldname>
+ <fielddescr>Scan OLE2</fielddescr>
+ <description>Scan Microsoft Office document macros.</description>
+ <type>checkbox</type>
+ <default_value>on</default_value>
+ </field>
+ <field>
+ <fieldname>scan_html</fieldname>
+ <fielddescr>Scan HTML</fielddescr>
+ <description>Perform HTML normalization and decryption of Microsoft Script Encoder code.</description>
+ <type>checkbox</type>
+ <default_value>on</default_value>
+ </field>
+ <field>
+ <fieldname>scan_archive</fieldname>
+ <fielddescr>Scan archives</fielddescr>
+ <description>Try to uncompress archived files to scan their content.</description>
+ <type>checkbox</type>
+ <default_value>on</default_value>
+ </field>
+ </fields>
+ <custom_php_command_before_form>
+ clamav_before_form(&amp;$pkg);
+ </custom_php_command_before_form>
+ <custom_php_validation_command>
+ clamav_validate_input($post, &amp;$input_errors);
+ </custom_php_validation_command>
+ <custom_php_resync_config_command>
+ clamav_resync();
+ </custom_php_resync_config_command>
</packagegui>
-