[buildout]

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

parts +=
  pear-modules


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

[application-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/settings.php.in
md5sum = 0406dfa6a733a541257ccf13c36366f7
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 = eedb3f91b9382234ab4289e8c404a454
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-5.8.0
    ${:pear} info Console_Table >/dev/null || ${:pear} install Console_Table