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