<?xml version="1.0" encoding="utf-8"?> <packagegui> <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&id=0</url> </menu> <service> <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> <!-- 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(&$pkg); </custom_php_command_before_form> <custom_php_validation_command> clamav_validate_input($post, &$input_errors); </custom_php_validation_command> <custom_php_resync_config_command> clamav_resync(); </custom_php_resync_config_command> </packagegui>