software.cfg 1.41 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 12
  phpbms-patch
  patch

13
extends =
14
  ../../stack/lamp.cfg
15

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

[application]
24
recipe = slapos.recipe.build:download-unpacked
25 26 27 28 29 30 31 32
url = http://www.phpbms.org/files/phpbms/phpbms-0.98.tar.gz
md5sum = 3907c5115cf9acaab7cb5d22ce0534b7

[patch]
recipe = iw.recipe.cmd
on_install = true
on_update = true
cmds= patch -d ${application:location} -p1 < ${phpbms-patch:location}/${phpbms-patch:filename}
33 34 35

[application-template]
recipe = slapos.recipe.download
36
url = ${:_profile_base_location_}/template/settings.php.in
37 38 39 40 41
filename = template.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[application-configuration]
42 43
location = settings.php
  
44 45 46 47 48 49 50 51 52 53 54 55 56 57
[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
58 59 60
eggs =
    ${mysql-python:egg}
    ${instance-recipe:egg}
Mayoro Diagne's avatar
Mayoro Diagne committed
61
    slapos.toolbox[lampconfigure]