Add all major PHP software to SlapOS.
[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 location = ${buildout:parts-directory}/${:_buildout_section_name_}
24
25 [configure-script]
26 recipe = hexagonit.recipe.download
27 location = ${buildout:parts-directory}/${:_buildout_section_name_}
28 url = ${:_profile_base_location_}/configure.py
29 filename = configure.py
30 download-only = True
31
32 [application-template]
33 recipe = slapos.recipe.download
34 url = ${:_profile_base_location_}/template/zencart.inc.php.in
35 #md5sum = Student may put here md5sum of this file, this is good idea
36 download-only = True
37 filename = template.in
38 mode = 0644
39 location = ${buildout:parts-directory}/${:_buildout_section_name_}
40
41 [application-configuration]
42 location = config.inc.php
43   
44 [instance-recipe]
45 egg = slapos.cookbook
46 module = lamp.simple
47
48 [template]
49 # Default template for the instance.
50 recipe = slapos.recipe.template
51 url = ${:_profile_base_location_}/instance.cfg
52 #md5sum = Student shall put md5 of instance.cfg here
53 output = ${buildout:directory}/template.cfg
54 mode = 0644
55
56 [instance-recipe-egg]
57 recipe = zc.recipe.egg
58 python = python2.7
59 eggs = ${instance-recipe:egg}
60
61 [versions]
62 # Use SlapOS patched zc.buildout
63 zc.buildout = 1.5.3-dev-SlapOS-010
64
65 [downloadcache-workaround]
66 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
67 # creates download cache, which in turn switches builout to "semi-offline" mode
68 recipe = plone.recipe.command
69 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
70 # to ${buildout:directory}/downloads but this variable is available late, that's
71 # why it is hardcoded only for required case
72 download-cache = ${buildout:directory}/downloads
73 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
74 update-command = ${:command}
75 stop-on-error = True
76