software.cfg 4.95 KB
Newer Older
1
[buildout]
2 3 4
extensions =
  buildout-versions
  
5
extends =
6
  ../../component/dcron/buildout.cfg
7
  ../../component/git/buildout.cfg
8
  ../../component/gnutls/buildout.cfg
9
  ../../component/libpng/buildout.cfg
10
  ../../component/libuuid/buildout.cfg
11
  ../../component/lxml-python/buildout.cfg
12 13 14
  ../../component/noVNC/buildout.cfg
  ../../component/openssl/buildout.cfg
  ../../component/rdiff-backup/buildout.cfg
15
  ../../stack/shacache-client.cfg
16

17 18 19
develop =
  ${:parts-directory}/websockify

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
20 21 22 23
parts =
  template
  kvm
  eggs
24 25
  check-local-eggs

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
find-links +=
  http://www.nexedi.org/static/packages/source/slapos.buildout/

versions = versions

# Use only quite well working sites.
allow-hosts =
  *.nexedi.org
  *.python.org
  *.sourceforge.net
  alastairs-place.net
  dist.repoze.org
  effbot.org
  github.com
  peak.telecommunity.com
  psutil.googlecode.com
  www.dabeaz.com
  www.owlfish.com

45 46 47 48 49 50 51 52 53 54 55 56 57
#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.

#XXX-Cedric: Check status of 
#            https://www.tiolive.com/nexedi/bug_module/20110819-11F4F70 for
58
#            Chrome >= 14 and Firefox >=7 can access to noVNC. (should be solved)
59

60 61 62 63 64
#XXX-Cedric : add list of keyboard layouts (azerty/us querty/...) parameter to qemu

[kvm]
recipe = hexagonit.recipe.cmmi
url = http://downloads.sourceforge.net/project/kvm/qemu-kvm/0.15.1/qemu-kvm-0.15.1.tar.gz
65 66 67
# XXX-Cedric : Upgrade to 1.0
# url = http://downloads.sourceforge.net/project/kvm/qemu-kvm/1.0/qemu-kvm-1.0.tar.gz
# md5sum = 00a825db46a70ba8ef9fc95da9cc7c1e
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
md5sum = 8800a7d6b3aa4a168ea7f78dc66c0320
configure-options =
  --disable-sdl
  --disable-xen
  --enable-vnc-tls
  --disable-vnc-sasl
  --disable-curses
  --disable-curl
  --enable-kvm
  --disable-docs
  --enable-vnc-png
  --disable-vnc-jpeg
  --extra-cflags="-I${gnutls:location}/include -I${libuuid:location}/include -I${zlib:location}/include -I${libpng:location}/include"
  --extra-ldflags="-Wl,-rpath -Wl,${glib:location}/lib -L${glib:location}/lib -Wl,-rpath -Wl,${gnutls:location}/lib -L${gnutls:location}/lib -L${gettext:location}/lib -Wl,-rpath -Wl,${gettext: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"
  --disable-werror
environment =
  PATH=${pkgconfig:location}/bin:%(PATH)s
  PKG_CONFIG_PATH=${gnutls:location}/lib/pkgconfig:${glib:location}/lib/pkgconfig
86 87

[websockify]
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
88
# XXX-Cedric : use official egg from pypi when it is released
89 90
recipe = plone.recipe.command
stop-on-error = true
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
91 92
commit = e7363f43443deb9982bdb5c3db50eec475584b06
repository = https://github.com/desaintmartin/websockify.git
93
location = ${buildout:parts-directory}/${:_buildout_section_name_}
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
94
git-binary = ${git:location}/bin/git
95
command = export GIT_SSL_NO_VERIFY=true; (${:git-binary} clone --quiet ${:repository} ${:location} && cd ${:location} && ${:git-binary} reset --hard ${:commit}) || (rm -fr ${:location}; exit 1)
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
96
update-command =
97 98 99 100 101 102 103 104

[check-local-eggs]
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = grep parts ${buildout:develop-eggs-directory}/websockify.egg-link
depends = ${eggs:dummy}

105 106 107 108 109 110 111 112 113
[eggs]
recipe = z3c.recipe.scripts
dummy =
  ${websockify:location}
eggs =
  ${lxml-python:egg}
  slapos.cookbook
  websockify
  
114 115 116
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
117
md5sum = 298b146e4efce41bfd58b3f85d064ff1
118 119
output = ${buildout:directory}/template.cfg
mode = 0644
Łukasz Nowak's avatar
Łukasz Nowak committed
120 121

[versions]
122
zc.buildout = 1.5.3-dev-SlapOS-010
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140

[networkcache]
# signature certificates of the following uploaders.
#   Romain Courteaud
signature-certificate-list =
  -----BEGIN CERTIFICATE-----
  MIIB4DCCAUkCADANBgkqhkiG9w0BAQsFADA5MQswCQYDVQQGEwJGUjEZMBcGA1UE
  CBMQRGVmYXVsdCBQcm92aW5jZTEPMA0GA1UEChMGTmV4ZWRpMB4XDTExMDkxNTA5
  MDAwMloXDTEyMDkxNTA5MDAwMlowOTELMAkGA1UEBhMCRlIxGTAXBgNVBAgTEERl
  ZmF1bHQgUHJvdmluY2UxDzANBgNVBAoTBk5leGVkaTCBnzANBgkqhkiG9w0BAQEF
  AAOBjQAwgYkCgYEApYZv6OstoqNzxG1KI6iE5U4Ts2Xx9lgLeUGAMyfJLyMmRLhw
  boKOyJ9Xke4dncoBAyNPokUR6iWOcnPHtMvNOsBFZ2f7VA28em3+E1JRYdeNUEtX
  Z0s3HjcouaNAnPfjFTXHYj4um1wOw2cURSPuU5dpzKBbV+/QCb5DLheynisCAwEA
  ATANBgkqhkiG9w0BAQsFAAOBgQBCZLbTVdrw3RZlVVMFezSHrhBYKAukTwZrNmJX
  mHqi2tN8tNo6FX+wmxUUAf3e8R2Ymbdbn2bfbPpcKQ2fG7PuKGvhwMG3BlF9paEC
  q7jdfWO18Zp/BG7tagz0jmmC4y/8akzHsVlruo2+2du2freE8dK746uoMlXlP93g
  QUUGLQ==
  -----END CERTIFICATE-----