use percona toolkit instead of maatkit
[slapos.git] / stack / erp5.cfg
1 [buildout]
2 extensions =
3   slapos.rebootstrap
4   slapos.zcbworkarounds
5   buildout-versions
6
7 find-links =
8     http://www.nexedi.org/static/packages/source/slapos.buildout/
9     http://dist.repoze.org
10     http://www.nexedi.org/static/packages/source/
11     http://www.owlfish.com/software/wsgiutils/download.html
12
13 # Separate from site eggs
14 allowed-eggs-from-site-packages =
15 include-site-packages = false
16 exec-sitecustomize = false
17
18 # Use only quite well working sites.
19 allow-hosts =
20   *.nexedi.org
21   *.python.org
22   *.sourceforge.net
23   alastairs-place.net
24   dist.repoze.org
25   effbot.org
26   github.com
27   peak.telecommunity.com
28   psutil.googlecode.com
29   www.dabeaz.com
30   www.owlfish.com
31
32 extends =
33 # Exact version of Zope
34   http://svn.zope.org/repos/main/Zope/tags/2.12.20/versions.cfg
35   ../component/logrotate/buildout.cfg
36   ../component/dcron/buildout.cfg
37   ../component/file/buildout.cfg
38   ../component/fonts/buildout.cfg
39   ../component/ghostscript/buildout.cfg
40   ../component/git/buildout.cfg
41   ../component/glib/buildout.cfg
42   ../component/graphviz/buildout.cfg
43   ../component/gzip/buildout.cfg
44   ../component/haproxy/buildout.cfg
45   ../component/hookbox/buildout.cfg
46   ../component/imagemagick/buildout.cfg
47   ../component/kumo/buildout.cfg
48   ../component/libreoffice-bin/buildout.cfg
49   ../component/lxml-python/buildout.cfg
50   ../component/percona-toolkit/buildout.cfg
51   ../component/mariadb/buildout.cfg
52   ../component/memcached/buildout.cfg
53   ../component/mysql-python/buildout.cfg
54   ../component/pdftk/buildout.cfg
55   ../component/pycrypto-python/buildout.cfg
56   ../component/pysvn-python/buildout.cfg
57   ../component/python-2.6/buildout.cfg
58   ../component/python-2.7/buildout.cfg
59   ../component/python-ldap-python/buildout.cfg
60   ../component/rdiff-backup/buildout.cfg
61   ../component/sphinx/buildout.cfg
62   ../component/stunnel/buildout.cfg
63   ../component/subversion/buildout.cfg
64   ../component/tesseract/buildout.cfg
65   ../component/varnish/buildout.cfg
66   ../component/w3-validator/buildout.cfg
67   ../component/w3m/buildout.cfg
68   ../component/xorg/buildout.cfg
69   ../component/poppler/buildout.cfg
70   ../component/xtrabackup/buildout.cfg
71   ../component/zabbix/buildout.cfg
72   ../component/sed/buildout.cfg
73   ../component/coreutils/buildout.cfg
74   ../component/grep/buildout.cfg
75
76 versions = versions
77
78 parts =
79   itools-build
80   rdiff-backup
81   apache
82   apache-antiloris
83   file
84   graphviz
85   memcached
86   haproxy
87   varnish-2.1
88   stunnel
89   w3m
90   poppler
91   libpng
92   ghostscript
93   mariadb
94   sphinx
95   imagemagick
96   kumo
97   libreoffice-bin
98   w3-validator
99   tesseract-eng-traineddata-unzip
100   tesseract
101   hookbox
102   bootstrap2.6
103   perl-DBD-mariadb
104   perl-DBI
105   percona-toolkit
106   zabbix-agent
107   pdftk
108   dcron
109
110 # Buildoutish
111   eggs
112   instance-recipe-egg
113   testrunner
114   test_suite_runner
115
116 # basic Xorg
117   libXdmcp
118   libXext
119   libXau
120   libXinerama
121   libSM
122
123 # fonts
124   liberation-fonts
125   ipaex-fonts
126
127 # Zope products
128   products-deps
129
130 # Cloudooo specific part
131   cloudooo
132
133 # get git repositories
134   erp5
135   genbt5list
136
137 # fix products path (Zeo needs ERP5 Products to be available for
138 # conflict resolution)
139   fix-products-paths
140
141 [bt5-repository]
142 # Format:
143 #   <url or path> [...]
144 #
145 # Use absolute paths for local repositories, and URLs for non-local otherwise.
146 #
147 list = ${local-bt5-repository:list}
148
149 [local-bt5-repository]
150 # Same as bt5-repository, but only local repository.
151 # Used to generate bt5lists.
152 list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap
153
154 [genbt5list]
155 recipe = plone.recipe.command
156 stop-on-error = true
157 genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
158 command =
159   ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
160 update-command = ${:command}
161
162 [bootstrap2.6]
163 python = python2.6
164
165 [rebootstrap]
166 version = 3
167 section = python2.7
168 eggs = slapos.libnetworkcache
169
170 [itools]
171 pkgname = itools-0.50.8
172 location = ${buildout:parts-directory}/${:_buildout_section_name_}
173 lib = ${:location}/lib
174 source = ${:location}/src
175
176 # ugly itools building sections until itools and setuptools learn to get
177 # along:
178
179 [itools-download]
180 recipe = hexagonit.recipe.download
181 strip-top-level-dir = true
182 url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
183 md5sum = 12704cc354e2201e0921a832bf6b1556
184 destination = ${itools:source}
185
186 [itools-build]
187 recipe = plone.recipe.command
188 # reference itools-download:destination instead of itools:source to trigger its
189 # execution
190 # here, we unset PYTHONPATH to invoke different python than buildout one.
191 command =
192     cd ${itools-download:destination} &&
193     PYTHONPATH= ${python2.6:executable} setup.py build_ext -L ${glib:location}/lib -I ${glib:location}/include/glib-2.0:${glib:location}/lib/glib-2.0/include -R ${glib:location}/lib &&
194     PYTHONPATH= ${python2.6:executable} setup.py install_lib -d ${itools:lib}
195
196 update-command = ${:command}
197 location = ${itools:location}
198 stop-on-error = true
199
200 [products-deps]
201 # Recipe minitage.recipe.fetch is disabled, as it uses PATH variable, but it
202 # is not possible to change its environment to use localy delivered subversion
203 # nor git. plone.recipe.command can do same job, but it is controllable which
204 # binary will be used
205 recipe = plone.recipe.command
206 svn_param =--trust-server-cert --non-interactive --quiet
207 location = ${buildout:parts-directory}/${:_buildout_section_name_}
208 stop-on-error = true
209 command =
210   ${subversion:location}/bin/svn checkout -r 98997 ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
211   ${git:location}/bin/git clone --quiet git://git.hforge.org/Localizer.git ${:location}/Localizer && cd ${:location}/Localizer && ${git:location}/bin/git reset --quiet --hard dacb6ba0ae559cd9bdb8822812d24a12a21e9e37
212
213 [erp5_repository_list]
214 repository_id_list = erp5
215
216 [erp5]
217 # Recipe zerokspot.recipe.git is disabled, as is not possible to change its
218 # environment to use localy delivered git.
219 # plone.recipe.command can do same job, but it is controllable which binary
220 # will be used
221 recipe = plone.recipe.command
222 location = ${buildout:parts-directory}/${:_buildout_section_name_}
223 stop-on-error = true
224 repository = http://git.erp5.org/repos/erp5.git
225 branch = master
226 revision =
227 command = ${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location} && if [ -n ${:revision} ]; then cd ${:location} && ${git:location}/bin/git reset --quiet --hard ${:revision} ; fi
228 update-command = cd ${:location} && ${git:location}/bin/git pull --quiet && if [ -n ${:revision} ]; then cd ${:location} && ${git:location}/bin/git reset --quiet --hard ${:revision} ; fi
229
230 [products]
231 # XXX: ERP5 related products are not defined as python distributions, so it is
232 #      required to configure them in declarative manner
233 list =
234
235 [fix-products-paths]
236 recipe = plone.recipe.command
237 stop-on-error = true
238 command =
239   for DIR in "${products-deps:location}"; do cd "$DIR"; rm -f Products ; ln -s . Products; touch __init__.py; done
240   for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
241 update-command = ${:command}
242
243 [testrunner]
244 # XXX: Workaround for fact ERP5Type is not an distribution and does not
245 #      expose entry point for test runner
246 recipe = zc.recipe.egg
247 python = python2.6
248 eggs = ${eggs:eggs}
249 extra-paths = ${eggs:extra-paths}
250 entry-points =
251   runUnitTest=runUnitTest:main
252 scripts = runUnitTest
253 initialization =
254   import glob, imp, os, sys
255   import App # prevent Testing from importing Zope2.App instead of App
256   import Products
257   Products.__path__[:0] = filter(None,
258     os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
259   Products.__path__.extend(reversed('''${products:list}'''.split()))
260   os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
261   os.environ['ZOPE_SCRIPTS'] = ''
262   parts_directory = '''${buildout:parts-directory}'''
263   repository_id_list = \
264     '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
265   os.environ['erp5_tests_bt5_path'] = ','.join(sum((
266     [bt5_path, os.path.join(bt5_path, '*')]
267     for bt5_path in (os.path.join(parts_directory, x, 'bt5')
268                      for x in repository_id_list)), []))
269   sys.path[:0] = [os.path.join(parts_directory, x, 'tests')
270                   for x in repository_id_list]
271   sys.path[:0] = sum((
272     glob.glob(os.path.join(parts_directory, x, 'product', '*', 'tests'))
273     for x in repository_id_list), [])
274
275 [test_suite_runner]
276 # XXX: Workaround for fact ERP5Type is not an distribution and does not
277 #      expose entry point for test runner
278 recipe = zc.recipe.egg
279 python = python2.6
280 eggs = ${eggs:eggs}
281 extra-paths = ${eggs:extra-paths}
282 entry-points =
283   runTestSuite=Products.ERP5Type.tests.runTestSuite:main
284 scripts = runTestSuite
285 initialization =
286   import os
287   import sys
288   import Products
289   [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
290   Products.__path__.extend(reversed('''${products:list}'''.split()))
291   import Zope2
292   os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
293   os.environ['ZOPE_SCRIPTS'] = ''
294   repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
295   sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
296
297 [instance-recipe-egg]
298 recipe = zc.recipe.egg
299 python = python2.6
300 eggs =
301 # instantiation egg
302   ${instance-recipe:egg}
303
304 [eggs]
305 recipe = zc.recipe.egg
306 python = python2.6
307 eggs =
308   ${mysql-python:egg}
309   ${lxml-python:egg}
310   ${python-ldap-python:egg}
311   ${pysvn-python:egg}
312   ${pycrypto-python:egg}
313   PyXML
314   SOAPpy
315   cElementTree
316   chardet
317   elementtree
318   erp5diff
319   ipdb
320   mechanize
321   numpy
322   ordereddict
323   paramiko
324   ply
325   python-magic
326   python-memcached
327   pytz
328   threadframe
329   timerserver
330   urlnorm
331   uuid
332   xml_marshaller
333   xupdate_processor
334   feedparser
335   argparse
336   validictory
337
338 # Zope 2.12 with patched acquisition
339   ZODB3
340   Zope2
341   Acquisition
342
343 # Other Zope 2 packages
344   Products.PluggableAuthService
345   Products.PluginRegistry
346
347 # CMF 2.2
348   Products.CMFActionIcons
349   Products.CMFCalendar
350   Products.CMFCore
351   Products.CMFDefault
352   Products.CMFTopic
353   Products.CMFUid
354   Products.DCWorkflow
355   Products.GenericSetup
356   five.localsitemanager
357
358 # Other products
359   Products.DCWorkflowGraph
360   Products.MimetypesRegistry
361   Products.ExternalEditor
362   Products.TIDStorage
363   Products.Zelenium
364
365 # Currently forked in our repository
366 #    Products.PortalTransforms
367 # Dependency for our fork of PortalTransforms
368   StructuredText
369
370 # parameterizing the version of the generated python interpreter name by the
371 # python section version causes dependency between this egg section and the
372 # installation of python, which we don't want on an instance
373 interpreter = python2.6
374 scripts =
375   repozo
376   runzope
377   runzeo
378   tidstoraged
379   tidstorage_repozo
380
381 extra-paths =
382   ${itools:location}/lib
383   ${products-deps:location}
384   ${erp5:location}
385
386 [mysql-python]
387 python = python2.6
388
389 [lxml-python]
390 python = python2.6
391
392 [python-ldap-python]
393 python = python2.6
394
395 [pysvn-python]
396 python = python2.6
397
398 [cloudooo]
399 recipe = zc.recipe.egg
400 python = python2.6
401 eggs =
402   ${lxml-python:egg}
403   cloudooo.handler.ffmpeg
404   cloudooo.handler.imagemagick
405   cloudooo.handler.ooo
406   cloudooo.handler.pdf
407   cloudooo
408   PasteScript
409 scripts =
410   paster=cloudooo_paster
411
412 [versions]
413 # Use SlapOS patched zc.buildout
414 zc.buildout = 1.5.3-dev-SlapOS-010
415
416 # pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
417 Acquisition = 2.13.7nxd001
418 Products.DCWorkflow = 2.2.3nxd002
419
420 # Known version with works
421 numpy = 1.3.0
422 # Patched version which support python 2.6
423 PyXML = 0.8.4nxd001
424 # modified version that works fine for buildout installation
425 SOAPpy = 0.12.0nxd001
426 # we are still using this old stable version.
427 rdiff-backup = 1.0.5
428
429 # Zope Known Good Set is incompatible with buildout 1.5.0 in case of
430 # distribute and zc.buildout, and as ERP5 Appliance trunk wants to use
431 # the newest versions of buildout infrastructure clear the pin
432 distribute =
433 setuptools =
434
435 # official pysvn egg does not supports --include-dirs and
436 # --library-dirs, so we use our modified version
437 pysvn = 1.7.4nxd006