Use IPv6 to access mariadb.
[slapos.git] / stack / erp5 / buildout.cfg
1 [buildout]
2 # Local development
3 develop =
4   ${:parts-directory}/slapos.cookbook-repository
5   ${:parts-directory}/cloudooo-repository
6
7 extensions =
8   slapos.zcbworkarounds
9   mr.developer
10
11 find-links =
12     http://www.nexedi.org/static/packages/source/slapos.buildout/
13     http://www.nexedi.org/static/packages/source/hexagonit.recipe.download/
14     http://dist.repoze.org
15     http://www.nexedi.org/static/packages/source/
16     http://www.owlfish.com/software/wsgiutils/download.html
17
18 extends =
19 # Exact version of Zope
20   http://svn.zope.org/repos/main/Zope/tags/2.12.25/versions.cfg
21   ../../stack/slapos.cfg
22   ../../component/logrotate/buildout.cfg
23   ../../component/dcron/buildout.cfg
24   ../../component/file/buildout.cfg
25   ../../component/fonts/buildout.cfg
26   ../../component/ghostscript/buildout.cfg
27   ../../component/git/buildout.cfg
28   ../../component/graphviz/buildout.cfg
29   ../../component/gzip/buildout.cfg
30   ../../component/haproxy/buildout.cfg
31   ../../component/hookbox/buildout.cfg
32   ../../component/librsvg/buildout.cfg
33   ../../component/imagemagick/buildout.cfg
34   ../../component/kumo/buildout.cfg
35   ../../component/libdmtx/buildout.cfg
36   ../../component/libpng/buildout.cfg
37   ../../component/libreoffice-bin/buildout.cfg
38   ../../component/lxml-python/buildout.cfg
39   ../../component/percona-toolkit/buildout.cfg
40   ../../component/mariadb/buildout.cfg
41   ../../component/memcached/buildout.cfg
42   ../../component/mysql-python/buildout.cfg
43   ../../component/pdftk/buildout.cfg
44   ../../component/pil-python/buildout.cfg
45   ../../component/pycrypto-python/buildout.cfg
46   ../../component/pysvn-python/buildout.cfg
47   ../../component/python-2.6/buildout.cfg
48   ../../component/python-2.7/buildout.cfg
49   ../../component/python-ldap-python/buildout.cfg
50   ../../component/rdiff-backup/buildout.cfg
51   ../../component/stunnel/buildout.cfg
52   ../../component/subversion/buildout.cfg
53   ../../component/tesseract/buildout.cfg
54   ../../component/varnish/buildout.cfg
55   ../../component/w3-validator/buildout.cfg
56   ../../component/w3m/buildout.cfg
57   ../../component/xorg/buildout.cfg
58   ../../component/poppler/buildout.cfg
59   ../../component/xtrabackup/buildout.cfg
60   ../../component/zabbix/buildout.cfg
61   ../../component/sed/buildout.cfg
62   ../../component/coreutils/buildout.cfg
63   ../../component/grep/buildout.cfg
64   ../../component/dash/buildout.cfg
65   ../../component/wget/buildout.cfg
66   ../../component/aspell/buildout.cfg
67   ../../component/cloudooo/buildout.cfg
68
69 parts =
70   rdiff-backup
71   aspell
72   aspell-en-dictionary
73   apache
74   apache-antiloris
75   file
76   graphviz
77   memcached
78   haproxy
79   varnish-3.0
80   stunnel
81   w3m
82   poppler
83   libpng
84   ghostscript
85   mariadb
86   mroonga-mariadb
87   imagemagick
88   libdmtx
89   dmtx-utils
90   kumo
91   libreoffice-bin
92   w3-validator
93   tesseract
94   hookbox
95   bootstrap2.6
96   perl-DBD-mariadb
97   perl-DBI
98   percona-toolkit
99   zabbix-agent
100   pdftk
101   dcron
102   dash
103   wget
104
105 # Buildoutish
106   eggs
107   testrunner
108   test_suite_runner
109
110 # basic Xorg
111   libXdmcp
112   libXext
113   libXau
114   libSM
115   libXrender
116
117 # fonts
118   liberation-fonts
119   ipaex-fonts
120
121 # Cloudooo specific part
122   cloudooo
123
124 # get git repositories
125   erp5
126   genbt5list
127
128 # fix products path (Zeo needs ERP5 Products to be available for
129 # conflict resolution)
130   fix-products-paths
131 # some additional utils
132   slapos-toolbox
133
134 # Local development
135   slapos.cookbook-repository
136   check-recipe
137   slapos.cookbook-python2.6
138   slapos.recipe.template-python2.6
139 # Create instance template
140   template
141
142 # Local development
143 [slapos.cookbook-repository]
144 recipe = plone.recipe.command
145 stop-on-error = true
146 branch = erp5-component
147 revision =
148 location = ${buildout:parts-directory}/${:_buildout_section_name_}
149 command = "${git:location}/bin/git" clone --branch "${:branch}" --quiet http://git.erp5.org/repos/slapos.git "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi
150 update-command = cd "${:location}" && "${git:location}/bin/git" fetch --quiet && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --quiet --hard @{upstream} ; fi
151
152 [check-recipe]
153 recipe = plone.recipe.command
154 stop-on-error = true
155 update-command = ${:command}
156 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
157
158 [slapos.cookbook-python2.6]
159 recipe = zc.recipe.egg
160 eggs = slapos.cookbook
161 scripts =
162 python = python2.6
163 ugly-depend-on = ${slapos.cookbook-repository:command} ${slapos.cookbook-repository:update-command}
164
165 [slapos.recipe.template-python2.6]
166 recipe = zc.recipe.egg
167 eggs = slapos.recipe.template
168 scripts =
169 python = python2.6
170
171 [template-jinja2-base]
172 recipe = slapos.recipe.template:jinja2
173 template = ${:_profile_base_location_}/${:filename}.in
174 rendered = ${buildout:directory}/${:filename}
175 # XXX: extra-context is needed because we cannot append to a key of an extended
176 # section.
177 extra-context =
178 context =
179     key bin_directory buildout:bin-directory
180     key develop_eggs_directory buildout:develop-eggs-directory
181     key eggs_directory buildout:eggs-directory
182     ${:extra-context}
183
184 [template-mariadb]
185 < = template-jinja2-base
186 filename = instance-mariadb.cfg
187 md5sum = 78fa0d9e9f98875093b6d9929d6f2ccf
188 extra-context =
189     key coreutils_location coreutils:location
190     key dcron_location dcron:location
191     key gettext_location gettext:location
192     key grep_location grep:location
193     key gzip_location gzip:location
194     key logrotate_location logrotate:location
195     key mariadb_location mariadb:location
196     key perl_location perl:location
197     key perl_siteprefix perl:siteprefix
198     key sed_location sed:location
199     key xtrabackup_location xtrabackup:location
200
201 [template-zope]
202 recipe = slapos.recipe.build:download
203 url = ${:_profile_base_location_}/instance-zope.cfg.in
204 md5sum = de2918c8ca604f452a69108f6e31e78d
205 mode = 640
206
207 [template-kumofs]
208 < = template-jinja2-base
209 filename = instance-kumofs.cfg
210 md5sum = 7e13d689de7163dcab64e8df4711cdd7
211 extra-context =
212     key dash_location dash:location
213     key dcron_location dcron:location
214     key gzip_location gzip:location
215     key kumo_location kumo:location
216     key logrotate_location logrotate:location
217
218 [template-tidstorage]
219 recipe = slapos.recipe.build:download
220 url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
221 md5sum = 1f3e7cfc719d3c2eee4860678f6a67df
222 mode = 640
223
224 [template-cloudooo]
225 recipe = slapos.recipe.build:download
226 url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
227 md5sum = 53492e520be57f4c6a9eacd107c8d446
228 mode = 640
229
230 [template-zope-conf]
231 recipe = slapos.recipe.build:download
232 url = ${:_profile_base_location_}/zope.conf.in
233 md5sum = bc2154161a1d5baddc4ed4dfaaf94fbe
234 mode = 640
235
236 [template]
237 < = template-jinja2-base
238 # XXX: "template.cfg" is hardcoded in instanciation recipe
239 filename = template.cfg
240 template = ${:_profile_base_location_}/instance.cfg.in
241 md5sum = 700b8729a4d9a8423ab2a99de486cc31
242 extra-context =
243     key apache_location apache:location
244     key aspell_location aspell:location
245     key buildout_bin_directory buildout:bin-directory
246     key coreutils_location coreutils:location
247     key curl_location curl:location
248     key dash_location dash:location
249     key dcron_location dcron:location
250     key dmtx_utils_location dmtx-utils:location
251     key erp5_location erp5:location
252     key file_location file:location
253     key fontconfig_location fontconfig:location
254     key fonts_location fonts:location
255     key freetype_location freetype:location
256     key git_location git:location
257     key graphviz_location graphviz:location
258     key grep_location grep:location
259     key gzip_location gzip:location
260     key haproxy_location haproxy:location
261     key imagemagick_location imagemagick:location
262     key libICE_location libICE:location
263     key libSM_location libSM:location
264     key libX11_location libX11:location
265     key libXau_location libXau:location
266     key libXdmcp_location libXdmcp:location
267     key libXext_location libXext:location
268     key libXrender_location libXrender:location
269     key libpng12_location libpng12:location
270     key libreoffice_bin_location libreoffice-bin:location
271     key librsvg_location librsvg:location
272     key libxcb_location libxcb:location
273     key local_bt5_repository local-bt5-repository:list
274     key logrotate_location logrotate:location
275     key mariadb_location mariadb:location
276     key openssl_location openssl:location
277     key pdftk_location pdftk:location
278     key poppler_location poppler:location
279     key sed_location sed:location
280     key template_cloudooo template-cloudooo:target
281     key template_erp5_single template-erp5-single:target
282     key template_erp5_cluster template-erp5-cluster:rendered
283     key template_kumofs template-kumofs:rendered
284     key template_mariadb template-mariadb:rendered
285     key template_memcached template-memcached:rendered
286     key template_tidstorage template-tidstorage:target
287     key template_varnish template-varnish:target
288     key template_zope template-zope:target
289     key template_zope_conf template-zope-conf:target
290     key tesseract_location tesseract:location
291     key varnish_location varnish-3.0:location
292     key w3m_location w3m:location
293     key wget_location wget:location
294     key zlib_location zlib:location
295
296 [template-memcached]
297 < = template-jinja2-base
298 filename = instance-memcached.cfg
299 md5sum = 44c507e9eec1003beb99f9063b5e09be
300 extra-context =
301     key dash_location dash:location
302     key memcached_location memcached:location
303
304 [template-erp5-single]
305 recipe = slapos.recipe.build:download
306 url = ${:_profile_base_location_}/instance-erp5-single.cfg.in
307 md5sum = 2a4312202a3160f874c4fa3ee9155a1d
308 mode = 640
309
310 [template-erp5-cluster]
311 < = template-jinja2-base
312 filename = instance-erp5-cluster.cfg
313 md5sum = b4a9688ca7983fac5dd573e66c6e4263
314 extra-context =
315     key local_bt5_repository local-bt5-repository:list
316
317 [template-varnish]
318 recipe = slapos.recipe.build:download
319 url = ${:_profile_base_location_}/instance-varnish.cfg.in
320 md5sum = 17aee2df57b121343b1fd65f4b51ce80
321 mode = 640
322
323 [bt5-repository]
324 # Format:
325 #   <url or path> [...]
326 #
327 # Use absolute paths for local repositories, and URLs for non-local otherwise.
328 #
329 list = ${local-bt5-repository:list}
330
331 [local-bt5-repository]
332 # Same as bt5-repository, but only local repository.
333 # Used to generate bt5lists.
334 list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap
335
336 [genbt5list]
337 recipe = plone.recipe.command
338 stop-on-error = true
339 genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
340 command =
341   ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
342 update-command = ${:command}
343
344 [bootstrap2.6]
345 python = python2.6
346
347 [erp5_repository_list]
348 repository_id_list = erp5
349
350 [erp5]
351 # Recipe zerokspot.recipe.git is disabled, as is not possible to change its
352 # environment to use localy delivered git.
353 # plone.recipe.command can do same job, but it is controllable which binary
354 # will be used
355 recipe = plone.recipe.command
356 location = ${buildout:parts-directory}/${:_buildout_section_name_}
357 stop-on-error = true
358 repository = http://git.erp5.org/repos/erp5.git
359 branch = master
360 revision =
361 command = "${git:location}/bin/git" clone --quiet --branch "${:branch}" "${:repository}" "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi
362 update-command = cd "${:location}" && "${git:location}/bin/git" fetch && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --hard @{upstream} ; fi
363
364 [fix-products-paths]
365 recipe = plone.recipe.command
366 stop-on-error = true
367 command =
368   for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
369 update-command = ${:command}
370
371 [testrunner]
372 # XXX: Workaround for fact ERP5Type is not an distribution and does not
373 #      expose entry point for test runner
374 recipe = zc.recipe.egg
375 python = python2.6
376 eggs = ${eggs:eggs}
377 extra-paths = ${eggs:extra-paths}
378 entry-points =
379   runUnitTest=runUnitTest:main
380 scripts = runUnitTest
381 initialization =
382   import glob, imp, os, sys
383   import App # prevent Testing from importing Zope2.App instead of App
384   import Products
385   Products.__path__[:0] = filter(None,
386     os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
387   os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
388   os.environ['ZOPE_SCRIPTS'] = ''
389   parts_directory = '''${buildout:parts-directory}'''
390   repository_id_list = \
391     '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
392   os.environ['erp5_tests_bt5_path'] = ','.join(sum((
393     [bt5_path, os.path.join(bt5_path, '*')]
394     for bt5_path in (os.path.join(parts_directory, x, 'bt5')
395                      for x in repository_id_list)), []))
396   extra_path_list = '''${:extra-paths}'''.split()
397   sys.path[:0] = sum((
398     glob.glob(os.path.join(x, 'tests'))
399     for x in extra_path_list), [])
400   sys.path[:0] = sum((
401     glob.glob(os.path.join(x, 'Products', '*', 'tests'))
402     for x in extra_path_list), [])
403
404 [test_suite_runner]
405 # XXX: Workaround for fact ERP5Type is not an distribution and does not
406 #      expose entry point for test runner
407 recipe = zc.recipe.egg
408 python = python2.6
409 eggs = ${eggs:eggs}
410 extra-paths = ${eggs:extra-paths}
411 entry-points =
412   runTestSuite=Products.ERP5Type.tests.runTestSuite:main
413 scripts = runTestSuite
414 initialization =
415   import os
416   import sys
417   import Products
418   [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
419   import Zope2
420   os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
421   os.environ['ZOPE_SCRIPTS'] = ''
422   repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
423   sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
424
425 [eggs]
426 recipe = zc.recipe.egg
427 python = python2.6
428 eggs =
429   ${mysql-python:egg}
430   ${lxml-python:egg}
431   ${pil-python:egg}
432   ${python-ldap-python:egg}
433   ${pysvn-python:egg}
434   ${pycrypto-python:egg}
435   PyXML
436   SOAPpy
437   cElementTree
438   chardet
439   coverage
440   elementtree
441   erp5diff
442   inotifyx
443   ipdb
444   mechanize
445   numpy
446   ordereddict
447   paramiko
448   ply
449   python-magic
450   python-memcached
451   pytz
452   requests
453   threadframe
454   timerserver
455   urlnorm
456   uuid
457   xml_marshaller
458   xupdate_processor
459   feedparser
460   argparse
461   validictory
462   erp5.util
463   huBarcode
464   qrcode
465
466 # Zope
467   ZODB3
468   Zope2
469 # Zope acquisition patch
470   Acquisition
471
472 # Other Zope 2 packages
473   Products.PluggableAuthService
474   Products.PluginRegistry
475
476 # CMF 2.2
477   Products.CMFActionIcons
478   Products.CMFCalendar
479   Products.CMFCore
480   Products.CMFDefault
481   Products.CMFTopic
482   Products.CMFUid
483   Products.DCWorkflow
484   Products.GenericSetup
485   five.localsitemanager
486
487 # Other products
488   Products.DCWorkflowGraph
489   Products.MimetypesRegistry
490   Products.ExternalEditor
491   Products.TIDStorage
492
493 # Currently forked in our repository
494 #    Products.PortalTransforms
495 # Dependency for our fork of PortalTransforms
496   StructuredText
497
498 # Needed for parsing .po files from our Localizer subset
499   polib
500
501 # parameterizing the version of the generated python interpreter name by the
502 # python section version causes dependency between this egg section and the
503 # installation of python, which we don't want on an instance
504 interpreter = python2.6
505 scripts =
506   repozo
507   runzope
508   runzeo
509   tidstoraged
510   tidstorage_repozo
511   web_checker_utility = erp5.util.webchecker:web_checker_utility
512
513 extra-paths =
514   ${erp5:location}
515
516 [cloudooo-repository]
517 branch = master
518 revision = 4cdfffb3f81a0fdbb7b372d92de664e716f12d4b
519
520 [mysql-python]
521 python = python2.6
522
523 [lxml-python]
524 python = python2.6
525
526 [pil-python]
527 python = python2.6
528
529 [python-ldap-python]
530 python = python2.6
531
532 [pysvn-python]
533 python = python2.6
534
535 [slapos-toolbox]
536 recipe = zc.recipe.egg
537 python = ${eggs:python}
538 eggs =
539   ${lxml-python:egg}
540   slapos.toolbox
541   slapos.toolbox[zodbpack]
542
543 scripts =
544   killpidfromfile
545   onetimedownload
546   zodbpack
547
548 [versions]
549 # pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
550 Acquisition = 2.13.7nxd001
551 Products.DCWorkflow = 2.2.3nxd002
552
553 # Known version with works
554 numpy = 1.6.2
555 # Patched version which support python 2.6
556 PyXML = 0.8.4nxd001
557 # modified version that works fine for buildout installation
558 SOAPpy = 0.12.0nxd001
559 # we are still using this old stable version.
560 rdiff-backup = 1.0.5
561
562 # official pysvn egg does not supports --include-dirs and
563 # --library-dirs, so we use our modified version
564 pysvn = 1.7.4nxd006
565
566 # CMF 2.3 requries Zope 2.13.
567 Products.CMFCalendar = 2.2.2
568 Products.CMFCore = 2.2.6
569 Products.CMFDefault = 2.2.2
570 Products.CMFTopic = 2.2.1
571 Products.CMFUid = 2.2.1
572
573 # Unpined locally developed egg
574 slapos.cookbook =
575
576 # Pinned versions
577 Flask = 0.9
578 GitPython = 0.3.2.RC1
579 MySQL-python = 1.2.3
580 PIL = 1.1.7
581 Paste = 1.7.5.1
582 PasteDeploy = 1.5.0
583 PasteScript = 1.7.5
584 Products.CMFActionIcons = 2.1.3
585 Products.DCWorkflowGraph = 0.4.1
586 Products.ExternalEditor = 1.1.0
587 Products.GenericSetup = 1.7.2
588 Products.MimetypesRegistry = 2.0.3
589 Products.PluggableAuthService = 1.8.0
590 Products.PluginRegistry = 1.3
591 Products.TIDStorage = 5.4.8
592 Products.Zelenium = 1.0.3
593 StructuredText = 2.11.1
594 WSGIUtils = 0.7
595 Werkzeug = 0.8.3
596 apache-libcloud = 0.11.1
597 argparse = 1.2.1
598 async = 0.6.1
599 atomize = 0.1.1
600 buildout-versions = 1.7
601 cElementTree = 1.0.5-20051216
602 chardet = 1.1
603 coverage = 3.5.2
604 csp-eventlet = 0.7.0
605 elementtree = 1.2.7-20070827-preview
606 erp5.recipe.cmmiforcei686 = 0.1.3
607 erp5.util = 0.4.6
608 erp5diff = 0.8.1.5
609 eventlet = 0.9.17
610 feedparser = 5.1.2
611 five.localsitemanager = 2.0.5
612 fpconst = 0.7.2
613 gitdb = 0.5.4
614 greenlet = 0.4.0
615 hexagonit.recipe.cmmi = 1.6
616 http-parser = 0.7.8
617 huBarcode = 0.63
618 inotifyx = 0.2.0
619 ipdb = 0.7
620 ipython = 0.13
621 meld3 = 0.6.8
622 netaddr = 0.7.9
623 netifaces = 0.8
624 ordereddict = 1.1
625 paramiko = 1.7.7.2
626 plone.recipe.command = 1.1
627 ply = 3.4
628 polib = 1.0.0
629 psutil = 0.6.1
630 python-ldap = 2.4.10
631 python-magic = 0.4.3
632 python-memcached = 1.47
633 restkit = 4.2.0
634 rtjp-eventlet = 0.3.2
635 setuptools = 0.6c12dev-r88846
636 slapos.core = 0.28
637 slapos.recipe.build = 0.10
638 slapos.recipe.template = 2.4.2
639 slapos.toolbox = 0.29
640 smmap = 0.8.2
641 socketpool = 0.5.2
642 supervisor = 3.0a12
643 threadframe = 0.2
644 timerserver = 2.0.2
645 urlnorm = 1.1.2
646 uuid = 1.30
647 validictory = 0.8.3
648 xml-marshaller = 0.9.7
649 xupdate-processor = 0.4
650 mr.developer = 1.21
651 qrcode = 2.4.1
652 requests = 0.13.2