software.cfg 9.65 KB
Newer Older
1 2 3
[buildout]
extensions =
  slapos.tool.rebootstrap
4
  slapos.tool.networkcache
5 6 7 8 9 10 11 12 13
  slapos.zcbworkarounds
  mr.developer

find-links =
    http://dist.repoze.org
    http://www.nexedi.org/static/packages/source/

extends =
# Exact version of Zope
14
  http://svn.zope.org/repos/main/Zope/tags/2.12.16/versions.cfg
15 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 43 44 45 46
  ../../buildout/software-profiles/dcron.cfg
  ../../buildout/software-profiles/file.cfg
  ../../buildout/software-profiles/fonts.cfg
  ../../buildout/software-profiles/ghostscript.cfg
  ../../buildout/software-profiles/git.cfg
  ../../buildout/software-profiles/glib.cfg
  ../../buildout/software-profiles/graphviz.cfg
  ../../buildout/software-profiles/haproxy.cfg
  ../../buildout/software-profiles/hookbox.cfg
  ../../buildout/software-profiles/imagemagick.cfg
  ../../buildout/software-profiles/kumo.cfg
  ../../buildout/software-profiles/libreoffice-bin.cfg
  ../../buildout/software-profiles/lxml-python.cfg
  ../../buildout/software-profiles/mariadb.cfg
  ../../buildout/software-profiles/memcached.cfg
  ../../buildout/software-profiles/mysql-python.cfg
  ../../buildout/software-profiles/pdftk.cfg
  ../../buildout/software-profiles/products-erp5.cfg
  ../../buildout/software-profiles/pysvn-python.cfg
  ../../buildout/software-profiles/python-2.6.cfg
  ../../buildout/software-profiles/python-2.7.cfg
  ../../buildout/software-profiles/python-ldap-python.cfg
  ../../buildout/software-profiles/rdiff-backup.cfg
  ../../buildout/software-profiles/stunnel.cfg
  ../../buildout/software-profiles/subversion.cfg
  ../../buildout/software-profiles/tesseract.cfg
  ../../buildout/software-profiles/varnish.cfg
  ../../buildout/software-profiles/w3-validator.cfg
  ../../buildout/software-profiles/w3m.cfg
  ../../buildout/software-profiles/xorg.cfg
  ../../buildout/software-profiles/xpdf.cfg
  ../../buildout/software-profiles/zabbix.cfg
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71

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
  w3-validator
  tesseract-eng-traineddata-unzip
  tesseract
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
72
  hookbox
73 74
  bootstrap2.6
  zabbix-agent
75
  pdftk
Łukasz Nowak's avatar
Łukasz Nowak committed
76
  dcron
77 78 79

# Buildoutish
  eggs
80
  instance-recipe-egg
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
  testrunner

# basic Xorg
  libXext
  libXau
  libX11

# fonts
  liberation-fonts
  ipaex-fonts

# Zope products
  products-deps
  products-tidstorage
  products-erp5
  products-erp5-development

# Cloudooo specific part
  cloudooo

# 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
list = ${products-deps:location} ${products-tidstorage:location} ${products-erp5:location} ${products-erp5-development:location}

[bootstrap2.6]
115
python = python2.6
116 117 118

[rebootstrap]
# Default first version of rebootstrapped python
119
version = 2
120
section = python2.7
121 122

[template]
123
# Default template for erp5 instance.
124 125
recipe = slapos.recipe.template
url = https://svn.erp5.org/repos/public/erp5/trunk/software_release/erp5/instance.cfg
126
md5sum = 26b65106eb57a8cb332c7f9bcb059361
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
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
150
# here, we unset PYTHONPATH to invoke different python than buildout one.
151 152
command =
    cd ${itools-download:destination} &&
153 154
    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}
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195

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

[products-tidstorage]
# Recipe infrae.subversion is using svn command under the hood, but there is
# no way to pass --trust-server-cert --non-interactive, so in 2.12 falvour
# it is better to evaluate usage of provided subversion command
recipe = plone.recipe.command
svn_param =--trust-server-cert --non-interactive --quiet --revision ${versions:erp5_products_revision}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
product_list = TIDStorage
command =
  for product in ${:product_list} ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/products/$product ${:location}/$product || exit 1 ; done

[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

[testrunner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
196
python = python2.6
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
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'] = ''

[pycrypto-python]
# This is a workaround for pkg_resources.ExtractionError: Can't extract file(s) to egg cache
# Note that currently we are stuck with develop eggs
# *Maybe* possible solution is to setup PYTHON_EGG_CACHE?
# *Why* python-MySQL workED and pycrypto DID not? Because MySQL distribution
# was unpacked, and pycrypto was packed.
recipe = zc.recipe.egg:custom
219
python = python2.6
220 221
egg = pycrypto

222 223 224 225 226 227
[instance-recipe-egg]
recipe = zc.recipe.egg
python = python2.6
eggs =
# instantiation egg
  ${instance-recipe:name}
228
  erp5.conflictresolver
229

230 231
[eggs]
recipe = zc.recipe.egg
232
python = python2.6
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
eggs =
  ${mysql-python:egg}
  ${lxml-python:egg}
  ${python-ldap-python:egg}
  ${pysvn-python:egg}
  ${pycrypto-python:egg}
  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

# 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
  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 =
  runzope
  runzeo

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

304 305 306 307 308 309 310 311 312 313 314 315
[mysql-python]
python = python2.6

[lxml-python]
python = python2.6

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

[pysvn-python]
python = python2.6

316 317
[cloudooo]
recipe = zc.recipe.egg
318
python = python2.6
319 320
eggs =
  ${lxml-python:egg}
321 322
  cloudooo.handler.ffmpeg
  cloudooo.handler.imagemagick
323 324
  cloudooo.handler.ooo
  cloudooo.handler.pdf
325 326 327 328 329 330 331 332 333 334
  cloudooo
  PasteScript
scripts =
  paster=cloudooo_paster

[versions]
# XXX: Maybe not needed
erp5_products_revision = HEAD

# pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
335 336
Acquisition = 2.13.7nxd001
Products.DCWorkflow = 2.2.3nxd002
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356

# 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 =
zc.buildout =
setuptools =

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