[buildout]
parts =
  sphinx-instance

[configuration]
sphinx_address = 127.0.0.1
sphinx_port = 9312
sphinx_sql_port = 9306

# below are candidates to be removed from global configuration
sphinx_data_dir = ${buildout:var-directory}/sphinx
sphinx_log_dir = ${buildout:log-directory}

[sphinx-instance]
depends =
  ${create-directories:command}
recipe = erp5.recipe.sphinxserver
sphinx_software_bin = ${software_definition:sphinx_software}/bin
sphinx_bin_folder =  ${buildout:data-bin-directory}
sphinx_data_dir = ${configuration:sphinx_data_dir}
sphinx_log_dir = ${configuration:sphinx_log_dir}
sphinx_conf_file = ${buildout:etc-directory}/sphinx.conf

# template related
sphinx_address = ${configuration:sphinx_address}
sphinx_port = ${configuration:sphinx_port}
sphinx_sql_port = ${configuration:sphinx_sql_port}