[buildout]

extends =
  ../../stack/lamp/buildout.cfg
  ../../component/git/buildout.cfg

parts +=
  pear-modules
  slapos.cookbook-repository
  slapos-cookbook
  check-recipe
  instance
  eggs-cmd

develop =
  ${:parts-directory}/slapos.cookbook-repository

[eggs-cmd]
recipe = zc.recipe.egg
eggs = iw.recipe.cmd

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

[application]
recipe = slapos.recipe.build:download-unpacked
url = http://ftp.drupal.org/files/projects/drupal-7.21.tar.gz
md5sum = eff054cd53be39ff719f77c81dce1aac

[application-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/settings.php.in
md5sum = 393813c5660590dfde74f835afa3389a
download-only = True
filename = template.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[application-configuration]
location = sites/default/settings.php

[custom-application-deployment]
path = ${custom-application-deployment-template:output}
part-list = drupal-init publish-drupal-admin-password



[custom-application-deployment-template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-custom.cfg.in
output = ${buildout:directory}/instance-custom.cfg
md5sum = d318cbc4d417616b9d7afa4a398f3569
mode = 0644


[pear-modules]
recipe = cp.recipe.cmd
pear = ${apache-php:location}/bin/pear
install_cmd =
    ${:pear} channel-info pear.drush.org >/dev/null || ${:pear} channel-discover pear.drush.org
    ${:pear} info drush/drush >/dev/null || ${:pear} install drush/drush
    ${:pear} info Console_Table >/dev/null || ${:pear} install Console_Table

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

[versions]
slapos.cookbook =