summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-10-12 12:43:17 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-10-24 06:10:44 +0300
commit1ea01342eda55b45b6847efb4af9ae87e77e25e2 (patch)
tree68fa875f7db0338bb56c31a299afc0ecf4e31ed0
parentc9f33777b36db69850eaae1a1b7dcfe03c32b8ad (diff)
downloadopenbmc-1ea01342eda55b45b6847efb4af9ae87e77e25e2.tar.xz
Install gevent-websocket to the image
gevent-websocket is a websocket handler for the gevent networking library. Websocket is used to push data out from the rest server to connected clients. Resolves openbmc/openbmc#2321 Change-Id: Ie381da1b0fd8b95e1fbb55d0063b3b7d9c1cc2c5 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
-rw-r--r--import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb22
-rw-r--r--meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb2
-rw-r--r--meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb5
3 files changed, 28 insertions, 1 deletions
diff --git a/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb b/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb
new file mode 100644
index 000000000..930ec3a99
--- /dev/null
+++ b/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb
@@ -0,0 +1,22 @@
+HOMEPAGE = "https://bitbucket.org/noppo/gevent-websocket"
+SUMMARY = "A websocket library for gevent Python networking library"
+DESCRIPTION = "\
+ WebSocket is a computer communications protocol, providing full-duplex \
+ communication channels over a single TCP connection. gevent-websocket \
+ library provides websocket support for gevent. \
+ "
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5aa2f1d4ea55d60497aa8c3debf29ab2"
+
+RDEPENDS_${PN} = "python-gevent"
+
+SRCNAME = "gevent-websocket"
+
+SRC_URI = "https://pypi.python.org/packages/98/d2/6fa19239ff1ab072af40ebf339acd91fb97f34617c2ee625b8e34bf42393/gevent-websocket-${PV}.tar.gz"
+SRC_URI[md5sum] = "e095bf3358175489a956949c1b4de9ff"
+SRC_URI[sha256sum] = "7eaef32968290c9121f7c35b973e2cc302ffb076d018c9068d2f5ca8b2d85fb0"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
diff --git a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb
index ee24a1339..4301e6b83 100644
--- a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb
+++ b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb
@@ -14,6 +14,8 @@ RPROVIDES_${PN} += "virtual-obmc-wsgihost"
RDEPENDS_${PN} += " \
python-gevent \
"
+RRECOMMENDS_${PN} += "python-gevent-websocket"
+
S = "${WORKDIR}/git/servers/gevent"
diff --git a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
index 6361f2598..a1a8cfdd4 100644
--- a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
+++ b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
@@ -9,7 +9,10 @@ inherit obmc-phosphor-discovery-service
require phosphor-rest.inc
-RRECOMMENDS_${PN} += "virtual-obmc-wsgihost"
+RRECOMMENDS_${PN} += " \
+ virtual-obmc-wsgihost \
+ python-gevent-websocket \
+ "
RDEPENDS_${PN} += " \
python-xml \