software.cfg 1.99 KB
Newer Older
1
[buildout]
Łukasz Nowak's avatar
Łukasz Nowak committed
2

3
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
4
  ../../component/mysql-tritonn-5.0/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
5
  ../../component/gzip/buildout.cfg
Romain Courteaud's avatar
Romain Courteaud committed
6
  ../../component/maatkit/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
7
  ../erp5/software.cfg
8 9

parts +=
10
  sanef.repository
11
  mysql-tritonn-5.0
Romain Courteaud's avatar
Romain Courteaud committed
12
  bt5-repository
13
  maatkit
14 15 16 17 18 19

[eggs]
# Just so buildout executes [bef_erp5-recipe] before [eggs], as
# - [eggs] references [bef_erp5-recipe]
# - [instance-recipe] needs [bef_erp5-recipe] to be finished
# - we cannot rely on anything else being executed before [eggs]
20 21
bef_dummy =
  ${z2loganalyser:location}
Łukasz Nowak's avatar
Łukasz Nowak committed
22 23 24 25 26 27 28 29

# XXX: Workaround for hack;
# slapos.core is added, as even if it is defined as dependency in bef_erp5-recipe
# it is not being fetched, maybe because of using this crazy hack.
# Note: Possibly everything from setup.py shall be done in same way.
eggs +=
  slapos.core

30 31 32 33 34
extra-paths +=
  ${products-erp5:location}

[template]
url = ${:_profile_base_location_}/instance.cfg
35
md5sum = e22bbf531d2b5f121462267cbd8d2ef8
36 37

[instance-recipe]
Łukasz Nowak's avatar
Łukasz Nowak committed
38 39
egg = slapos.cookbook
module = bef_erp5
40

41 42
[sanef.repository]
<= erp5
Ivan Tyagov's avatar
Ivan Tyagov committed
43
branch = CR1094
44
repository = https://saneftestbot:kucahS5oav6jahch@git.erp5.org/repos/sanef.git
Romain Courteaud's avatar
Romain Courteaud committed
45
command = (${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location}) || (rm -fr ${:location} && exit 1)
46

Romain Courteaud's avatar
Romain Courteaud committed
47 48 49 50
[bt5-repository]
recipe = plone.recipe.command
stop-on-error = true
command =
Romain Courteaud's avatar
Romain Courteaud committed
51
  ${buildout:executable} ${erp5:location}/product/ERP5/bin/genbt5list ${erp5:location}/product/ERP5/bootstrap ${erp5:location}/bt5 ${sanef.repository:location}/bt5
Romain Courteaud's avatar
Romain Courteaud committed
52
update-command = ${:command}
53 54 55 56 57 58 59 60 61

[products-erp5]
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
update-command = ${:command}
command =
  mkdir -p ${:location}/Products &&
  for product in ${erp5:location}/product/* ; do ln -fs $product ${:location}/Products ; done &&
Romain Courteaud's avatar
Typo  
Romain Courteaud committed
62
  for product in ${sanef.repository:location}/product/* ; do ln -fs $product ${:location}/Products ; done &&
63
  echo "__import__('pkg_resources').declare_namespace(__name__)" > "${:location}/Products/__init__.py"