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