#
# $FML: main.cf.in,v 1.21 2008/05/25 04:04:54 fukachan Exp $
#

# fml version
#   This is important
# Example: fml 8.0
#          fml-current YYYYMMDD
#          fml-devel YYYYMMDD
fml_version	=	20121230

fml_owner	=	fml

fml_group	=	fml


###
### DIRECTORIES
###

# Example: /usr/local
prefix			= 	/usr/pkg
exec_prefix		=	${prefix}
datarootdir		=	${prefix}/share

# $config_dir holds the global main configuration and
# several version-dependent default configurations
# Example: /etc/fml
config_dir		= 	${prefix}/etc/fml

# Example: /etc/fml/defaults/$fml_version
default_config_dir	=	$config_dir/defaults/$fml_version

# group writable configuration directory.
# prepared but not used by default. 
# This may be used by ml_home_prefix handling.
# Example: /etc/fml/config.gw
group_writable_config_dir =     ${prefix}/etc/fml/config.gw

# defined for convenience, for example, we need this variable
# at include, include-ctl, which needs expansion of ../libexec/fml/fml.pl
# Example: /usr/local/libexec/fml
executable_prefix	=	${exec_prefix}/libexec/fml

# Example: /usr/local/libexec/fml/$fml_version
libexec_dir		= 	${exec_prefix}/libexec/fml/$fml_version

# Example: /usr/local/lib/fml/$fml_version
lib_dir			=	${exec_prefix}/lib/fml/$fml_version

# Example: /usr/local/share/fml/$fml_version
share_dir		=	${prefix}/share/fml/$fml_version

# site local library location
# which is prepared but not used by fml itself
local_lib_dir		=	${exec_prefix}/lib/fml/site_local


###
### DOMAIN AND MAPS BETWEEN DOMAIN AND DIRECTORY
###


# default domain. used when domain unspecified in using makefml et.al.
default_domain		=	example.net


# default parent directory of ml's home directories.
# same as fml 4.0 by default but ml_home_prefix_map(s) changes the map
# between ml and the home directory.
# Example: /var/spool/ml
default_ml_home_prefix	=	/var/fml


# primary of { $ml_name => $ml_home_dir } map relation.
# makefml/fml command try to modify this map.
#
# The syntax is "domain directory". For example
#   fml.org	/var/spool/ml/fml.org
#   nuinui.net	/var/spool/ml/nuinui.net
#
# Example: /etc/fml/ml_home_prefix
primary_ml_home_prefix_map	=	${prefix}/etc/fml/ml_home_prefix


# maps of { $ml_name => $ml_home_dir } map relation.
ml_home_prefix_maps		=	$primary_ml_home_prefix_map
					$virtual_maps

# obsolete map: DO NOT USE THIS MAP NOW.
#               This is used before introduction of $ml_home_prefix_maps.
#               It is backward compatible only.
# for example,
#   fml.org	/var/spool/ml/fml.org
#   nuinui.net	/var/spool/ml/nuinui.net
virtual_maps		=	$config_dir/virtual



###
### CONFIGURATION FILES AND DEFAULT PARAMETERS
###


# version dependent default_config.cf location
# Example: /etc/fml/defaults/8.0/default_config.cf
default_config_cf	=	$default_config_dir/default_config.cf


# site local default configuration file
# Example: /etc/fml/site_default_config.cf
site_default_config_cf	=	$config_dir/site_default_config.cf


# domain specific configurations
# Example: /etc/fml/domains/fml.org/default_config.cf
domain_default_config_cf =	$config_dir/domains/$default_domain/config.cf


# map between programs name and modules
# Example: /etc/fml/defaults/8.0/modules
default_module_config	=	$default_config_dir/modules


# map between programs name and command line options
# Example: /etc/fml/defaults/8.0/command_line_options
default_command_line_option_config = $default_config_dir/command_line_options


# CUI configuration menu
# Example: /etc/fml/defaults/8.0/menu.conf
default_cui_menu 	=	$default_config_dir/menu


# GUI configuration menu
# Example: /etc/fml/defaults/8.0/menu.conf
default_gui_menu 	=	$default_config_dir/menu


