software.cfg 10.2 KB
Newer Older
1 2 3
[buildout]
extensions =
  slapos.tool.rebootstrap
4
  slapos.tool.networkcache
5 6 7
  slapos.zcbworkarounds
  mr.developer

Łukasz Nowak's avatar
Łukasz Nowak committed
8 9
find-links =
    http://www.nexedi.org/static/packages/source/slapos.buildout/
10 11 12 13 14
    http://dist.repoze.org
    http://www.nexedi.org/static/packages/source/

extends =
# Exact version of Zope
15
  http://svn.zope.org/repos/main/Zope/tags/2.12.18/versions.cfg
Sebastien Robin's avatar
Sebastien Robin committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
  profile/logrotate.cfg
  profile/dcron.cfg
  profile/file.cfg
  profile/fonts.cfg
  profile/ghostscript.cfg
  profile/git.cfg
  profile/glib.cfg
  profile/graphviz.cfg
  profile/haproxy.cfg
  profile/hookbox.cfg
  profile/imagemagick.cfg
  profile/kumo.cfg
  profile/libreoffice-bin.cfg
  profile/lxml-python.cfg
  profile/mariadb.cfg
  profile/memcached.cfg
  profile/mysql-python.cfg
  profile/pdftk.cfg
  profile/pysvn-python.cfg
  profile/python-2.6.cfg
  profile/python-2.7.cfg
  profile/python-ldap-python.cfg
  profile/rdiff-backup.cfg
  profile/stunnel.cfg
  profile/subversion.cfg
  profile/tesseract.cfg
  profile/varnish.cfg
43
  profile/w3-validator.cfg
Sebastien Robin's avatar
Sebastien Robin committed
44 45 46
  profile/w3m.cfg
  profile/xorg.cfg
  profile/xpdf.cfg
47
  profile/xtrabackup.cfg
Sebastien Robin's avatar
Sebastien Robin committed
48
  profile/zabbix.cfg
49
  profile/sed.cfg
50
  profile/coreutils.cfg
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72

versions = versions

parts =
  itools-build
  rdiff-backup
  apache
  apache-antiloris
  file
  graphviz
  memcached
  haproxy
  varnish-2.1
  stunnel
  w3m
  xpdf
  libpng12
  ghostscript
  mariadb
  imagemagick
  kumo
  libreoffice-bin
73
  w3-validator
74 75
  tesseract-eng-traineddata-unzip
  tesseract
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
76
  hookbox
77 78
  bootstrap2.6
  zabbix-agent
79
  pdftk
Łukasz Nowak's avatar
Łukasz Nowak committed
80
  dcron
81 82 83

# Buildoutish
  eggs
84
  instance-recipe-egg
85
  testrunner
86
  test_suite_runner
87 88

# basic Xorg
89
  libXdmcp
90 91 92 93 94 95 96 97 98 99 100 101 102 103
  libXext
  libXau
  libX11

# fonts
  liberation-fonts
  ipaex-fonts

# Zope products
  products-deps

# Cloudooo specific part
  cloudooo

104
# get git repositories
Sebastien Robin's avatar
Sebastien Robin committed
105
  erp5
106

107 108 109 110 111 112 113 114 115 116 117
# Create instance template
  template

[instance-recipe]
# Note: In case if specific instantiation recipe is used this is the place to
# put its name
name = slapos.recipe.erp5

[products]
# XXX: ERP5 related products are not defined as python distributions, so it is
#      required to configure them in declarative manner
118
list = ${products-deps:location} ${erp5:location}/product
119 120

[bootstrap2.6]
121
python = python2.6
122 123 124

[rebootstrap]
# Default first version of rebootstrapped python
125
version = 2
126
section = python2.7
127 128

[template]
129
# Default template for erp5 instance.
130
recipe = slapos.recipe.template
131
url = ${:_profile_base_location_}/instance.cfg
132
md5sum = ad944fd8df2fbb51027a2f8a090b1b50
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
output = ${buildout:directory}/template.cfg
mode = 0644

[itools]
pkgname = itools-0.50.8
location = ${buildout:parts-directory}/${:_buildout_section_name_}
lib = ${:location}/lib
source = ${:location}/src

# ugly itools building sections until itools and setuptools learn to get
# along:

[itools-download]
recipe = hexagonit.recipe.download
strip-top-level-dir = true
url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
md5sum = 12704cc354e2201e0921a832bf6b1556
destination = ${itools:source}

[itools-build]
recipe = plone.recipe.command
# reference itools-download:destination instead of itools:source to trigger its
# execution
156
# here, we unset PYTHONPATH to invoke different python than buildout one.
157 158
command =
    cd ${itools-download:destination} &&
159 160
    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 &&
    PYTHONPATH= ${python2.6:executable} setup.py install_lib -d ${itools:lib}
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184

update-command = ${:command}
location = ${itools:location}
stop-on-error = true

[products-deps]
# Recipe minitage.recipe.fetch is disabled, as it uses PATH variable, but it
# is not possible to change its environment to use localy delivered subversion
# nor git. plone.recipe.command can do same job, but it is controllable which
# binary will be used
recipe = plone.recipe.command
svn_param =--trust-server-cert --non-interactive --quiet
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
command =
  ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
  ${git:location}/bin/git clone --quiet git://git.hforge.org/Localizer.git ${:location}/Localizer
update-command =
  if ${buildout:newest}; then
    ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
    cd ${:location}/Localizer &&
    ${git:location}/bin/git pull --quiet
  fi

185 186 187
[erp5_repository_list]
repository_id_list = erp5

