<?xml version="1.0" encoding="utf-8" ?>
<packagegui>
  <name>dspam</name>
  <version>1.0</version>
  <title>Services: DSPAM: Main</title>
  <include_file>/usr/local/pkg/dspam.inc</include_file>
  <!-- Menu is where this packages menu will appear -->
  <menu>
    <name>dspam</name>
    <section>Services</section>
    <configfile>dspam.xml</configfile>
    <url>/dspam-perf.php</url>
  </menu>
  <menu>
    <name>DSPAM Legacy WebGUI</name>
    <tooltiptext>Original Perl-based GUI</tooltiptext>
    <section>Services</section>
    <url>/vhosts/dspam/dspam.cgi</url>
  </menu>
  <service>
    <name>dspam</name>
    <rcfile>/usr/local/etc/rc.d/dspam.sh</rcfile>
  </service>
  <tabs>
    <tab>
      <text>Overview</text>
      <url>/dspam.php</url>
      <active/>
    </tab>
    <tab>
      <text>Performance</text>
      <url>/dspam-perf.php</url>
    </tab>
    <tab>
      <text>Preferences</text>
      <url>/dspam-prefs.php</url>
    </tab>
    <tab>
      <text>Alerts</text>
      <url>/pkg.php?xml=dspam_alerts.xml</url>
    </tab>
    <tab>
      <text>Quarantine</text>
      <url>/dspam-quarantine.php</url>
    </tab>
    <tab>
      <text>Analysis</text>
      <url>/dspam-analysis.php</url>
    </tab>
    <tab>
      <text>History</text>
      <url>/dspam-history.php</url>
    </tab>
  </tabs>
  <!--
    configpath gets expanded out automatically and config items
    will be stored in that location
  -->
  <configpath>['installedpackages']['dspam']['config']</configpath>
  <!-- PHP files -->
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-perf.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-admin.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-admin-graph.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-admin-prefs.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-admin-stats.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam_settings.xml</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-settings.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-settings-algo.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-settings-bmta.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-settings-feat.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-header.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-overr.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-settings-prefs.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-spwd.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-tuser.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-train.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam-viewmsg.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/verdana.ttf</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-prefs.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-quarantine.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-analysis.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-analysis-graph.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-hfragment.php</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/dspam-history.php</item>
  </additional_files_needed>
  <!-- package files -->
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.abyssworld.de/packages/config/dspam_alerts.xml</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/dspam.inc</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/dspam-config.inc</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/dspam-guifunc.inc</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/dspam-pkgfunc.inc</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/dspam-utilfunc.inc</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/000.mysql.sh</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/010.clamav-clamd.sh</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/020.clamav-freshclam.sh</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/030.p3scan.sh</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/clamd.conf</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/default.prefs.sample</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/pkg/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/freshclam.conf</item>
  </additional_files_needed>
  <!-- misc files -->
  <additional_files_needed>
    <prefix>/usr/local/www/wizards/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/wizards/dspam_wizard.xml</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/wizards/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/wizards/dspam-lda-proxy.png</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/wizards/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/wizards/dspam-pop-proxy.png</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/wizards/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/wizards/dspam-smtp-relay.png</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/pkg/verdana.ttf</item>
  </additional_files_needed>
  <additional_files_needed>
    <prefix>/usr/local/www/themes/metallic/</prefix>
    <chmod>0755</chmod>
    <item>http://www.pfsense.com/packages/config/dspam/www/themes/metallic/dspam.css</item>
  </additional_files_needed>
  <!--
    fields gets invoked when the user adds or edits a item. The following items
    will be parsed and rendered for the user as a gui with input, and selectboxes.
  -->
  <!--
    Arbitrary PHP Code, that gets executed if a certain event gets triggered.
  -->
  <custom_php_resync_config_command>
    sync_package_dspam();
  </custom_php_resync_config_command>
  <custom_php_install_command>
      custom_php_install_command();
  </custom_php_install_command>
  <custom_php_deinstall_command>
      custom_php_deinstall_command();
  </custom_php_deinstall_command>
</packagegui>