<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
<packagegui>
    <copyright></copyright>
    <description>Describe your package here</description>
    <requirements>Describe your package requirements here</requirements>
    <faq>Currently there are no FAQ items provided.</faq>
	<name>vnstat2</name>
	<version>1.0</version>
	<title>Vnstat2</title>
	<aftersaveredirect>/pkg_edit.php?xml=vnstat2.xml&amp;id=0</aftersaveredirect>
	<include_file>/usr/local/pkg/vnstat2.inc</include_file>
	<menu>
		<name>vnstat2</name>
		<tooltiptext></tooltiptext>
		<section>Status</section>
		<url>/pkg_edit.php?xml=vnstat2.xml&amp;id=0</url>
	</menu>
	<tabs>
		<tab>
			<text>Config</text>
			<url>/pkg_edit.php?xml=vnstat2.xml&amp;id=0</url>
			<active/>
		</tab>
		<tab>
			<text>Vnstati</text>
			<url>/pkg_edit.php?xml=vnstati.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Access vnstat php frontend</text>
			<url>/vnstat2</url>
		</tab>
		<tab>
			<text>vnstat info</text>
			<url>/pkg_edit.php?xml=vnstatoutput.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>vnstat summary</text>
			<url>/diag_vnstat.php</url>
		</tab>
	</tabs>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://www.pfsense.com/packages/config/vnstat2/vnstat2.inc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://files.pfsense.org/packages/8/vnstat/vnstat_php_frontend-1.4.1.tar.gz</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://www.pfsense.com/packages/config/vnstat2/vnstati.xml</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0744</chmod>
		<item>http://www.pfsense.com/packages/config/vnstat2/vnstat2.sh</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://www.pfsense.com/packages/config/vnstat2/vnstatoutput.xml</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://files.pfsense.org/packages/8/vnstat/diag_vnstat.abc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://files.pfsense.org/packages/8/vnstat/diag_vnstat2.abc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://files.pfsense.org/packages/8/vnstat/vnstat2_img.abc</item>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
		<item>http://files.pfsense.org/packages/8/vnstat/vnstati.abc</item>
	</additional_files_needed>
	<fields>
		<field>
			<description>Change rotate day of the month (by default set to 1)</description>
			<fielddescr>MonthRotate</fielddescr>
			<fieldname>monthrotate</fieldname>
			<type>select</type>
			<size>3</size>
			<default_value>1</default_value>
                        <options>
                                 <option><name>1</name><value>1</value></option>
                                 <option><name>2</name><value>2</value></option>
                                 <option><name>3</name><value>3</value></option>
                                 <option><name>4</name><value>4</value></option>
                                 <option><name>5</name><value>5</value></option>
                                 <option><name>6</name><value>6</value></option>
                                 <option><name>7</name><value>7</value></option>
                                 <option><name>8</name><value>8</value></option>
                                 <option><name>9</name><value>9</value></option>
                                 <option><name>10</name><value>10</value></option>
                                 <option><name>11</name><value>11</value></option>
                                 <option><name>12</name><value>12</value></option>
                                 <option><name>13</name><value>13</value></option>
                                 <option><name>14</name><value>14</value></option>
                                 <option><name>15</name><value>15</value></option>
                                 <option><name>16</name><value>16</value></option>
                                 <option><name>17</name><value>17</value></option>
                                 <option><name>18</name><value>18</value></option>
                                 <option><name>19</name><value>19</value></option>
                                 <option><name>20</name><value>20</value></option>
                                 <option><name>21</name><value>21</value></option>
                                 <option><name>22</name><value>22</value></option>
                                 <option><name>23</name><value>23</value></option>
                                 <option><name>24</name><value>24</value></option>
                                 <option><name>25</name><value>25</value></option>
                                 <option><name>26</name><value>26</value></option>
                                 <option><name>27</name><value>27</value></option>
                                 <option><name>28</name><value>28</value></option>
                        </options>
		</field>
		<field>
			<description>Enable vnstat php frontend (Note that no login will be needed)</description>
			<fielddescr>Enable php frontend for vnstat</fielddescr>
			<fieldname>vnstat_phpfrontend</fieldname>
			<type>checkbox</type>
		</field>
	</fields>
	<custom_add_php_command>change_vnstat_conf();</custom_add_php_command>
	<custom_php_resync_config_command></custom_php_resync_config_command>
	<custom_php_install_command>vnstat_install_config();</custom_php_install_command>
	<custom_php_deinstall_command>vnstat_install_deinstall();</custom_php_deinstall_command>
</packagegui>