version up : zc.buildout 1.6.0-dev-SlapOS-013.
[slapos.git] / software / quick-cms / 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://opensolution.org/download,en,18.html?sFile=Quick.Cms/Quick.Cms_v4.1.zip
19 md5sum = b21ad5aaf0a367a0e7edf19f714e893a
20 #If provided tarball does not contain top directory, option shall be changed to false
21 strip-top-level-dir = false
22   
23 [instance-recipe]
24 egg = slapos.cookbook
25 module = lamp.simple
26
27 [template]
28 # Default template for the instance.
29 recipe = slapos.recipe.template
30 url = ${:_profile_base_location_}/instance.cfg
31 #md5sum = Student shall put md5 of instance.cfg here
32 output = ${buildout:directory}/template.cfg
33 mode = 0644
34
35 [instance-recipe-egg]
36 recipe = zc.recipe.egg
37 eggs = ${instance-recipe:egg}
38
39 [versions]
40 # Use SlapOS patched zc.buildout
41
42 [downloadcache-workaround]
43 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
44 # creates download cache, which in turn switches builout to "semi-offline" mode
45 recipe = plone.recipe.command
46 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
47 # to ${buildout:directory}/downloads but this variable is available late, that's
48 # why it is hardcoded only for required case
49 download-cache = ${buildout:directory}/downloads
50 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
51 update-command = ${:command}
52 stop-on-error = True