Merge branch 'master' into slapos
[slapos.git] / software / tiki / 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   ../../stack/lamp.cfg
14   ../../stack/shacache-client.cfg
15
16 [application]
17 recipe = hexagonit.recipe.download
18 url = http://freefr.dl.sourceforge.net/project/tikiwiki/Tiki_7.x_Electra/7.1/tiki-7.1.tar.gz
19 md5sum = 02c832eaaa107cd7c76f9d94f400eaf5
20 #If provided tarball does not contain top directory, option shall be changed to false
21 #strip-top-level-dir = true
22
23 [application-template]
24 recipe = slapos.recipe.download
25 url = ${:_profile_base_location_}/template/tiki.inc.php.in
26 #md5sum = Student may put here md5sum of this file, this is good idea
27 download-only = True
28 filename = template.in
29 mode = 0644
30 location = ${buildout:parts-directory}/${:_buildout_section_name_}
31
32 [application-configuration]
33 location = config.inc.php
34   
35 [instance-recipe]
36 egg = slapos.cookbook
37 module = lamp.simple
38
39 [template]
40 # Default template for the instance.
41 recipe = slapos.recipe.template
42 url = ${:_profile_base_location_}/instance.cfg
43 #md5sum = Student shall put md5 of instance.cfg here
44 output = ${buildout:directory}/template.cfg
45 mode = 0644
46
47 [instance-recipe-egg]
48 recipe = zc.recipe.egg
49 python = python2.7
50 eggs = ${instance-recipe:egg}
51
52 [versions]
53 # Use SlapOS patched zc.buildout
54 zc.buildout = 1.5.3-dev-SlapOS-010
55
56 [downloadcache-workaround]
57 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
58 # creates download cache, which in turn switches builout to "semi-offline" mode
59 recipe = plone.recipe.command
60 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
61 # to ${buildout:directory}/downloads but this variable is available late, that's
62 # why it is hardcoded only for required case
63 download-cache = ${buildout:directory}/downloads
64 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
65 update-command = ${:command}
66 stop-on-error = True