summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_2013.1.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance_2013.1.bb76
1 files changed, 76 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb
new file mode 100644
index 0000000..2847d42
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb
@@ -0,0 +1,76 @@
1DESCRIPTION = "Services for discovering, registering and retrieving virtual machine images"
2HOMEPAGE = "http://glance.openstack.org/"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
6
7PR = "r0"
8SRCNAME = "glance"
9
10SRC_URI = "https://launchpad.net/glance/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \
11 file://glance-api.conf \
12 file://glance-cache.conf \
13 file://glance-registry.conf \
14 "
15
16SRC_URI[md5sum] = "cd813098ca807bed67440bb1646d0647"
17SRC_URI[sha256sum] = "f4deee125ee6729daee5315c6aacd9e265c3015692a62ae6aefeadbd3fef7f70"
18
19S = "${WORKDIR}/${SRCNAME}-${PV}"
20
21inherit setuptools
22
23do_install_append() {
24
25 GLANCE_CONF_DIR=${D}${sysconfdir}/glance
26
27 install -d ${GLANCE_CONF_DIR}
28
29 install -m 600 ${WORKDIR}/glance-registry.conf ${GLANCE_CONF_DIR}/
30 install -m 600 ${WORKDIR}/glance-api.conf ${GLANCE_CONF_DIR}/
31 install -m 600 ${WORKDIR}/glance-cache.conf ${GLANCE_CONF_DIR}/
32
33 install -m 600 ${S}/etc/glance-registry-paste.ini ${GLANCE_CONF_DIR}/
34 install -m 600 ${S}/etc/glance-api-paste.ini ${GLANCE_CONF_DIR}/
35 install -m 600 ${S}/etc/policy.json ${GLANCE_CONF_DIR}/
36
37 install -d ${GLANCE_CONF_DIR}/images
38 install -d ${D}${localstatedir}/lib/glance/image_cache
39
40 # Create the sqlite database
41 touch ${GLANCE_CONF_DIR}/glance.db
42}
43
44pkg_postinst_${PN} () {
45 if [ "x$D" != "x" ]; then
46 exit 1
47 fi
48
49 # Needed when using a MySQL backend
50 # mysql -u root -e "CREATE DATABASE glance CHARACTER SET utf8;"
51 glance-manage db_sync
52}
53
54FILES_${PN} += "${sysconfdir}/${SRCNAME}/* \
55 ${localstatedir}/lib/${SRCNAME}/*"
56
57RDEPENDS_${PN} += "python-greenlet \
58 python-sqlalchemy \
59 python-anyjson \
60 python-eventlet \
61 python-pastedeploy \
62 python-routes \
63 python-webob \
64 python-boto \
65 python-sqlalchemy-migrate \
66 python-httplib2 \
67 python-kombu \
68 python-iso8601 \
69 python-oslo.config \
70 python-lxml \
71 python-paste \
72 python-pycrypto \
73 python-jsonschema \
74 python-keystoneclient \
75 python-swiftclient \
76 "