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