<?xml version="1.0" encoding="utf-8" ?>
<packagegui>
	<title>Services: LCDproc</title>
	<name>lcdproc</name>
	<version>0.5.2_1-p4</version>
	<savetext>Save</savetext>
	<include_file>/usr/local/pkg/lcdproc.inc</include_file>
	<tabs>
		<tab>
			<text>Server</text>
			<url>/pkg_edit.php?xml=lcdproc.xml&amp;id=0</url>
			<active/>
		</tab>
		<tab>
			<text>Screens</text>
			<url>/pkg_edit.php?xml=lcdproc_screens.xml&amp;id=0</url>
		</tab>
	</tabs>
	<menu>
		<name>LCDproc</name>
		<tooltiptext>Set LCDproc settings such as display driver and com port</tooltiptext>
		<section>Services</section>
		<url>/pkg_edit.php?xml=lcdproc.xml&amp;id=0</url>
	</menu>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/lcdproc/lcdproc.inc</item>
	    <prefix>/usr/local/pkg/</prefix>
	    <chmod>0755</chmod>
	</additional_files_needed>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/lcdproc/lcdproc_screens.xml</item>
	    <prefix>/usr/local/pkg/</prefix>
	    <chmod>0755</chmod>
	</additional_files_needed>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/lcdproc/lcdproc_client.php</item>
	    <prefix>/usr/local/pkg/</prefix>
	    <chmod>0755</chmod>
	</additional_files_needed>
	<service>
		<name>lcdproc</name>
		<rcfile>lcdproc.sh</rcfile>
		<executable>lcdproc</executable>
	</service>
	<fields>
		<field>
			<fielddescr>Enable LCDproc</fielddescr>
			<fieldname>enable</fieldname>
			<type>checkbox</type>
		</field>			
		<field>
			<fieldname>comport</fieldname>
			<fielddescr>Com Port</fielddescr>
			<description>Set the com port LCDproc should use.</description>
			<type>select</type>
			<options>
				<option>
					<value>none</value>
					<name>none</name>
				</option>
				<option>
					<value>com2</value>
					<name>Serial Com port 2 (/dev/cua1)</name>
				</option>
				<option>
					<value>ucom1</value>
					<name>USB Com port 1 (/dev/cuaU0)</name>
				</option>
				<option>
					<value>ucom2</value>
					<name>USB Com port 2 (/dev/cuaU1)</name>
				</option>
				<option>
					<value>lpt1</value>
					<name>Parallel port 1 (/dev/lpt0)</name>
				</option>
			</options>
			<default_value>0</default_value>
		</field>
		<field>
			<fieldname>driver</fieldname>
			<fielddescr>Driver</fielddescr>
			<description>Set the LCD driver LCDproc should use.</description>
			<type>select</type>
			<options>
				<option>
					<value>bayrad</value>
					<name>bayrad</name>
				</option>
				<option>
					<value>CFontz</value>
					<name>CrystalFontz</name>
				</option>
				<option>
					<value>CFontz633</value>
					<name>CrystalFontz 633</name>
				</option>
				<option>
					<value>CFontzPacket</value>
					<name>CrystalFontz Packet</name>
				</option>
				<option>
					<value>curses</value>
					<name>curses</name>
				</option>
				<option>
					<value>CwLnx</value>
					<name>CwLnx</name>
				</option>
				<option>
					<value>ea65</value>
					<name>ea65</name>
				</option>
				<option>
					<value>EyeBoxOne</value>
					<name>EyeBoxOne</name>
				</option>
				<option>
					<value>gl5</value>
					<name>gl5</name>
				</option>
				<option>
					<value>glcdlib</value>
					<name>glcdlib</name>
				</option>
				<option>
					<value>glk</value>
					<name>glk</name>
				</option>
				<option>
					<value>hd44780</value>
					<name>hd44780</name>
				</option>
				<option>
					<value>icp_a106</value>
					<name>icp_a106</name>
				</option>
				<option>
					<value>imon</value>
					<name>imon</name>
				</option>
				<option>
					<value>IOWarrior</value>
					<name>IOWarrior</name>
				</option>
				<option>
					<value>irman</value>
					<name>irman</name>
				</option>
				<option>
					<value>joy</value>
					<name>joy</name>
				</option>
				<option>
					<value>lb216</value>
					<name>lb216</name>
				</option>
				<option>
					<value>lcdm001</value>
					<name>lcdm001</name>
				</option>
				<option>
					<value>lcterm</value>
					<name>lcterm</name>
				</option>
				<option>
					<value>lirc</value>
					<name>lirc</name>
				</option>
				<option>
					<value>MD8800</value>
					<name>MD8800</name>
				</option>
				<option>
					<value>ms6931</value>
					<name>ms6931</name>
				</option>
				<option>
					<value>mtc_s16209x</value>
					<name>mtc_s16209x</name>
				</option>
				<option>
					<value>MtxOrb</value>
					<name>MtxOrb</name>
				</option>
				<option>
					<value>NoritakeVFD</value>
					<name>NoritakeVFD</name>
				</option>
				<option>
					<value>picolcd</value>
					<name>picolcd</name>
				</option>
				<option>
					<value>pyramid</value>
					<name>pyramid</name>
				</option>
				<option>
					<value>Sed1330</value>
					<name>Sed1330</name>
				</option>
				<option>
					<value>sed1520</value>
					<name>sed1520</name>
				</option>
				<option>
					<value>serialpos</value>
					<name>serialpos</name>
				</option>
				<option>
					<value>serialVFD</value>
					<name>serialVFD</name>
				</option>
				<option>
					<value>sli</value>
					<name>sli</name>
				</option>
				<option>
					<value>stv5730</value>
					<name>stv5730</name>
				</option>
				<option>
					<value>svga</value>
					<name>svga</name>
				</option>
				<option>
					<value>t6963</value>
					<name>t6963</name>
				</option>
				<option>
					<value>text</value>
					<name>text</name>
				</option>
				<option>
					<value>tyan</value>
					<name>tyan</name>
				</option>
				<option>
					<value>ula200</value>
					<name>ula200</name>
				</option>
				<option>
					<value>xosd</value>
					<name>xosd</name>
				</option>
			</options>
			<default_value>pyramid</default_value>
		</field>
	</fields>
	<custom_php_command_before_form>
		before_form_lcdproc(&amp;$pkg);
	</custom_php_command_before_form>
	<custom_php_validation_command>
		validate_form_lcdproc($_POST, &amp;$input_errors);
	</custom_php_validation_command>
	<custom_php_resync_config_command>
		sync_package_lcdproc();
	</custom_php_resync_config_command>
</packagegui>