Sebastien Robin's avatar
Sebastien Robin committed
188
[erp5]
189 190 191 192 193 194 195
# Recipe zerokspot.recipe.git is disabled, as is not possible to change its
# environment to use localy delivered git.
# plone.recipe.command can do same job, but it is controllable which binary
# will be used
recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
196
repository = http://git.erp5.org/repos/erp5.git
197 198
branch = master
command = ${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location}
199
update-command = cd ${:location} && ${git:location}/bin/git pull --quiet
200 201 202 203

[products]
# XXX: ERP5 related products are not defined as python distributions, so it is
#      required to configure them in declarative manner
Sebastien Robin's avatar
typo  
Sebastien Robin committed
204
list = ${products-deps:location} ${buildout:parts-directory}/erp5/product
205

206 207 208 209
[testrunner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
210
python = python2.6
211 212 213 214 215 216 217 218 219 220 221 222 223 224
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
  runUnitTest=Products.ERP5Type.tests.runUnitTest:main
scripts = runUnitTest
initialization =
  import os
  import sys
  import Products
  [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
  Products.__path__.extend(reversed('''${products:list}'''.split()))
  import Zope2
  os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
  os.environ['ZOPE_SCRIPTS'] = ''
225 226 227 228 229
  temp_bt5_path_list = ['/'.join(['''${buildout:parts-directory}''', x, 'bt5']) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
  bt5_path_list = []
  [bt5_path_list.extend([bt5_path, '%s/*' % bt5_path]) for bt5_path in temp_bt5_path_list]
  os.environ['erp5_tests_bt5_path'] = ','.join(bt5_path_list)
  sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x, 'tests']) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
230 231 232 233
  import glob
  product_test_path_list = []
  [product_test_path_list.extend(glob.glob('/'.join(['''${buildout:parts-directory}''', x, 'product/*/tests']))) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
  sys.path[0:0] = product_test_path_list
234

235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
[test_suite_runner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
  runTestSuite=Products.ERP5Type.tests.runTestSuite:main
scripts = runTestSuite
initialization =
  import os
  import sys
  import Products
  [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
  Products.__path__.extend(reversed('''${products:list}'''.split()))
  import Zope2
  os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
  os.environ['ZOPE_SCRIPTS'] = ''
254
  sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
255

256 257 258 259 260 261
[instance-recipe-egg]
recipe = zc.recipe.egg
python = python2.6
eggs =
# instantiation egg
  ${instance-recipe:name}
262
  erp5.conflictresolver
263

264 265
[eggs]
recipe = zc.recipe.egg
266
python = python2.6
267 268 269 270 271
eggs =
  ${mysql-python:egg}
  ${lxml-python:egg}
  ${python-ldap-python:egg}
  ${pysvn-python:egg}
272
  pycrypto
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
  PyXML
  SOAPpy
  cElementTree
  chardet
  elementtree
  erp5diff
  ipdb
  mechanize
  numpy
  ordereddict
  paramiko
  ply
  python-magic
  python-memcached
  pytz
  threadframe
  timerserver
  urlnorm
  uuid
  xml_marshaller
  xupdate_processor
  feedparser
295
  argparse
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320

# Zope 2.12 with patched acquisition
  ZODB3
  Zope2
  Acquisition

# Other Zope 2 packages
  Products.PluggableAuthService
  Products.PluginRegistry

# CMF 2.2
  Products.CMFActionIcons
  Products.CMFCalendar
  Products.CMFCore
  Products.CMFDefault
  Products.CMFTopic
  Products.CMFUid
  Products.DCWorkflow
  Products.GenericSetup
  five.localsitemanager

# Other products
  Products.DCWorkflowGraph
  Products.MimetypesRegistry
  Products.ExternalEditor
321
  Products.TIDStorage
322 323 324 325 326 327 328 329 330 331 332 333
  Products.Zelenium

# Currently forked in our repository
#    Products.PortalTransforms
# Dependency for our fork of PortalTransforms
  StructuredText

# parameterizing the version of the generated python interpreter name by the
# python section version causes dependency between this egg section and the
# installation of python, which we don't want on an instance
interpreter = python2.6
scripts =
Łukasz Nowak's avatar
Łukasz Nowak committed
334
  repozo
335 336
  runzope
  runzeo
337 338
  tidstoraged
  tidstorage_repozo
339 340 341 342

extra-paths =
  ${itools:location}/lib

343 344 345 346 347 348 349 350 351 352 353 354
[mysql-python]
python = python2.6

[lxml-python]
python = python2.6

[python-ldap-python]
python = python2.6

[pysvn-python]
python = python2.6

355 356
[cloudooo]
recipe = zc.recipe.egg
357
python = python2.6
358 359
eggs =
  ${lxml-python:egg}
360 361
  cloudooo.handler.ffmpeg
  cloudooo.handler.imagemagick
362 363
  cloudooo.handler.ooo
  cloudooo.handler.pdf
364 365 366 367 368 369
  cloudooo
  PasteScript
scripts =
  paster=cloudooo_paster

[versions]
370 371 372
# Use SlapOS patched zc.buildout
zc.buildout = 1.5.3-dev-SlapOS-001

373
# pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
374 375
Acquisition = 2.13.7nxd001
Products.DCWorkflow = 2.2.3nxd002
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394

# Known version with works
numpy = 1.3.0
# Patched version which support python 2.6
PyXML = 0.8.4nxd001
# modified version that works fine for buildout installation
SOAPpy = 0.12.0nxd001
# we are still using this old stable version.
rdiff-backup = 1.0.5

# Zope Known Good Set is incompatible with buildout 1.5.0 in case of
# distribute and zc.buildout, and as ERP5 Appliance trunk wants to use
# the newest versions of buildout infrastructure clear the pin
distribute =
setuptools =

# official pysvn egg does not supports --include-dirs and
# --library-dirs, so we use our modified version
pysvn = 1.7.4nxd006