<?xml version="1.0" encoding="utf-8"?>
<packagegui>
	<include_file>freeradius.inc</include_file>
	<version>1.1.2</version>

	<!-- Installation -->
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/freeradiusclients.xml</item>
	</additional_files_needed>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/freeradiussettings.xml</item>
	</additional_files_needed>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/freeradius.inc</item>
	</additional_files_needed>
	<custom_php_install_command>
		freeradius_install_command();
	</custom_php_install_command>
	<menu>
		<name>FreeRADIUS</name>
		<tooltiptext>Modify FreeRADIUS users, clients, and settings.</tooltiptext>
		<section>Services</section>
		<url>/pkg.php?xml=freeradius.xml</url>
	</menu>
	<service>
		<name>FreeRADIUS</name>
		<description>The FreeRADIUS daemon.</description>
		<rcfile>radiusd.sh</rcfile>
		<executable>radiusd</executable>
	</service>

	<!-- Interface -->
	<name>freeradius</name>
	<title>FreeRADIUS: Users</title>
	<tabs>
		<tab>
			<text>Users</text>
			<url>/pkg.php?xml=freeradius.xml</url>
			<active/>
		</tab>
		<tab>
			<text>Clients</text>
			<url>/pkg.php?xml=freeradiusclients.xml</url>
		</tab>
		<tab>
			<text>Settings</text>
			<url>/pkg_edit.php?xml=freeradiussettings.xml&amp;id=0</url>
		</tab>
	</tabs>
	<adddeleteeditpagefields>
		<columnitem>
			<fielddescr>Username</fielddescr>
			<fieldname>username</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Description</fielddescr>
			<fieldname>description</fieldname>
		</columnitem>
	</adddeleteeditpagefields>
	<fields>
		<field>
			<fieldname>username</fieldname>
			<fielddescr>Username</fielddescr>
			<description>Enter the username.</description>
			<required/>
			<type>input</type>
		</field>
		<field>
			<fieldname>password</fieldname>
			<fielddescr>Password</fielddescr>
			<description>Enter the password for this username.</description>
			<required/>
			<type>password</type>
		</field>
		<field>
			<fieldname>description</fieldname>
			<fielddescr>Description</fielddescr>
			<description>You may enter a description here for your reference (not parsed).</description>
			<type>input</type>
		</field>
	</fields>
	<custom_delete_php_command>
		freeradius_users_resync();
	</custom_delete_php_command>
	<custom_php_resync_config_command>
		freeradius_users_resync();
	</custom_php_resync_config_command>
</packagegui>