buildout.cfg 1.73 KB
Newer Older
1 2 3 4 5
[buildout]
parts =
  apache-php-postgres
  eggs
  template
Marco Mariani's avatar
Marco Mariani committed
6
  psycopg2
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
  template-apache-php
  template-postgres


extends =
  ../../component/apache/buildout.cfg
  ../../component/apache-php/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/dcron/buildout.cfg
  ../../component/gzip/buildout.cfg
  ../../component/logrotate/buildout.cfg
  ../../component/lxml-python/buildout.cfg
  ../../component/postgresql/buildout.cfg
  ../../component/stunnel/buildout.cfg
  ../slapos.cfg


[application]
recipe = hexagonit.recipe.download
strip-top-level-dir = true



[eggs]
recipe = zc.recipe.egg
eggs =
  ${lxml-python:egg}
Marco Mariani's avatar
Marco Mariani committed
34
  ${psycopg2:egg}
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
  slapos.toolbox
  cns.recipe.symlink



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


[template-apache-php]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-apache-php.cfg.in
output = ${buildout:directory}/template-apache-php.cfg
#md5sum = 
mode = 0644

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


# Dummy parts in case no application configuration file is needed
[application-template]
filename =
location =

[application-configuration]
location =

Marco Mariani's avatar
Marco Mariani committed
71 72 73
[psycopg2-env]
PATH = ${postgresql:location}/bin:%(PATH)s

74

Marco Mariani's avatar
Marco Mariani committed
75 76 77 78
[psycopg2]
recipe = zc.recipe.egg:custom
egg = psycopg2
define = PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3
Marco Mariani's avatar
Marco Mariani committed
79
environment = psycopg2-env
Marco Mariani's avatar
Marco Mariani committed
80 81 82 83 84 85 86 87
include-dirs =
    ${postgresql:location}/include
library-dirs =
    ${postgresql:location}/lib
rpath = 
    ${postgresql:location}/lib