Merge branch 'lamp' into master
[slapos.git] / software / os-commerce / 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 = slapos.recipe.build:download-unpacked
18 url = http://www.oscommerce.com/files/oscommerce-3.0.2.zip
19 md5sum = 680caf7dde7cf7772a576ef3930970ff
20 extract-directory = oscommerce
21   
22 [instance-recipe]
23 egg = slapos.cookbook
24 module = lamp.simple
25
26 [template]
27 # Default template for the instance.
28 recipe = slapos.recipe.template
29 url = ${:_profile_base_location_}/instance.cfg
30 #md5sum = Student shall put md5 of instance.cfg here
31 output = ${buildout:directory}/template.cfg
32 mode = 0644
33
34 [instance-recipe-egg]
35 recipe = zc.recipe.egg
36 python = python2.7
37 eggs = ${instance-recipe:egg}
38
39 [versions]
40 # Use SlapOS patched zc.buildout
41 zc.buildout = 1.5.3-dev-SlapOS-010
42
43 [downloadcache-workaround]
44 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
45 # creates download cache, which in turn switches builout to "semi-offline" mode
46 recipe = plone.recipe.command
47 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
48 # to ${buildout:directory}/downloads but this variable is available late, that's
49 # why it is hardcoded only for required case
50 download-cache = ${buildout:directory}/downloads
51 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
52 update-command = ${:command}
53 stop-on-error = True