[buildout]
extends =
  ../../stack/slapos.cfg
  ../../component/git/buildout.cfg
  ../../component/lxml-python/buildout.cfg
  ../../component/zip/buildout.cfg
  ../../component/busybox/buildout.cfg
  ../../component/shellinabox/buildout.cfg
  ../../component/pwgen/buildout.cfg
  ../../component/apache/buildout.cfg
  ../../component/mariadb/buildout.cfg
  ../../component/gcc/buildout.cfg

parts =
  slapos-cookbook-develop
  slapos-core-develop
  erp5-util-develop
  slapos-cookbook
  template
  lxml-python
  eggs
  zip
  git
  apache
  software_link


[software_link]
recipe = collective.recipe.template
output = ${buildout:parts-directory}/software_link/software_link.cfg
input = inline:
  [perl]
  recipe =
  location = ${perl:location}
  [python2.7]
  recipe =
  location = ${python2.7:location}
  # This python will be used by buildout as executable
  executable = ${python2.7:executable}
  [apache]
  recipe =
  location = ${apache:location}
  [mariadb]
  recipe =
  location = ${mariadb:location}
  [gcc]
  recipe =
  location = ${gcc:location}
  [gcc-fortran]
  recipe =
  location = ${gcc-fortran:location}


[erp5-util-repository.git]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/erp5.git
# We need 
# testnode: Use tempfile to generate a random socket path for slapos supervisord
# http://git.erp5.org/gitweb/erp5.git/commitdiff/1c827f206d147aa4e492ce4457dd9fb03522b96e?js=1
branch = testnode_software_link
git-executable = ${git:location}/bin/git
develop = true

[erp5-util-develop]
recipe = zc.recipe.egg:develop
setup = ${erp5-util-repository.git:location}

[slapos.cookbook-repository]
branch = testnode_software_link
# We need
# slapos.recipe.erp5testnode: support empty software-path-list
# http://git.erp5.org/gitweb/slapos.git/commit/4613e36337ddd7076fdae6356797cb7adc9d5783?js=1


[slapos.core-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/slapos.core.git
branch = master
git-executable = ${git:location}/bin/git
develop = true

[slapos-core-develop]
recipe = zc.recipe.egg:develop
setup = ${slapos.core-repository:location}

[eggs]
recipe = zc.recipe.egg
eggs =
  ${lxml-python:egg}
  zc.buildout
  slapos.libnetworkcache
  slapos.core
  jsonschema
  hexagonit.recipe.download
  netaddr
  inotifyx
  lock_file
  pytz
  erp5.util
  PyXML

[testnode]

scripts =
  testnode = erp5.util.testnode:main
  slapgrid-cp = slapos.grid.slapgrid:runComputerPartition
  slapgrid-sr = slapos.grid.slapgrid:runSoftwareRelease
  slapproxy = slapos.proxy:main


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

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

[versions]
erp5.util =
slapos.cookbook =
PyXML = 0.8.5
slapos.recipe.template = 2.6