software.cfg 1.23 KB
Newer Older
1 2 3 4 5 6 7 8 9
[buildout]
versions = versions

parts =
  template
  apache-php
  mariadb
  eggs
  instance-recipe-egg
10 11
  lifetype-patch
  patch
12 13
  
extends =
14
  ../../stack/lamp.cfg
15

16 17
[lifetype-patch]
recipe = slapos.recipe.download
18
url = ${:_profile_base_location_}/lifetype_for_mysql5.patch
19 20 21
md5sum = c52bea61ea452b9f3caa82426a5819e5
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = lifetype_for_mysql5.patch
22 23

[application]
24
recipe = slapos.recipe.build:download-unpacked
25
url = http://garr.dl.sourceforge.net/project/lifetype/lifetype/lifetype-1.2.11/lifetype-1.2.11.tar.bz2
26 27
md5sum = 50e329dfdb6c5876c0600abe30a379fb
strip-top-level-dir = true
28

29 30 31 32 33
[patch]
recipe = iw.recipe.cmd
on_install = true
on_update = true
cmds= patch -d ${application:location} -p1 < ${lifetype-patch:location}/${lifetype-patch:filename}
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

[instance-recipe]
egg = slapos.cookbook
module = lamp.simple

[template]
# Default template for the instance.
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
#md5sum = Student shall put md5 of instance.cfg here
output = ${buildout:directory}/template.cfg
mode = 0644

[instance-recipe-egg]
recipe = zc.recipe.egg
49 50 51 52
eggs =
    ${mysql-python:egg}
    ${instance-recipe:egg}
    slapos.toolbox[lampconfigure]