Merge branch 'master' into erp5-component
[slapos.git] / software / maarch / software.cfg
1 [buildout]
2
3 extends =
4   ../../component/git/buildout.cfg
5   ../../stack/lapp/buildout.cfg
6
7
8 # += since we need rdiff-backup and friends
9 parts +=
10   apache-php-postgres
11   pear-modules
12   eggs
13   instance
14   instance-apache-php
15   slapos-recipe-maarch-egg
16   slapos.cookbook-repository
17   check-recipe
18
19
20 develop =
21   ${:parts-directory}/slapos.cookbook-repository
22
23
24 extensions = buildout-versions
25
26
27 [slapos.cookbook-repository]
28 recipe = slapos.recipe.build:gitclone
29 repository = http://git.erp5.org/repos/slapos.git
30 revision = 7285bc913e6ea46a36ad2a887af6e9fab010ca74
31 git-executable = ${git:location}/bin/git
32
33
34 [check-recipe]
35 recipe = plone.recipe.command
36 stop-on-error = true
37 update-command = ${:command}
38 command =
39   grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
40
41
42 #----------------
43 #--
44 #-- Explicitly provide the configuration egg,
45 #-- otherwise instance.cfg won't be able to use it.
46 #--
47 [slapos-recipe-maarch-egg]
48 recipe = zc.recipe.egg
49 eggs =
50     slapos.recipe.maarch
51
52
53 #----------------
54 #--
55 #-- Main application part
56 #--
57
58 [application]
59 url = http://downloads.sourceforge.net/project/maarch/Maarch%20Entreprise/MaarchEntreprise-1.3.zip
60 md5sum = 5c2c859dee9d0dde3ba959474fd5fc86
61
62
63 #----------------
64 #--
65 #-- Define parts that will be executed later, in the instance.
66 #--
67
68 [custom-application-deployment]
69 path = ${custom-application-deployment-template:output}
70 part-list = maarch-configuration
71
72 [custom-application-deployment-template]
73 recipe = slapos.recipe.template
74 url = ${:_profile_base_location_}/instance-custom.cfg.in
75 output = ${buildout:directory}/instance-custom.cfg
76 md5sum = f86b311d443156e327a1b5f5acfb22b1
77 mode = 0644
78
79
80 #----------------
81 #--
82 #-- Install PHP channels and modules (only if they are not already installed).
83 #--
84
85 [pear-modules]
86 recipe = cp.recipe.cmd
87 pear = ${apache-php-postgres:location}/bin/pear
88 install_cmd =
89     ${:pear} channel-info pear.maarch.org >/dev/null || ${:pear} channel-discover pear.maarch.org
90     ${:pear} info maarch/CLITools-0.3.1 >/dev/null || ${:pear} install maarch/CLITools-0.3.1
91     ${:pear} info MIME_Type >/dev/null || ${:pear} install MIME_Type
92
93
94 #----------------
95
96 [versions]
97 slapos.recipe.maarch = 0.4
98