Merge branch 'master' into lamp
[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   ocrb-fonts
121
122 # Cloudooo specific part
123   cloudooo
124
125 # get git repositories
126   erp5
127   genbt5list
128
129 # fix products path (Zeo needs ERP5 Products to be available for
130 # conflict resolution)
131   fix-products-paths
132 # some additional utils
133   slapos-toolbox
134
135 # Local development
136   slapos.cookbook-repository
137   check-recipe
138   slapos.cookbook-python2.6
139   slapos.recipe.template-python2.6
140 # Create instance template
141   template
142
143 # Local development
144 [slapos.cookbook-repository]
145 recipe = plone.recipe.command
146 stop-on-error = true
147 branch = erp5
148 revision =
149 location = ${buildout:parts-directory}/${:_buildout_section_name_}
150 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
151 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
152
153 [check-recipe]
154 recipe = plone.recipe.command
155 stop-on-error = true
156 update-command = ${:command}
157 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
158
159 [slapos.cookbook-python2.6]
160 recipe = zc.recipe.egg
161 eggs = slapos.cookbook
162 scripts =
163 python = python2.6
164 ugly-depend-on = ${slapos.cookbook-repository:command} ${slapos.cookbook-repository:update-command}
165
166 [slapos.recipe.template-python2.6]
167 recipe = zc.recipe.egg
168 eggs = slapos.recipe.template
169 scripts =
170 python = python2.6
171
172 [template-jinja2-base]
173 recipe = slapos.recipe.template:jinja2
174 template = ${:_profile_base_location_}/${:filename}.in
175 rendered = ${buildout:directory}/${:filename}
176 # XXX: extra-context is needed because we cannot append to a key of an extended
177 # section.
178 extra-context =
179 context =
180     key bin_directory buildout:bin-directory
181     key develop_eggs_directory buildout:develop-eggs-directory
182     key eggs_directory buildout:eggs-directory
183     ${:extra-context}
184
185 [template-mariadb]
186 < = template-jinja2-base
187 filename = instance-mariadb.cfg
188 md5sum = 867bd8e3c4f56db2aab2fcad59f2efd8
189 extra-context =
190     key coreutils_location coreutils:location
191     key dcron_location dcron:location
192     key gettext_location gettext:location
193     key grep_location grep:location
194     key gzip_location gzip:location
195     key logrotate_location logrotate:location
196     key mariadb_location mariadb:location
197     key perl_location perl:location
198     key perl_siteprefix perl:siteprefix
199     key sed_location sed:location
200     key xtrabackup_location xtrabackup:location
201
202 [template-zope]
203 recipe = slapos.recipe.build:download
204 url = ${:_profile_base_location_}/instance-zope.cfg.in
205 md5sum = de2918c8ca604f452a69108f6e31e78d
206 mode = 640
207
208 [template-kumofs]
209 < = template-jinja2-base
210 filename = instance-kumofs.cfg
211 md5sum = 7e13d689de7163dcab64e8df4711cdd7
212 extra-context =
213     key dash_location dash:location
214     key dcron_location dcron:location
215     key gzip_location gzip:location
216     key kumo_location kumo:location
217     key logrotate_location logrotate:location
218
219 [template-tidstorage]
220 recipe = slapos.recipe.build:download
221 url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
222 md5sum = 1f3e7cfc719d3c2eee4860678f6a67df
223 mode = 640
224
225 [template-cloudooo]
226 recipe = slapos.recipe.build:download
227 url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
228 md5sum = 53492e520be57f4c6a9eacd107c8d446
229 mode = 640
230
231 [template-zope-conf]
232 recipe = slapos.recipe.build:download
233 url = ${:_profile_base_location_}/zope.conf.in
234 md5sum = bc2154161a1d5baddc4ed4dfaaf94fbe
235 mode = 640
236
237 [template]
238 < = template-jinja2-base
239 # XXX: "template.cfg" is hardcoded in instanciation recipe
240 filename = template.cfg
241 template = ${:_profile_base_location_}/instance.cfg.in
242 md5sum = 700b8729a4d9a8423ab2a99de486cc31
243 extra-context =
244     key apache_location apache:location
245     key aspell_location aspell:location
246     key buildout_bin_directory buildout:bin-directory
247     key coreutils_location coreutils:location
248     key curl_location curl:location
249     key dash_location dash:location
250     key dcron_location dcron:location
251     key dmtx_utils_location dmtx-utils:location
252     key erp5_location erp5:location
253     key file_location file:location
254     key fontconfig_location fontconfig:location
255     key fonts_location fonts:location
256     key freetype_location freetype:location
257     key git_location git:location
258     key graphviz_location graphviz:location
259     key grep_location grep:location
260     key gzip_location gzip:location
261     key haproxy_location haproxy:location
262     key imagemagick_location imagemagick:location
263     key libICE_location libICE:location
264     key libSM_location libSM:location
265     key libX11_location libX11:location
266     key libXau_location libXau:location
267     key libXdmcp_location libXdmcp:location
268     key libXext_location libXext:location
269     key libXrender_location libXrender:location
270     key libpng12_location libpng12:location
271     key libreoffice_bin_location libreoffice-bin:location
272     key librsvg_location librsvg:location
273     key libxcb_location libxcb:location
274     key local_bt5_repository local-bt5-repository:list
275     key logrotate_location logrotate:location
276     key mariadb_location mariadb:location
277     key openssl_location openssl:location
278     key pdftk_location pdftk:location
279     key poppler_location poppler:location
280     key sed_location sed:location
281     key template_cloudooo template-cloudooo:target
282     key template_erp5_single template-erp5-single:target
283     key template_erp5_cluster template-erp5-cluster:rendered
284     key template_kumofs template-kumofs:rendered
285     key template_mariadb template-mariadb:rendered
286     key template_memcached template-memcached:rendered
287     key template_tidstorage template-tidstorage:target
288     key template_varnish template-varnish:target
289     key template_zope template-zope:target
290     key template_zope_conf template-zope-conf:target
291     key tesseract_location tesseract:location
292     key varnish_location varnish-3.0:location
293     key w3m_location w3m:location
294     key wget_location wget:location
295     key zlib_location zlib:location
296
297 [template-memcached]
298 < = template-jinja2-base
299 filename = instance-memcached.cfg
300 md5sum = 44c507e9eec1003beb99f9063b5e09be
301 extra-context =
302     key dash_location dash:location
303     key memcached_location memcached:location
304
305 [template-erp5-single]
306 recipe = slapos.recipe.build:download
307 url = ${:_profile_base_location_}/instance-erp5-single.cfg.in
308 md5sum = 2a4312202a3160f874c4fa3ee9155a1d
309 mode = 640
310
311 [template-erp5-cluster]
312 < = template-jinja2-base
313 filename = instance-erp5-cluster.cfg
314 md5sum = b4a9688ca7983fac5dd573e66c6e4263
315 extra-context =
316     key local_bt5_repository local-bt5-repository:list
317
318 [template-varnish]
319 recipe = slapos.recipe.build:download
320 url = ${:_profile_base_location_}/instance-varnish.cfg.in
321 md5sum = 17aee2df57b121343b1fd65f4b51ce80
322 mode = 640
323
324 [bt5-repository]
325 # Format:
326 #   <url or path> [...]
327 #
328 # Use absolute paths for local repositories, and URLs for non-local otherwise.
329 #
330 list = ${local-bt5-repository:list}
331
332 [local-bt5-repository]
333 # Same as bt5-repository, but only local repository.
334 # Used to generate bt5lists.
335 list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap
336
337 [genbt5list]
338 recipe = plone.recipe.command
339 stop-on-error = true
340 genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
341 command =
342   ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
343 update-command = ${:command}
344
345 [bootstrap2.6]
346 python = python2.6
347
348 [erp5_repository_list]
349 repository_id_list = erp5
350
351 [erp5]
352 # Recipe zerokspot.recipe.git is disabled, as is not possible to change its
353 # environment to use localy delivered git.
354 # plone.recipe.command can do same job, but it is controllable which binary
355 # will be used
356 recipe = plone.recipe.command
357 location = ${buildout:parts-directory}/${:_buildout_section_name_}
358 stop-on-error = true
359 repository = http://git.erp5.org/repos/erp5.git
360 branch = master
361 revision =
362 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
363 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
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
634 restkit = 4.2.0
635 rtjp-eventlet = 0.3.2
636 setuptools = 0.6c12dev-r88846
637 slapos.core = 0.28
638 slapos.recipe.build = 0.10
639 slapos.recipe.template = 2.4.2
640 slapos.toolbox = 0.29
641 smmap = 0.8.2
642 socketpool = 0.5.2
643 supervisor = 3.0a12
644 threadframe = 0.2
645 timerserver = 2.0.2
646 urlnorm = 1.1.2
647 uuid = 1.30
648 validictory = 0.8.3
649 xml-marshaller = 0.9.7
650 xupdate-processor = 0.4
651 mr.developer = 1.21
652 qrcode = 2.4.1
653 requests = 0.13.2