factorize the code of boinc recipe
[slapos.git] / software / boinc / software.cfg
1 [buildout]
2
3 parts = 
4   boinc-instance
5   template
6   boinc-application
7   template_wu
8   template_result
9   template_input
10   slapos-cookbook
11   instance-egg
12   slapos.cookbook-repository
13   check-recipe
14
15 extends =
16   ../../stack/boinc/buildout.cfg
17
18 #Generate All instances templates
19 [boinc-instance]
20 recipe = slapos.recipe.template
21 url = ${:_profile_base_location_}/boinc-app.cfg
22 output = ${buildout:directory}/template-app.cfg
23 mode = 0644
24 md5sum = ab01f101cc6280ef07ea61a22a1432d0
25
26 [template]
27 recipe = slapos.recipe.template
28 url = ${:_profile_base_location_}/instance.cfg
29 output = ${buildout:directory}/template.cfg
30 mode = 0644
31 md5sum = d097ddeeee5d89881d097efe6165caf6
32
33 #Download Boinc Application Binary and configure project
34 [boinc-application]
35 recipe = hexagonit.recipe.download
36 url = ${boinc:location}/libexec/examples/upper_case
37 download-only = true
38 filename = upper_case
39 #Application configuration
40 app-name = upper_case
41 version = 1.00
42 exec-extension = 
43 #Please read Boinc platform before update platform value: http://boinc.berkeley.edu/trac/wiki/BoincPlatforms
44 platform = x86_64-pc-linux-gnu
45 #Work Unit number number of work unit
46 wu-number = 2
47
48 [template-base]
49 recipe = slapos.recipe.download
50 download-only = true
51 mode = 0644
52
53 [template_result]
54 <= template-base
55 url = ${:_profile_base_location_}/templates/template_result
56 filename = template_result
57 location = ${buildout:parts-directory}/${:_buildout_section_name_}
58 #md5sum = 
59
60 [template_wu]
61 <= template-base
62 url = ${:_profile_base_location_}/templates/template_wu
63 filename = template_wu
64 location = ${buildout:parts-directory}/${:_buildout_section_name_}
65 #md5sum = 
66
67 [template_input]
68 <= template-base
69 url = ${:_profile_base_location_}/input/input_file
70 filename = input_file
71 location = ${buildout:parts-directory}/${:_buildout_section_name_}
72 #md5sum =