kvm.cfg 4.01 KB
Newer Older
1 2
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
3
  shacache-client.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
4
  ../component/python-2.7/buildout.cfg
5 6 7 8 9 10
  ../component/lxml-python/buildout.cfg
  ../component/git/buildout.cfg
  ../component/zlib/buildout.cfg
  ../component/readline/buildout.cfg
  ../component/ncurses/buildout.cfg
  ../component/libuuid/buildout.cfg
Vivien Alger's avatar
Vivien Alger committed
11
  ../component/noVNC/buildout.cfg
Vivien Alger's avatar
Vivien Alger committed
12 13
  ../component/openssl/buildout.cfg
  ../component/rdiff-backup/buildout.cfg
14
  ../component/dcron/buildout.cfg
15
  ../component/libpng/buildout.cfg
16

17 18 19 20 21 22 23 24 25 26 27
#XXX-Cedric : Currently, one can only access to KVM using noVNC.
#             Ideally one should be able to access KVM by using either NoVNC or VNC.
#             Problem is : no native crypto support in web browsers. So we have to disable ssl
#             In qemu builtin vnc server, and make it available only for localhost 
#             so that only novnc can listen to it.

#XXX-Cedric: Check status of https://github.com/kanaka/noVNC/issues/13 to see
#            When qemu has builtin support for websockets in vnc server to get rid of 
#            Websockify (socket <-> websocket proxy server) when it is ready.
#            May solve previous XXX depending on the implementation.

28 29 30 31
#XXX-Cedric: Check status of 
#            https://www.tiolive.com/nexedi/bug_module/20110819-11F4F70 for
#            Chrome >= 14 and Firefox >=7 can access to noVNC.

32
parts =
33
  template
34 35 36 37 38 39 40 41 42 43 44
  gnutls
  kvm
  eggs

find-links +=
  http://www.nexedi.org/static/packages/source/slapos.buildout/

versions = versions

[gpg-error]
recipe = hexagonit.recipe.cmmi
45
url = ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.gz
Łukasz Nowak's avatar
Łukasz Nowak committed
46
md5sum = 7c2710ef439f82ac429b88fec88e9a4c
47 48 49 50 51

[gcrypt]
recipe = hexagonit.recipe.cmmi
url = ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.4.6.tar.gz
md5sum = bfd45922eefb8a24d598af77366220d4
Łukasz Nowak's avatar
Łukasz Nowak committed
52
configure-options =
53 54 55
  --with-gpg-error-prefix=${gpg-error:location}
environment =
  CPPFLAGS=-I${gpg-error:location}/include
56
  LDFLAGS=-Wl,-rpath -Wl,${gpg-error:location}/lib -Wl,${gpg-error:location}/lib/libgpg-error.so.0
Łukasz Nowak's avatar
Łukasz Nowak committed
57

58 59 60 61
[gnutls]
recipe = hexagonit.recipe.cmmi
url = ftp://ftp.gnupg.org/gcrypt/gnutls/gnutls-2.8.6.tar.bz2
md5sum = eb0a6d7d3cb9ac684d971c14f9f6d3ba
Łukasz Nowak's avatar
Łukasz Nowak committed
62
configure-options =
63 64 65
  --with-libgcrypt-prefix=${gcrypt:location}
environment =
  CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${ncurses:location}/include -I${ncurses:location}/include/ncursesw -I${gcrypt:location}/include -I${gpg-error:location}/include
66
  LDFLAGS=-L${readline:location}/lib -L${ncurses:location}/lib -L${gcrypt:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${readline:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${gcrypt:location}/lib -Wl,-rpath -Wl,${gpg-error:location}/lib -Wl,${gcrypt:location}/lib/libgcrypt.so.11
67 68 69 70 71
  PKG_CONFIG=${zlib:location}/lib/pkgconfig

[kvm]
recipe = hexagonit.recipe.cmmi
path = ${kvmsource:location}/
Łukasz Nowak's avatar
Łukasz Nowak committed
72 73 74 75 76
configure-options =
  --disable-sdl
  --disable-xen
  --enable-vnc-tls
  --disable-vnc-sasl
77
  --disable-curses
Łukasz Nowak's avatar
Łukasz Nowak committed
78 79 80
  --disable-curl
  --enable-kvm
  --disable-docs
81
  --enable-vnc-png
82
  --disable-vnc-jpeg
83 84
  --extra-cflags="-I${gnutls:location}/include -I${libuuid:location}/include -I${zlib:location}/include -I${libpng:location}/include"
  --extra-ldflags="-Wl,-rpath -Wl,${gnutls:location}/lib -L${gnutls:location}/lib -Wl,-rpath -Wl,${libpng:location}/lib -L${libpng:location}/lib -L${libuuid:location}/lib -Wl,-rpath -Wl,${libuuid:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -lpng -lz -lgnutls"
85 86 87 88 89 90
  --disable-werror
environment =
  PKG_CONFIG_PATH=${gnutls:location}/lib/pkgconfig

[kvmsource]
recipe=plone.recipe.command
Łukasz Nowak's avatar
Łukasz Nowak committed
91
location = ${buildout:parts-directory}/${:_buildout_section_name_}
92
stop-on-error = true
93
#tag = slapos-v0.1
94
command =
95
  (${git:location}/bin/git clone --quiet http://git.erp5.org/repos/slapos.kvm.git ${:location} ) || (rm -fr ${:location} ; exit 1)
96 97
update-command =
 cd ${:location} && ${git:location}/bin/git pull --quiet origin master
98 99

[eggs]
Łukasz Nowak's avatar
Łukasz Nowak committed
100
python = python2.7
101
recipe = z3c.recipe.scripts
102 103
eggs =
  ${lxml-python:egg}
Łukasz Nowak's avatar
Łukasz Nowak committed
104
  slapos.cookbook
105
  numpy
106 107

[versions]
108
zc.buildout = 1.5.3-dev-SlapOS-005