version up : zc.buildout 1.6.0-dev-SlapOS-013.
[slapos.git] / software / phprojekt / 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
18 url = http://downloads.sourceforge.net/project/phprojekt/PHProjekt%206.0/6.0.6/phprojekt-6.0.6.zip?r=http%3A%2F%2Fwww.google.fr%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3Ddownload%2520phprojekt%26source%3Dweb%26cd%3D4%26ved%3D0CD4QFjAD%26url%3Dhttp%253A%252F%252Fsourceforge.net%252Fprojects%252Fphprojekt%252Ffiles%252Flatest%252Fdownload%26ei%3DeWuyToW3HMWEOqubkYQC%26usg%3DAFQjCNG0ZO1Bp-VS5t4X2pI9QKAmlovXpg&ts=1320315780&use_mirror=freefr
19 md5sum = d139b3d9b791a39460e9a780dece7779
20 script =
21   if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
22   extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
23   workdir = guessworkdir(extract_dir)
24   self.copyTree(workdir, "${buildout:parts-directory}/${:_buildout_section_name_}")
25   
26 [instance-recipe]
27 egg = slapos.cookbook
28 module = lamp.simple
29
30 [template]
31 # Default template for the instance.
32 recipe = slapos.recipe.template
33 url = ${:_profile_base_location_}/instance.cfg
34 #md5sum = Student shall put md5 of instance.cfg here
35 output = ${buildout:directory}/template.cfg
36 mode = 0644
37
38 [instance-recipe-egg]
39 recipe = zc.recipe.egg
40 eggs = ${instance-recipe:egg}
41
42 [versions]
43 # Use SlapOS patched zc.buildout
44
45 [downloadcache-workaround]
46 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
47 # creates download cache, which in turn switches builout to "semi-offline" mode
48 recipe = plone.recipe.command
49 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
50 # to ${buildout:directory}/downloads but this variable is available late, that's
51 # why it is hardcoded only for required case
52 download-cache = ${buildout:directory}/downloads
53 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
54 update-command = ${:command}
55 stop-on-error = True