Merge branch 'master' of git://gitorious.org/~mayoro/slapos/yoro-slapos into lamp...
[slapos.git] / software / lifetype / software.cfg
1 [buildout]
2 versions = versions
3
4 parts =
5   template
6   apache-php
7   mariadb
8   eggs
9   instance-recipe-egg
10   downloadcache-workaround
11   
12 extends =
13   http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/lamp.cfg
14   http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/shacache-client.cfg
15
16 allow-hosts += alastairs-place.net
17
18 [application]
19 recipe = hexagonit.recipe.download
20 url = http://garr.dl.sourceforge.net/project/lifetype/lifetype/lifetype-1.2.11/lifetype-1.2.11.tar.bz2
21 #md5sum = Student may put here md5sum of this file, this is good idea
22 #If provided tarball does not contain top directory, option shall be changed to false
23 #strip-top-level-dir = true
24
25 [application-template]
26 recipe = slapos.recipe.download
27 url = https://gitorious.org/~mayoro/slapos/yoro-slapos/blobs/raw/master/software/lifetype/template/config.properties.php.in
28 #md5sum = Student may put here md5sum of this file, this is good idea
29 download-only = True
30 filename = template.in
31 mode = 0644
32 location = ${buildout:parts-directory}/${:_buildout_section_name_}
33
34 [application-configuration]
35 location = lifetype-1.2.11/config/config.properties.php
36
37 [instance-recipe]
38 egg = slapos.cookbook
39 module = lamp.simple
40
41 [template]
42 # Default template for the instance.
43 recipe = slapos.recipe.template
44 url = ${:_profile_base_location_}/instance.cfg
45 #md5sum = Student shall put md5 of instance.cfg here
46 output = ${buildout:directory}/template.cfg
47 mode = 0644
48
49 [instance-recipe-egg]
50 recipe = zc.recipe.egg
51 python = python2.7
52 eggs = ${instance-recipe:egg}
53
54 [versions]
55 # Use SlapOS patched zc.buildout
56 zc.buildout = 1.5.3-dev-SlapOS-010
57 slapos.cookbook = 0.31
58
59 [downloadcache-workaround]
60 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
61 # creates download cache, which in turn switches builout to "semi-offline" mode
62 recipe = plone.recipe.command
63 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
64 # to ${buildout:directory}/downloads but this variable is available late, that's
65 # why it is hardcoded only for required case
66 download-cache = ${buildout:directory}/downloads
67 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
68 update-command = ${:command}
69 stop-on-error = True
70