[buildout]

versions = versions

extends =
  ../../component/apache-php/buildout.cfg  
  ../../component/apache/buildout.cfg
  ../../component/curl/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/dcron/buildout.cfg
  ../../component/logrotate/buildout.cfg
  ../../stack/shacache-client.cfg
  ../../component/lxml-python/buildout.cfg
  ../../component/python-2.7/buildout.cfg
  ../../component/gzip/buildout.cfg
  ../../component/postfix/buildout.cfg
  ../../component/phantomjs/buildout.cfg

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

# Use only quite well working sites.
allow-hosts +=
  *.googlecode.com
  *.nexedi.org
  *.python.org
  *.sourceforge.net
  alastairs-place.net
  bitbucket.org
  dist.repoze.org
  effbot.org
  github.com
  launchpad.net
  peak.telecommunity.com
  sourceforge.net
  www.dabeaz.com
  www.owlfish.com

parts =
  postfix
  apache-php
  application
  template
  bootstrap-conf
  boot-conf-manifest
  configuration-js-template
  core-ajaxplorer-manifest
  mailer-plugin-template
  share-url-generation-template
  postfix-service-template
  sendmail-script-template
  postfix-conf-template
  postfix-master-conf-template
  test-ajaxplorer-js-template
  test-sendmail-php-template
  postfix-promise-template
  lxml-python
  eggs
  instance-recipe-egg

unzip= true

[eggs]
recipe = zc.recipe.egg
eggs =

[instance-recipe]
egg = slapos.cookbook
module = davstorage

[instance-recipe-egg]
recipe = zc.recipe.egg
python = python2.7
eggs = ${instance-recipe:egg}

[application]
recipe = hexagonit.recipe.download
url = http://downloads.sourceforge.net/project/ajaxplorer/ajaxplorer/stable-channel/5.0.2/ajaxplorer-core-5.0.2.tar.gz
md5sum = ac5490921b877cd99ba302938b3cfbc7
strip-top-level-dir = true

[template]
# Default template for the instance.
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
md5sum = bed788dee6daf05349c4577e7a7f1299
output = ${buildout:directory}/template.cfg
mode = 0644

[instance-davstorage]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-davstorage.cfg
md5sum = 740875e43048b25278e0ebbfa9b56af7
output = ${buildout:directory}/template-davstorage.cfg
mode = 0644

[bootstrap-conf]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/templates/${:filename}
filename = bootstrap_conf.php
translation = fr_FR.UTF-8
output = ${application:location}/conf/${:filename}
mode = 0644
md5sum = f8bbf14507f9c22d7b69696345e57c2e

[boot-conf-manifest]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/templates/${:filename}
filename = boot-conf-manifest.xml.in
language = fr
mode = 0644
md5sum = 856e39c6bf42dd28a593c45b966b97d1
output = ${application:location}/plugins/boot.conf/manifest.xml

[core-ajaxplorer-manifest]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/templates/${:filename}
filename = core-ajaxplorer-manifest.xml.in
language = fr
php-cli-location = ${apache-php:location}/bin/php
mode = 0644
md5sum = ebdd3789aa65ed33130481c487018d6e
output = ${application:location}/plugins/core.ajaxplorer/manifest.xml

[configuration-js-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = configuration.js
mode = 0644
md5sum = 792917aea5bafdc9a973a9071ae89ec6
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[mailer-plugin-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = class.phpmailer-lite.php
mode = 0644
md5sum = 4649b152e1f639873a03149eccc70aaf
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[share-url-generation-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = class.AJXP_Utils.php
mode = 0644
md5sum = f681c0a0a17f4b2a0896b952e53239ed
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[postfix-service-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = postfix.in
mode = 0755
md5sum = 9f136d6c217f26e06f7437ceeb7b0c42
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[sendmail-script-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = sendmail.in
mode = 0755
md5sum = d2ea9ecfd653dcb0bd06c06bcaabc5df
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[postfix-conf-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = main.cf.in
mode = 0644
md5sum = a72b679c523f587422f95d295de27876
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[postfix-master-conf-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = master.cf.in
mode = 0644
md5sum = de33aa9ef530ef3c7661b914d2d1fbef
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[test-ajaxplorer-js-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = test-boot.js
mode = 0644
md5sum = a6a98bf3c9fcb6c330dea513d13eb054
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[test-sendmail-php-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = test-sendmail.php
mode = 0644
md5sum = ab19eff22b50fbab18879f7b96ae7e8e
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[postfix-promise-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
filename = test-postfix.sh.in
mode = 0644
md5sum = d725575994cd871e6c6c419603605fe5
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[lxml-python]
python = python2.7