<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE packagegui SYSTEM "../../schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="../../xsl/package.xsl"?>
<packagegui>
	<copyright><![CDATA[
/* $Id$ */
/* ========================================================================== */
/*
    authng.xml
    part of pfSense (http://www.pfSense.com)
    Copyright (C) 2007 Daniel S. Haischt <me@daniel.stefan.haischt.name>
    All rights reserved.

    Based on m0n0wall (http://m0n0.ch/wall)
    Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
    All rights reserved.
                                                                              */
/* ========================================================================== */
/*
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:

     1. Redistributions of source code must retain the above copyright notice,
        this list of conditions and the following disclaimer.

     2. Redistributions in binary form must reproduce the above copyright
        notice, this list of conditions and the following disclaimer in the
        documentation and/or other materials provided with the distribution.

    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
    AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.
                                                                              */
/* ========================================================================== */
        ]]></copyright>
	<description>Describe your package here</description>
	<requirements>Describe your package requirements here</requirements>
	<faq>Currently there are no FAQ items provided.</faq>
	<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>https://packages.pfsense.org/packages/config/dspam/www/dspam.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-perf.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-admin.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-admin-graph.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-admin-prefs.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/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>https://packages.pfsense.org/packages/config/dspam/www/dspam-prefs.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-quarantine.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-analysis.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-analysis-graph.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/www/dspam-hfragment.php</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/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>https://packages.pfsense.org/packages/config/dspam/pkg/dspam.inc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/dspam-config.inc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/dspam-guifunc.inc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/dspam-pkgfunc.inc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/dspam-utilfunc.inc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/000.mysql.sh</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/010.clamav-clamd.sh</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/020.clamav-freshclam.sh</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/030.p3scan.sh</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/clamd.conf</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/packages/config/dspam/pkg/default.prefs.sample</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/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>https://packages.pfsense.org/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>https://packages.pfsense.org/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>https://packages.pfsense.org/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>https://packages.pfsense.org/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>https://packages.pfsense.org/packages/config/dspam/pkg/verdana.ttf</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/www/themes/metallic/</prefix>
		<chmod>0755</chmod>
		<item>https://packages.pfsense.org/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>