9 downloadcache-workaround
12 http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.50:/stack/lamp.cfg
13 http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.50:/stack/shacache-client.cfg
16 recipe = hexagonit.recipe.download
17 url = Student shall put here url of zipped or tarballed web page or application
18 #md5sum = Student may put here md5sum of this file, this is good idea
19 #If provided tarball does not contain top directory, option shall be changed to false
20 #strip-top-level-dir = true
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
35 recipe = zc.recipe.egg
36 eggs = ${instance-recipe:egg}
39 # Use SlapOS patched zc.buildout
40 zc.buildout = 1.5.3-dev-SlapOS-010
41 slapos.cookbook = 0.20
43 # Temporary fix for slapos-0.50
45 find-links += http://pypi.python.org/pypi/lxml/2.3.1
47 [downloadcache-workaround]
48 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
49 # creates download cache, which in turn switches builout to "semi-offline" mode
50 recipe = plone.recipe.command
51 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
52 # to ${buildout:directory}/downloads but this variable is available late, that's
53 # why it is hardcoded only for required case
54 download-cache = ${buildout:directory}/downloads
55 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
56 update-command = ${:command}