[buildout] extends = ../../stack/lapp/buildout.cfg # += since we need rdiff-backup and friends parts += slapos-cookbook apache-php-postgres pear-modules eggs instance instance-apache-php #---------------- #-- #-- Main application part #-- XXX provide a better URL [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 md5sum = 5c2c859dee9d0dde3ba959474fd5fc86 #---------------- #-- #-- We don't need this static configuration file. #-- An empty file is provided because it is required by the lapp stack. #-- [application-template] recipe = slapos.recipe.download url = ${:_profile_base_location_}/config.php.in md5sum = d41d8cd98f00b204e9800998ecf8427e download-only = True filename = template.in mode = 0644 location = ${buildout:parts-directory}/${:_buildout_section_name_} [application-configuration] location = config.php #---------------- #-- #-- 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 = 28f6ad42b73806901ac2cd4ec563d73b mode = 0644 #---------------- #-- #-- Install PHP channels and modules (only if they are not already installed). #-- [pear-modules] recipe = cp.recipe.cmd pear = ${apache-php-postgres:location}/bin/pear install_cmd = ${:pear} channel-info pear.maarch.org >/dev/null || ${:pear} channel-discover pear.maarch.org ${: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 #----------------