Update php application and remove useless parts
[slapos.git] / software / zencart / 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://heanet.dl.sourceforge.net/project/zencart/CURRENT_%20Zen%20Cart%201.3.x%20Series/Zen%20Cart%20v1.3.9%20-%20Full%20Release/zen-cart-v1.3.9h-full-fileset-10262010.zip
20 md5sum = e0a5fb39078321ced7f5a9c193f30927
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.py
28 filename = configure.py
29 download-only = True
30   
31 [instance-recipe]
32 egg = slapos.cookbook
33 module = lamp.simple
34
35 [template]
36 # Default template for the instance.
37 recipe = slapos.recipe.template
38 url = ${:_profile_base_location_}/instance.cfg
39 #md5sum = Student shall put md5 of instance.cfg here
40 output = ${buildout:directory}/template.cfg
41 mode = 0644
42
43 [instance-recipe-egg]
44 recipe = zc.recipe.egg
45 python = python2.7
46 eggs =
47     ${mysql-python:egg}
48     ${instance-recipe:egg}
49     slapos.toolbox[lampconfigure]
50
51 [versions]
52 # Use SlapOS patched zc.buildout
53 zc.buildout = 1.5.3-dev-SlapOS-010
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
66