From f6a3429956683bd19aa9bdfa05da3cb57451ce2c Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 31 Oct 2013 00:56:52 -0400 Subject: 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 --- .../recipes-devtools/python/python-horizon_git.bb | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-horizon_git.bb (limited to 'meta-openstack/recipes-devtools/python/python-horizon_git.bb') 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 @@ +DESCRIPTION = "The OpenStack Dashboard." +HOMEPAGE = "https://github.com/openstack/horizon/" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +DEPENDS_${PN} += "python-django \ + python-django-compressor \ + python-django-openstack-auth \ + python-netaddr \ + python-cinderclient \ + python-glanceclient \ + python-keystoneclient \ + python-novaclient \ + python-neutronclient \ + python-heatclient \ + python-pytz \ + python-django-appconf \ + python-six \ + python-swiftclient \ + python-lockfile \ + " + +PR = "r1" +SRCNAME = "horizon" + +SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ + file://horizon.init \ + file://fix_bindir_path.patch \ + " + +SRCREV="a93c611e7185234d4a4ce36ba182cf321c2113fe" +PV="2013.2+git${SRCPV}" +S = "${WORKDIR}/git" + +inherit setuptools update-rc.d python-dir + +# no longer required. kept as reference. +# do_install[dirs] += "${D}/usr/share/bin" + +do_install_append() { + DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard + sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \ + -i ${DASHBOARD_DIR}/settings.py + sed -e "s:^# from horizon.utils:from horizon.utils:g" \ + ${DASHBOARD_DIR}/local/local_settings.py.example > ${DASHBOARD_DIR}/local/local_settings.py + sed -e "s:^# SECRET_KEY =:SECRET_KEY =:g" \ + -i ${DASHBOARD_DIR}/local/local_settings.py + install -m 644 ${S}/manage.py ${DASHBOARD_DIR}/manage.py + + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + sed 's:@PYTHON_SITEPACKAGES@:${PYTHON_SITEPACKAGES_DIR}:' ${WORKDIR}/horizon.init >${WORKDIR}/horizon + install -m 0755 ${WORKDIR}/horizon ${D}${sysconfdir}/init.d/horizon + fi + + # no longer required. kept as reference. + # mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin +} + +PACKAGES += "${SRCNAME}" + +FILES_${PN} = "${libdir}/*" + +FILES_${SRCNAME} = "${bindir}/* \ + ${sysconfdir}/init.d/* \ + ${datadir}/* \ + " + +RDEPENDS_${PN} += "nodejs \ + python-django \ + python-django-appconf \ + python-django-compressor \ + python-django-openstack-auth \ + python-netaddr \ + python-ceilometerclient \ + python-cinderclient \ + python-glanceclient \ + python-heatclient \ + python-keystoneclient \ + python-lesscpy \ + python-novaclient \ + python-neutronclient \ + python-pytz \ + python-six \ + python-swiftclient \ + python-lockfile \ + python-pyyaml \ + " + +RDEPENDS_${SRCNAME} = "${PN}" + +INITSCRIPT_PACKAGES = "${SRCNAME}" +INITSCRIPT_NAME_${SRCNAME} = "horizon" -- cgit v1.2.3-54-g00ecf