[buildout]

extends =
  ../../component/apache/buildout.cfg
  ../../component/perl/buildout.cfg
  ../../component/git/buildout.cfg
  ../../component/nginx/buildout.cfg
  ../../component/ruby/buildout.cfg
  ../../component/icu/buildout.cfg
  ../../stack/slapos.cfg

parts =
  apache
  nginx
  ruby
  perl
  git
  gitweb
  slapos-cookbook
  template
  template-gitrepo
  collective-recipe-cmd
  ruby-gems
  python-eggs

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

[template-gitrepo]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-gitrepo.cfg
md5sum = 15dd1b7ea3259197b847e94342adf872
output = ${buildout:directory}/template-gitrepo.cfg
mode = 0644

[template-download]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
download-only = true

[template-gitweb-cgi]]
<= template-download
filename = gitweb.cgi.in
md5sum = 5c720202053bfba06eec6e97d8d47cd0

[template-gitweb-conf]
<= template-download
filename = gitweb.conf.in
md5sum = 580d4bd2723f7e0a44ec8fc5b360b429

[template-git-http-backend-cgi]
<= template-download
filename = git-http-backend.cgi.in
md5sum = 7e0562b0ce8d48bc8f6b422850dc53af

[template-httpd-conf]
<= template-download
filename = httpd.conf.in
md5sum = e5e6a6de32323248d11918934f6aad99

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

[ruby-gems]
recipe = rubygemsrecipe
ruby-executable = ${ruby:location}/bin/ruby
gems =
  charlock_holmes==0.6.8
  bundler
  rake
  rails
  railties
gem-options = --with-icu-lib=${icu:location}/lib/ --with-icu-dir=${icu:location}/
environment =
  LDFLAGS = -L${icu:location}/lib -Wl,-rpath=${icu:location}/lib
  CFLAGS = -I${icu:location}/include

[python-eggs]
recipe = zc.recipe.egg
eggs =
  pygments

[version]
slapos.cookbook = 0.64.2