Merge branch 'master' into webrunner
[slapos.git] / software / MediaWiki / 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   mediawiki-patch
12   patch
13
14
15 extends =
16   ../../stack/lamp.cfg
17   ../../stack/shacache-client.cfg
18
19 [mediawiki-patch]
20 recipe = slapos.recipe.download
21 url = ${:_profile_base_location_}/patch/mediawiki-1.17.0.config.patch
22 #md5sum = Student may put here md5sum of this file, this is good idea
23 download-only = True
24 location = ${buildout:parts-directory}/${:_buildout_section_name_}
25 filename = mediawiki-1.17.0.config.patch
26
27 [application]
28 recipe = hexagonit.recipe.download
29 url = http://download.wikimedia.org/mediawiki/1.17/mediawiki-1.17.0.tar.gz
30 md5sum = 871a00a8eb6dcae1b7b654ae635af7cd
31 #If provided tarball does not contain top directory, option shall be changed to false
32 #strip-top-level-dir = true
33
34 [patch]
35 recipe = iw.recipe.cmd
36 on_install = true
37 on_update = true
38 cmds= patch -d ${application:location} -p1 < ${mediawiki-patch:location}/${mediawiki-patch:filename}
39
40 [application-template]
41 recipe = slapos.recipe.download
42 url = ${:_profile_base_location_}/template/mediawiki.inc.php.in
43 #md5sum = Student may put here md5sum of this file, this is good idea
44 download-only = True
45 filename = template.in
46 mode = 0644
47 location = ${buildout:parts-directory}/${:_buildout_section_name_}
48
49 [application-configuration]
50 location = config.inc.php
51   
52 [instance-recipe]
53 egg = slapos.cookbook
54 module = lamp.simple
55
56 [template]
57 # Default template for the instance.
58 recipe = slapos.recipe.template
59 url = ${:_profile_base_location_}/instance.cfg
60 #md5sum = Student shall put md5 of instance.cfg here
61 output = ${buildout:directory}/template.cfg
62 mode = 0644
63
64 [instance-recipe-egg]
65 recipe = zc.recipe.egg
66 python = python2.7
67 eggs = ${instance-recipe:egg}
68
69 [versions]
70 # Use SlapOS patched zc.buildout
71 zc.buildout = 1.5.3-dev-SlapOS-010
72
73 [downloadcache-workaround]
74 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
75 # creates download cache, which in turn switches builout to "semi-offline" mode
76 recipe = plone.recipe.command
77 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
78 # to ${buildout:directory}/downloads but this variable is available late, that's
79 # why it is hardcoded only for required case
80 download-cache = ${buildout:directory}/downloads
81 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
82 update-command = ${:command}
83 stop-on-error = True
84