software.cfg 3.31 KB
Newer Older
1
[buildout]
2
extends =
Rafael Monnerat's avatar
Rafael Monnerat committed
3
  ../../stack/shacache-client.cfg
4
  ../../stack/cloudooo.cfg
5 6 7

versions = versions

8
# Local development
Rafael Monnerat's avatar
Rafael Monnerat committed
9
develop +=
10
  ${:parts-directory}/slapos.cookbook-repository
11
parts +=
12 13 14 15
# Local development
  slapos.cookbook-repository
  check-recipe
  slapos.cookbook-python2.6
Rafael Monnerat's avatar
Rafael Monnerat committed
16
  slapos.recipe.template-python2.6
17 18 19 20 21 22 23 24
# Create instance template
  template

# XXX: Workaround of SlapOS limitation
# Unzippig of eggs is required, as SlapOS do not yet provide nicely working
# development / fast switching environment for whole software
unzip = true

25 26 27 28 29
# Local development
[slapos.cookbook-repository]
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
Rafael Monnerat's avatar
Rafael Monnerat committed
30 31
#command = ${git:location}/bin/git clone --branch cloudooo --quiet http://git.erp5.org/repos/slapos.git ${:location}
command = ${git:location}/bin/git clone --branch cloudooo --quiet /opt/slapdev ${:location}
32 33 34 35 36 37 38 39 40 41 42 43 44 45
update-command = cd ${:location} && ${git:location}/bin/git pull --quiet

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

[slapos.cookbook-python2.6]
recipe = zc.recipe.egg
eggs = slapos.cookbook
scripts =
python = python2.6
ugly-depend-on = ${slapos.cookbook-repository:command} ${slapos.cookbook-repository:update-command}
46

Rafael Monnerat's avatar
Rafael Monnerat committed
47 48 49 50 51
[slapos.recipe.template-python2.6]
recipe = zc.recipe.egg
eggs = slapos.recipe.template
scripts =
python = python2.6
52

Rafael Monnerat's avatar
Rafael Monnerat committed
53 54 55 56 57 58 59 60 61 62 63 64
[template-jinja2-base]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}.in
rendered = ${buildout:directory}/${:filename}
# XXX: extra-context is needed because we cannot append to a key of an extended
# section.
extra-context =
context =
    key bin_directory buildout:bin-directory
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    ${:extra-context}
65

Rafael Monnerat's avatar
Rafael Monnerat committed
66 67 68 69 70
[template]
< = template-jinja2-base
# XXX: "template.cfg" is hardcoded in instanciation recipe
filename = template.cfg
template = ${:_profile_base_location_}/instance.cfg.in
71
md5sum = 46a1f4dc69ccf0b42b9d579e34b40df9
Rafael Monnerat's avatar
Rafael Monnerat committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
extra-context =
    key buildout_bin_directory buildout:bin-directory
    key dcron_location dcron:location
    key file_location file:location
    key fontconfig_location fontconfig:location
    key fonts_location fonts:location
    key freetype_location freetype:location
    key git_location git:location
    key imagemagick_location imagemagick:location
    key libICE_location libICE:location
    key libSM_location libSM:location
    key libX11_location libX11:location
    key libXau_location libXau:location
    key libXdmcp_location libXdmcp:location
    key libXext_location libXext:location
    key libXrender_location libXrender:location
    key libpng12_location libpng12:location
    key libreoffice_bin_location libreoffice-bin:location
    key libxcb_location libxcb:location
    key openssl_location openssl:location
    key pdftk_location pdftk:location
    key poppler_location poppler:location
    key template_cloudooo template-cloudooo:target
    key zlib_location zlib:location
96
    key coreutils_location coreutils:location
Rafael Monnerat's avatar
Rafael Monnerat committed
97 98 99 100

[template-cloudooo]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
101
md5sum = b4692fb5916e997c9766b9d0e1030e6c
Rafael Monnerat's avatar
Rafael Monnerat committed
102
mode = 640