Include pdftk and dirname links
[slapos.git] / software / cloudooo / software.cfg
1 [buildout]
2 extends =
3   ../../stack/shacache-client.cfg
4   ../../stack/cloudooo.cfg
5
6 versions = versions
7
8 # Local development
9 develop +=
10   ${:parts-directory}/slapos.cookbook-repository
11   ${:parts-directory}/cloudooo-repository
12 parts +=
13 # Local development
14   slapos.cookbook-repository
15   check-recipe
16   slapos.cookbook-python2.6
17   slapos.recipe.template-python2.6
18 # Create instance template
19   template
20
21 # XXX: Workaround of SlapOS limitation
22 # Unzippig of eggs is required, as SlapOS do not yet provide nicely working
23 # development / fast switching environment for whole software
24 unzip = true
25
26 # Local development
27 [slapos.cookbook-repository]
28 recipe = plone.recipe.command
29 stop-on-error = true
30 location = ${buildout:parts-directory}/${:_buildout_section_name_}
31 command = ${git:location}/bin/git clone --branch cloudooo --quiet http://git.erp5.org/repos/slapos.git ${:location}
32 update-command = cd ${:location} && ${git:location}/bin/git pull --quiet
33
34 [check-recipe]
35 recipe = plone.recipe.command
36 stop-on-error = true
37 update-command = ${:command}
38 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
39
40 [slapos.cookbook-python2.6]
41 recipe = zc.recipe.egg
42 eggs = slapos.cookbook
43 scripts =
44 python = python2.6
45 ugly-depend-on = ${slapos.cookbook-repository:command} ${slapos.cookbook-repository:update-command}
46
47 [slapos.recipe.template-python2.6]
48 recipe = zc.recipe.egg
49 eggs = slapos.recipe.template
50 scripts =
51 python = python2.6
52
53 [template-jinja2-base]
54 recipe = slapos.recipe.template:jinja2
55 template = ${:_profile_base_location_}/${:filename}.in
56 rendered = ${buildout:directory}/${:filename}
57 # XXX: extra-context is needed because we cannot append to a key of an extended
58 # section.
59 extra-context =
60 context =
61     key bin_directory buildout:bin-directory
62     key develop_eggs_directory buildout:develop-eggs-directory
63     key eggs_directory buildout:eggs-directory
64     ${:extra-context}
65
66 [template]
67 < = template-jinja2-base
68 # XXX: "template.cfg" is hardcoded in instanciation recipe
69 filename = template.cfg
70 template = ${:_profile_base_location_}/instance.cfg.in
71 md5sum = 5c4efb6deb981401d131eaf70a7c6f76
72 extra-context =
73     key buildout_bin_directory buildout:bin-directory
74     key dcron_location dcron:location
75     key file_location file:location
76     key fontconfig_location fontconfig:location
77     key fonts_location fonts:location
78     key freetype_location freetype:location
79     key git_location git:location
80     key imagemagick_location imagemagick:location
81     key libICE_location libICE:location
82     key libSM_location libSM:location
83     key libX11_location libX11:location
84     key libXau_location libXau:location
85     key libXdmcp_location libXdmcp:location
86     key libXext_location libXext:location
87     key libXrender_location libXrender:location
88     key libpng12_location libpng12:location
89     key libreoffice_bin_location libreoffice-bin:location
90     key libxcb_location libxcb:location
91     key openssl_location openssl:location
92     key pdftk_location pdftk:location
93     key poppler_location poppler:location
94     key template_cloudooo template-cloudooo:target
95     key zlib_location zlib:location
96     key coreutils_location coreutils:location
97
98 [template-cloudooo]
99 recipe = slapos.recipe.build:download
100 url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
101 md5sum = b41e6607cd619648babac4c99ca87202
102 mode = 640