summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-horizon_git.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-10-31 00:56:52 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-11-25 15:25:35 -0500
commitf6a3429956683bd19aa9bdfa05da3cb57451ce2c (patch)
tree6f0560bcc92b421111bd4a3dadfd49d975d0c64c /meta-openstack/recipes-devtools/python/python-horizon_git.bb
parent6d7c9b7f4a9ebdc07b4bb21aad49f6434bc5c5dc (diff)
downloadmeta-cloud-services-f6a3429956683bd19aa9bdfa05da3cb57451ce2c.tar.gz
horizon: update to the havana version
While updating to the havana release version, we also switch to git based builds. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-horizon_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-horizon_git.bb94
1 files changed, 94 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
new file mode 100644
index 0000000..02a17ea
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
@@ -0,0 +1,94 @@
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-neutronclient \
16 python-heatclient \
17 python-pytz \
18 python-django-appconf \
19 python-six \
20 python-swiftclient \
21 python-lockfile \
22 "
23
24PR = "r1"
25SRCNAME = "horizon"
26
27SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
28 file://horizon.init \
29 file://fix_bindir_path.patch \
30 "
31
32SRCREV="a93c611e7185234d4a4ce36ba182cf321c2113fe"
33PV="2013.2+git${SRCPV}"
34S = "${WORKDIR}/git"
35
36inherit setuptools update-rc.d python-dir
37
38# no longer required. kept as reference.
39# do_install[dirs] += "${D}/usr/share/bin"
40
41do_install_append() {
42 DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard
43 sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \
44 -i ${DASHBOARD_DIR}/settings.py
45 sed -e "s:^# from horizon.utils:from horizon.utils:g" \
46 ${DASHBOARD_DIR}/local/local_settings.py.example > ${DASHBOARD_DIR}/local/local_settings.py
47 sed -e "s:^# SECRET_KEY =:SECRET_KEY =:g" \
48 -i ${DASHBOARD_DIR}/local/local_settings.py
49 install -m 644 ${S}/manage.py ${DASHBOARD_DIR}/manage.py
50
51 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
52 install -d ${D}${sysconfdir}/init.d
53 sed 's:@PYTHON_SITEPACKAGES@:${PYTHON_SITEPACKAGES_DIR}:' ${WORKDIR}/horizon.init >${WORKDIR}/horizon
54 install -m 0755 ${WORKDIR}/horizon ${D}${sysconfdir}/init.d/horizon
55 fi
56
57 # no longer required. kept as reference.
58 # mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin
59}
60
61PACKAGES += "${SRCNAME}"
62
63FILES_${PN} = "${libdir}/*"
64
65FILES_${SRCNAME} = "${bindir}/* \
66 ${sysconfdir}/init.d/* \
67 ${datadir}/* \
68 "
69
70RDEPENDS_${PN} += "nodejs \
71 python-django \
72 python-django-appconf \
73 python-django-compressor \
74 python-django-openstack-auth \
75 python-netaddr \
76 python-ceilometerclient \
77 python-cinderclient \
78 python-glanceclient \
79 python-heatclient \
80 python-keystoneclient \
81 python-lesscpy \
82 python-novaclient \
83 python-neutronclient \
84 python-pytz \
85 python-six \
86 python-swiftclient \
87 python-lockfile \
88 python-pyyaml \
89 "
90
91RDEPENDS_${SRCNAME} = "${PN}"
92
93INITSCRIPT_PACKAGES = "${SRCNAME}"
94INITSCRIPT_NAME_${SRCNAME} = "horizon"