pdftk removed from erp5
[slapos.git] / software / cloudooo / instance-cloudoo.cfg.in
1 {% set bin_directory = parameter_dict['buildout-bin-directory'] -%}
2 [buildout]
3 parts =
4   publish-cloudooo-connection-information
5   cloudooo-test-runner
6
7 eggs-directory = {{ eggs_directory }}
8 develop-eggs-directory = {{ develop_eggs_directory }}
9 offline = true
10
11 [publish-cloudooo-connection-information]
12 recipe = slapos.cookbook:publishurl
13 url = cloudooo://${cloudooo-instance:ip}:${cloudooo-instance:port}/
14
15 [cloudooo-instance]
16 recipe = slapos.cookbook:generic.cloudooo
17
18 # Network options
19 ip = ${slap-network-information:local-ipv4}
20 port = 23000
21 openoffice-port = 23060
22
23 # Paths
24 configuration-file = ${rootdirectory:etc}/cloudooo.cfg
25 wrapper = ${basedirectory:services}/cloudooo
26
27 # Paths: Data
28 data-directory = ${directory:cloudooo-data}
29
30 environment =
31   LD_LIBRARY_PATH = {{ parameter_dict['file'] }}/lib:{{ parameter_dict['fontconfig'] }}/lib:{{ parameter_dict['freetype'] }}/lib:{{ parameter_dict['libICE'] }}/lib:{{ parameter_dict['libpng12'] }}/lib:{{ parameter_dict['libSM'] }}/lib:{{ parameter_dict['libX11'] }}/lib:{{ parameter_dict['libXau'] }}/lib:{{ parameter_dict['libXdmcp'] }}/lib:{{ parameter_dict['libXext'] }}/lib:{{ parameter_dict['libxcb'] }}/lib:{{ parameter_dict['libXrender'] }}/lib:{{ parameter_dict['zlib'] }}/lib
32   FONTCONFIG_FILE = ${fontconfig-instance:conf-path}
33   PATH = ${binary-link:target-directory}
34
35 # Binary information
36 # cloudooo specific configuration
37 ooo-binary-path = {{ parameter_dict['libreoffice-bin'] }}/program
38 ooo-paster = {{ bin_directory }}/cloudooo_paster
39 ooo-uno-path = {{ parameter_dict['libreoffice-bin'] }}/basis-link/program
40
41 [cloudooo-test-runner]
42 recipe = slapos.cookbook:cloudooo.test
43
44 prepend-path = ${buildout:bin-directory}
45 run-unit-test = ${buildout:bin-directory}/runUnitTest
46 run-test-suite = ${buildout:bin-directory}/runTestSuite
47
48 ooo-paster = ${cloudooo-instance:ooo-paster}
49 configuration-file = ${cloudooo-instance:configuration-file}
50
51 run-unit-test-binary = {{ bin_directory }}/runCloudoooUnitTest
52 run-test-suite-binary = {{ bin_directory }}/runCloudoooTestSuite
53
54 [fontconfig-instance]
55 recipe = slapos.cookbook:fontconfig
56 conf-path = ${rootdirectory:etc}/font.conf
57 font-system-folder = {{ parameter_dict['fonts'] }}
58 font-folder = ${directory:font}
59 url-list =
60 service-folder = ${basedirectory:services}
61 onetimedownload_path = {{ bin_directory }}/onetimedownload
62
63 [binary-link]
64 recipe = slapos.cookbook:symbolic.link
65 target-directory = ${rootdirectory:bin}
66 link-binary =
67   {{ parameter_dict['coreutils'] }}/bin/basename
68   {{ parameter_dict['coreutils'] }}/bin/cat
69   {{ parameter_dict['coreutils'] }}/bin/cp
70   {{ parameter_dict['coreutils'] }}/bin/ls
71   {{ parameter_dict['coreutils'] }}/bin/tr
72   {{ parameter_dict['coreutils'] }}/bin/uname
73   {{ parameter_dict['coreutils'] }}/bin/dirname
74   {{ parameter_dict['imagemagick'] }}/bin/convert
75   {{ parameter_dict['imagemagick'] }}/bin/identify
76   {{ parameter_dict['poppler'] }}/bin/pdfinfo
77   {{ parameter_dict['poppler'] }}/bin/pdftotext
78   {{ parameter_dict['poppler'] }}/bin/pdftohtml
79
80 # rest of parts are candidates for some generic stuff
81 [basedirectory]
82 recipe = slapos.cookbook:mkdirectory
83 services = ${rootdirectory:etc}/run
84
85 [directory]
86 recipe = slapos.cookbook:mkdirectory
87 cloudooo-data = ${rootdirectory:srv}/cloudooo
88 font = ${rootdirectory:srv}/font
89
90 [rootdirectory]
91 recipe = slapos.cookbook:mkdirectory
92 etc = ${buildout:directory}/etc
93 srv = ${buildout:directory}/srv
94 bin = ${buildout:directory}/bin