version up : zc.buildout 1.6.0-dev-SlapOS-013.
[slapos.git] / software / nucleus / 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   configure-script
12
13 extends =
14   ../../stack/lamp.cfg
15   ../../stack/shacache-client.cfg
16
17 [application]
18 recipe = hexagonit.recipe.download
19 url = http://downloads.sourceforge.net/project/nucleuscms/1.%20Nucleus%20Core/Nucleus%20v3.64/nucleus3.64.zip?r=&ts=1319307841&use_mirror=freefr
20 md5sum = f38d23cba814e6aa05e5d82ea43cb3fd
21 #If provided tarball does not contain top directory, option shall be changed to false
22 strip-top-level-dir = true
23
24 [configure-script]
25 recipe = hexagonit.recipe.download
26 location = ${buildout:parts-directory}/${:_buildout_section_name_}
27 url = ${:_profile_base_location_}/configure-nucleus.py
28 md5sum = c052f761180a6ee55af1e531e4c38b4b
29 filename = configure-nucleus.py
30 download-only = True
31 mode = 0744
32   
33 [instance-recipe]
34 egg = slapos.cookbook
35 module = lamp.simple
36
37 [template]
38 # Default template for the instance.
39 recipe = slapos.recipe.template
40 url = ${:_profile_base_location_}/instance.cfg
41 #md5sum = Student shall put md5 of instance.cfg here
42 output = ${buildout:directory}/template.cfg
43 mode = 0644
44
45 [instance-recipe-egg]
46 recipe = zc.recipe.egg
47 eggs =
48     ${mysql-python:egg}
49     ${instance-recipe:egg}
50     slapos.toolbox[lampconfigure]
51
52 [versions]
53 # Use SlapOS patched zc.buildout
54
55 [downloadcache-workaround]
56 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
57 # creates download cache, which in turn switches builout to "semi-offline" mode
58 recipe = plone.recipe.command
59 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
60 # to ${buildout:directory}/downloads but this variable is available late, that's
61 # why it is hardcoded only for required case
62 download-cache = ${buildout:directory}/downloads
63 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
64 update-command = ${:command}
65 stop-on-error = True