[buildout]
recipe_location = ${:parts-directory}/slapos.cookbook
develop = ${:recipe_location}

extends =
  ../../component/kumo/buildout.cfg
  ../../component/memstrike/buildout.cfg
  ../../component/lxml-python/buildout.cfg

find-links =
  http://www.nexedi.org/static/packages/source/slapos.buildout/
  http://www.nexedi.org/static/packages/source/

parts =
  template
  eggs
  kumo
  memstrike
  checkrecipe

versions = versions

# separate from system python
include-site-packages = false
exec-sitecustomize = false
allowed-eggs-from-site-packages =

[kumo]
environment += CXXFLAGS=-DKUMO_IPV6

[checkrecipe]
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link

[slapos.cookbook]
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
command = "${git:location}/bin/git" clone -b nosqltestbed --quiet http://git.erp5.org/repos/slapos.git "${:location}"
update-command = cd "${:location}" && "${git:location}/bin/git" fetch --quiet && "${git:location}/bin/git" reset --hard @{upstream}

[eggs]
dummy = ${slapos.cookbook:location}
recipe = zc.recipe.egg
eggs =
  ${lxml-python:egg}
  PyXML
  Zope2
  collective.recipe.template
  netaddr
  slapos.core
  xml_marshaller
  slapos.cookbook
  slapos.tool.nosqltester
  slapos.tool.nosqltester_manager
  slapos.tool.nosqltester_manager.kumo
  erp5.utils.benchmark

[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
md5sum = 1c1000ea9829f23a897d256373191df6
output = ${buildout:directory}/template.cfg
mode = 0644

[versions]
# Use SlapOS patched zc.buildout
zc.buildout = 1.5.3-dev-SlapOS-001