software.cfg 1.83 KB
Newer Older
1 2 3 4 5 6 7
[buildout]

extends =
  ../../stack/lapp/buildout.cfg

parts =
  slapos-cookbook
8
  apache-php-postgres
Marco Mariani's avatar
Marco Mariani committed
9
  pear-modules
10 11 12 13 14
  eggs
  template
  template-apache-php


15 16 17 18 19
#----------------
#--
#-- Main application part
#-- XXX provide a better URL

20 21
[application]
url = http://downloads.sourceforge.net/project/maarch/Maarch%20Entreprise/MaarchEntreprise-1.3.zip?r=http%3A%2F%2Fwww.maarch.org%2Ftelecharger&ts=1347961624&use_mirror=ignum
22
md5sum = 5c2c859dee9d0dde3ba959474fd5fc86
23 24


25 26 27 28 29 30
#----------------
#--
#-- We don't need this static configuration file.
#-- An empty file is provided because it is required by the lapp stack.
#--

31 32 33
[application-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/config.php.in
34
md5sum = d41d8cd98f00b204e9800998ecf8427e
35 36 37 38 39 40 41 42 43
download-only = True
filename = template.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[application-configuration]
location = config.php


44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
#----------------
#--
#-- Define parts that will be executed later, in the instance.
#--

[custom-application-deployment]
path = ${custom-application-deployment-template:output}
part-list = maarch-configuration

[custom-application-deployment-template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-custom.cfg.in
output = ${buildout:directory}/instance-custom.cfg
md5sum = f132fcb57297ad9b10c07f97023b5ff4
mode = 0644


#----------------
#--
#-- Install PHP channels and modules (only if they are not already installed).
#--

Marco Mariani's avatar
Marco Mariani committed
66 67
[pear-modules]
recipe = cp.recipe.cmd
Marco Mariani's avatar
Marco Mariani committed
68
pear = ${apache-php-postgres:location}/bin/pear
Marco Mariani's avatar
Marco Mariani committed
69
install_cmd =
Marco Mariani's avatar
Marco Mariani committed
70
    ${:pear} channel-info pear.maarch.org >/dev/null || ${:pear} channel-discover pear.maarch.org
Marco Mariani's avatar
Marco Mariani committed
71 72
    ${:pear} info maarch/CLITools-0.3.1 >/dev/null || ${:pear} install maarch/CLITools-0.3.1
    ${:pear} info MIME_Type >/dev/null || ${:pear} install MIME_Type
73

74 75 76
#----------------