Blame view

component/slapos/buildout.cfg 5.04 KB
1
# This file is used to install SlapOS Node itself.
Łukasz Nowak committed
2 3
[buildout]
extends =
Rafael Monnerat committed
4
  ../../stack/slapos.cfg
Kazuhiko Shiozaki committed
5 6 7
  ../bison/buildout.cfg
  ../bzip2/buildout.cfg
  ../firewalld/buildout.cfg
Łukasz Nowak committed
8 9
  ../gdbm/buildout.cfg
  ../gettext/buildout.cfg
Kazuhiko Shiozaki committed
10 11 12
  ../glib/buildout.cfg
  ../libxml2/buildout.cfg
  ../libxslt/buildout.cfg
Łukasz Nowak committed
13
  ../m4/buildout.cfg
Kazuhiko Shiozaki committed
14 15 16 17
  ../ncurses/buildout.cfg
  ../openssl/buildout.cfg
  ../patch/buildout.cfg
  ../pkgconfig/buildout.cfg
Łukasz Nowak committed
18
  ../python-2.7/buildout.cfg
Kazuhiko Shiozaki committed
19
  ../readline/buildout.cfg
Łukasz Nowak committed
20 21
  ../sqlite3/buildout.cfg
  ../swig/buildout.cfg
Kazuhiko Shiozaki committed
22
  ../zlib/buildout.cfg
Guillaume Hervier committed
23
  ../socat/buildout.cfg
Łukasz Nowak committed
24 25 26

parts =
  slapos
Łukasz Nowak committed
27 28
  cfg-environment
  sh-environment
Marco Mariani committed
29
  py
Alain Takoudjou committed
30
  firewalld-patch
Łukasz Nowak committed
31

