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