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