<?xml version="1.0"?>


<Wizard
	name="general"
	libScript="__WIZ_HOME__/common/scripts/functions.sh"
	wizardTitle="NFS Wizard"
	imagePosition="top"
	defaultImage="__WIZ_HOME__/nfs_wizard/images/NFS.png"
	perlModule="__WIZ_HOME__/nfs_wizard/scripts/NFSConf.pm"
	rpm="nfs-utils"
	summaryFunc="do_it"
>

	<Variable
		name="varwiz_nfs_dir"
		shellVariable="wiz_nfs_dir"
		defaultValue="/home/public"
		persistent="false"
	>
	</Variable>
	<Variable
		name="wiz_nfs_level"
		comment="The proxy access control level"
		shellVariable="wiz_nfs_level"
		defaultValue="2"
	>
	</Variable>
	<Variable
		name="wiz_netmask"
		shellVariable="wiz_netmask"
	>
	</Variable>
	<Page
		helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-nfs.html"
		name="welcome"
		jumpPage="nfs connections"
		executionLevel="NORMAL"
		nextFinish="false"
		canBack="true"
		canCancel="true"
	>
		<Info
			name="info1"
			alignement="Center"
			helpText="NFS Server Configuration Wizard"
			guiType="label"
			fontName="Default"
			fontStyle="bold"
			fontSize="14"
		>
		</Info>

		<Info
			name="info2"
			alignement="Center"
			guiType="label"
			fontName="Default"
			fontStyle="plain"
			fontSize="11"
		>
		</Info>

		<Info
			name="info3"
			alignement="Center"
			helpText="This wizard will help you configuring the NFS Server for your network."
			guiType="label"
			fontName="Default"
			fontStyle="plain"
			fontSize="11"
		>
		</Info>
	</Page>

	<Page
		helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-nfs.html"
		name="nfs connections"
		jumpPage="ask_level"
		executionLevel="NORMAL"
		nextFinish="false"
		canBack="true"
		canCancel="true"
	>

		<Info
			name="nfs Title"
			alignement="Center"
			helpText="NFS Server"
			guiType="label"
			fontName="Default"
			fontStyle="bold"
			fontSize="14"
		>
		</Info>

		<Info
			name="info27"
			alignement="Center"
			guiType="label"
			fontName="Default"
			fontStyle="plain"
			fontSize="11"
		>
		</Info>

		<TDline
			name="line1"
		>
		</TDline>

		<Info
			name="info30"
			alignement="Center"
			guiType="label"
			fontName="Default"
			fontStyle="plain"
			fontSize="11"
		>
		</Info>

		<Freetext
			variableName="varwiz_nfs_dir"
			helpText="Directory:"
			guiType="textfield"
			editable="true"
		>
		</Freetext>
	</Page>

	<Page
		name="ask_level"
		helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-proxy.html"
		func="chooser"
		executionLevel="NORMAL"
		nextFinish="false"
		canBack="true"
		canCancel="true"
	>

		<Target
			targetName="doit"
			jumpIndex="1"
		>
		</Target>

		<Target
			targetName="shownet"
			jumpIndex="2"
		>
		</Target>
		<Info
			helpText="Access Control"
		>
		</Info>


		<Info
			helpText="NFS can be restricted to a certain ip class"
		>
		</Info>

		<Info
			helpText="Choose the level that suits your needs. If you don't know, the Local Network level is usually the most appropriate. Beware that the All level may be not secure."
		>
		</Info>


		<Chooser
			name="chooser1"
			variableName="wiz_nfs_level"
		>

			<Option
				value="1"
				description="All - No access restriction"
			>
			</Option>

			<Option
				value="2"
				description="Local Network - access for local network (recommended)"
			>
			</Option>
		</Chooser>
	</Page>
	<Page
		name="shownet"
		helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-proxy.html"
		jumpPage="doit"
		executionLevel="NORMAL"
		nextFinish="false"
		is="wiz_nfs_level=2"
		canBack="true"
		canCancel="true"
	>

		<Info
			helpText="Grant access on local network"
		>
		</Info>


		<Info
			helpText="Access will be allowed for hosts on the network. Here is the information found about your current local network, you can modify it if needed."
		>
		</Info>
		<Freetext
			name="f_wiz_squid_mynetw"
			fillfunc="network_mask"
			variableName="wiz_netmask"
			helpText="Authorized network:"
			editable="true"
		>
		</Freetext>

	</Page>

	<Page
		helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-samba.html"
		name="doit"
		func="do_it"
		nextButtonText="Configure"
		executionLevel="NORMAL"
		nextFinish="false"
		canBack="true"
		canCancel="true"
	>
		<Target
			targetName="catastrophic_exit"
			jumpIndex="2"
		>
		</Target>

		<Target
			targetName="congratulations"
			jumpIndex="10"
		>
		</Target>

		<Info
			helpText="The wizard collected the following parameters."
		>
		</Info>

		<Freetext
			name="freetext"
			variableName="varwiz_nfs_dir"
			helpText="Exported dir:"
			editable="false"
		>
		</Freetext>

		<Freetext
			name="freetext"
			variableName="wiz_nfs_level"
			helpText="Access :"
			editable="false"
		>
		</Freetext>

		<Freetext
			name="freetext1"
			variableName="wiz_netmask"
			helpText="Netmask :"
			editable="false"
		>
		</Freetext>

	</Page>

	<Page
		helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-nfs.html"
		name="congratulations"
		nextButtonText="Quit"
		executionLevel="NORMAL"
		nextFinish="true"
		canBack="false"
		canCancel="false"
	>

		<Info
			helpText="Congratulations"
		>
		</Info>
		<Info
			helpText="The wizard successfully configured your NFS Server"
		>
		</Info>
	</Page>
</Wizard>