Łukasz Nowak committed
32
[environment]
Cédric de Saint Martin committed
33
# Note: For now original PATH is appended to the end, as not all tools are
Łukasz Nowak committed
34
#       provided by SlapOS
Guillaume Hervier committed
35
PATH=${bison:location}/bin:${bzip2:location}/bin:${gettext:location}/bin:${glib:location}/bin:${libxml2:location}/bin:${libxslt:location}/bin:${m4:location}/bin:${ncurses:location}/bin:${openssl:location}/bin:${pkgconfig:location}/bin:${python2.7:location}/bin:${readline:location}/bin:${sqlite3:location}/bin:${swig:location}/bin:${buildout:bin-directory}:${patch:location}/bin:${socat:location}/bin:$PATH
Rafael Monnerat committed
36
CFLAGS=-I${bzip2:location}/include -I${gdbm:location}/include -I${gettext:location}/include -I${glib:location}/include -I${libxml2:location}/include -I${libxslt:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${readline:location}/include -I${sqlite3:location}/include -I${zlib:location}/include
Łukasz Nowak committed
37
CPPFLAGS=${:CFLAGS}
Rafael Monnerat committed
38 39 40
LDFLAGS=-L${bzip2:location}/lib -Wl,-rpath=${bzip2:location}/lib -L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib -L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -L${glib:location}/lib -Wl,-rpath=${glib:location}/lib -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${libxslt:location}/lib -Wl,-rpath=${libxslt:location}/lib -L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib -L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${readline:location}/lib -Wl,-rpath=${readline:location}/lib -L${sqlite3:location}/lib -Wl,-rpath=${sqlite3:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig:${libxml2:location}/lib/pkgconfig:${libxslt:location}/lib/pkgconfig:${openssl:location}/lib/pkgconfig:${pcre:location}/lib/pkgconfig:${python2.7:location}/lib/pkgconfig:${sqlite3:location}/lib/pkgconfig
LD_LIBRARY_PATH=${bzip2:location}/lib:${gdbm:location}/lib:${gettext:location}/lib:${glib:location}/lib:${libxml2:location}/lib:${libxslt:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline:location}/lib:${sqlite3:location}/lib:${zlib:location}/lib
Łukasz Nowak committed
41 42 43 44 45 46 47 48 49 50 51

[cfg-environment]
# Section exposes SlapOS default environment as configuration file.
recipe = collective.recipe.template
input = inline:
  [environment]
  PATH=${environment:PATH}
  CFLAGS=${environment:CFLAGS}
  CPPFLAGS=${environment:CPPFLAGS}
  LDFLAGS=${environment:LDFLAGS}
  PKG_CONFIG_PATH=${environment:PKG_CONFIG_PATH}
Łukasz Nowak committed
52
  LD_LIBRARY_PATH=${environment:LD_LIBRARY_PATH}
Łukasz Nowak committed
53 54 55 56 57 58
output = ${buildout:directory}/environment.cfg

[sh-environment]
# Section exposes SlapOS default environment as sh file.
recipe = collective.recipe.template
input = inline:
Łukasz Nowak committed
59 60 61 62 63 64
  export PATH="${environment:PATH}"
  export CFLAGS="${environment:CFLAGS}"
  export CPPFLAGS="${environment:CPPFLAGS}"
  export LDFLAGS="${environment:LDFLAGS}"
  export PKG_CONFIG_PATH="${environment:PKG_CONFIG_PATH}"
  export LD_LIBRARY_PATH="${environment:LD_LIBRARY_PATH}"
Łukasz Nowak committed
65
  export PS1="[SlapOS env Active] $PS1"
Łukasz Nowak committed
66
output = ${buildout:directory}/environment.sh
Łukasz Nowak committed
67

Rafael Monnerat committed
68 69
##############################################
# Included locally in order to permit we build
Kazuhiko Shiozaki committed
70
# packages offline.
Rafael Monnerat committed
71 72 73 74 75 76 77 78 79 80 81 82 83
###############################################
[python-openssl]
recipe = zc.recipe.egg:custom
egg = pyOpenSSL
include-dirs =
  ${openssl:location}/include/
library-dirs =
  ${openssl:location}/lib/
rpath =
  ${openssl:location}/lib/

#############################################

Łukasz Nowak committed
84
[slapos]
Kazuhiko Shiozaki committed
85
recipe = zc.recipe.egg
Łukasz Nowak committed
86
eggs =
Kazuhiko Shiozaki committed
87
  ${lxml-python:egg}
Kazuhiko Shiozaki committed
88
  ${python-cffi:egg}
Kazuhiko Shiozaki committed
89 90
  ${python-PyYAML:egg}
  ${python-cliff:egg}
Kazuhiko Shiozaki committed
91 92
  ${python-cryptography:egg}
  pyOpenSSL
Łukasz Nowak committed
93 94
  slapos.libnetworkcache
  zc.buildout
Łukasz Nowak committed
95
  slapos.core
Łukasz Nowak committed
96

Łukasz Nowak committed
97 98 99 100
initialization =
  import os
  os.environ['PATH'] = os.path.expandvars('${environment:PATH}')

Łukasz Nowak committed
101 102
# control scripts generation in order to avoid reinstalling bin/buildout
scripts =
Łukasz Nowak committed
103
  bang = slapos.bang:main
Łukasz Nowak committed
104 105 106 107 108 109
  generate-signature-key = slapos.signature:run
  slapconsole = slapos.console:run
  slapos-request = slapos.console:request
  slapformat = slapos.format:main
  slapgrid = slapos.grid.slapgrid:run
  slapgrid-cp = slapos.grid.slapgrid:runComputerPartition
Łukasz Nowak committed
110
  slapgrid-sr = slapos.grid.slapgrid:runSoftwareRelease
Łukasz Nowak committed
111 112 113 114
  slapgrid-ur = slapos.grid.slapgrid:runUsageReport
  slapgrid-supervisorctl = slapos.grid.svcbackend:supervisorctl
  slapgrid-supervisord = slapos.grid.svcbackend:supervisord
  slapproxy = slapos.proxy:main
Marco Mariani committed
115
  slapproxy-query = slapos.proxy.query:main
Cédric Le Ninivin committed
116
  slapos = slapos.entry:main
Cédric Le Ninivin committed
117
  slapos-watchdog = slapos.grid.watchdog:main
Łukasz Nowak committed
118

Marco Mariani committed
119 120
[py]
recipe = zc.recipe.egg
Kazuhiko Shiozaki committed
121
eggs =
Marco Mariani committed
122 123 124
    ${slapos:eggs}
interpreter = py
scripts = py