aboutsummaryrefslogtreecommitdiffstats
path: root/packages/clamav.xml
diff options
context:
space:
mode:
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>
-