summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-08-13 13:39:11 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:41:59 -0400
commitd0d32a8d2a642910e54a6b4f8c0fb9be9aa14dcf (patch)
tree93674eef6cbf3dc910be621ff55b9f8f9f60f870 /meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb
parent631c93f0b5499dcfc1fb8f95c25125655d4f9163 (diff)
downloadmeta-cloud-services-d0d32a8d2a642910e54a6b4f8c0fb9be9aa14dcf.tar.gz
openstack: update to 2013.1.3 release
Updating cinder/glanc/swift/horizon/nova/keystone/quantum to the 2013.1.3 bugfix release. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb86
1 files changed, 86 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb
new file mode 100644
index 0000000..fdd0bd0
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb
@@ -0,0 +1,86 @@
1DESCRIPTION = "The OpenStack Dashboard."
2HOMEPAGE = "https://github.com/openstack/horizon/"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
6
7DEPENDS_${PN} += "python-django \
8 python-django-compressor \
9 python-django-openstack-auth \
10 python-netaddr \
11 python-cinderclient \
12 python-glanceclient \
13 python-keystoneclient \
14 python-novaclient \
15 python-quantumclient \
16 python-pytz \
17 python-django-appconf \
18 python-six \
19 python-swiftclient \
20 python-lockfile \
21 "
22
23PR = "r0"
24SRCNAME = "horizon"
25
26SRC_URI = "https://launchpad.net/horizon/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \
27 file://horizon.init \
28 file://fix_bindir_path.patch \
29 "
30
31SRC_URI[md5sum] = "8edb861987dffe3017eada91d3009f0a"
32SRC_URI[sha256sum] = "4dbf05e75313d9d6ac966de1d139f26647ab537a3d1f418a3e4424210b4c05fd"
33
34S = "${WORKDIR}/${SRCNAME}-${PV}"
35
36inherit setuptools update-rc.d python-dir
37
38do_install_append() {
39 DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard
40 sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \
41 -i ${DASHBOARD_DIR}/settings.py
42 sed -e "s:^# from horizon.utils:from horizon.utils:g" \
43 ${DASHBOARD_DIR}/local/local_settings.py.example > ${DASHBOARD_DIR}/local/local_settings.py
44 sed -e "s:^# SECRET_KEY =:SECRET_KEY =:g" \
45 -i ${DASHBOARD_DIR}/local/local_settings.py
46 install -m 644 ${S}/manage.py ${DASHBOARD_DIR}/manage.py
47
48 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
49 install -d ${D}${sysconfdir}/init.d
50 sed 's:@PYTHON_SITEPACKAGES@:${PYTHON_SITEPACKAGES_DIR}:' ${WORKDIR}/horizon.init >${WORKDIR}/horizon
51 install -m 0755 ${WORKDIR}/horizon ${D}${sysconfdir}/init.d/horizon
52 fi
53
54 mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin
55}
56
57PACKAGES += "${SRCNAME}"
58
59FILES_${PN} = "${libdir}/*"
60
61FILES_${SRCNAME} = "${bindir}/* \
62 ${sysconfdir}/init.d/* \
63 ${datadir}/* \
64 "
65
66RDEPENDS_${PN} += "nodejs \
67 python-django \
68 python-django-appconf \
69 python-django-compressor \
70 python-django-openstack-auth \
71 python-netaddr \
72 python-cinderclient \
73 python-glanceclient \
74 python-keystoneclient \
75 python-novaclient \
76 python-quantumclient \
77 python-pytz \
78 python-six \
79 python-swiftclient \
80 python-lockfile \
81 "
82
83RDEPENDS_${SRCNAME} = "${PN}"
84
85INITSCRIPT_PACKAGES = "${SRCNAME}"
86INITSCRIPT_NAME_${SRCNAME} = "horizon"