diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-31 00:56:52 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-11-25 15:25:35 -0500 |
| commit | f6a3429956683bd19aa9bdfa05da3cb57451ce2c (patch) | |
| tree | 6f0560bcc92b421111bd4a3dadfd49d975d0c64c /meta-openstack/recipes-devtools/python/python-horizon_git.bb | |
| parent | 6d7c9b7f4a9ebdc07b4bb21aad49f6434bc5c5dc (diff) | |
| download | meta-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.bb | 94 |
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 @@ | |||
| 1 | DESCRIPTION = "The OpenStack Dashboard." | ||
| 2 | HOMEPAGE = "https://github.com/openstack/horizon/" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "Apache-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" | ||
| 6 | |||
| 7 | DEPENDS_${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 | |||
| 24 | PR = "r1" | ||
| 25 | SRCNAME = "horizon" | ||
| 26 | |||
| 27 | SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ | ||
| 28 | file://horizon.init \ | ||
| 29 | file://fix_bindir_path.patch \ | ||
| 30 | " | ||
| 31 | |||
| 32 | SRCREV="a93c611e7185234d4a4ce36ba182cf321c2113fe" | ||
| 33 | PV="2013.2+git${SRCPV}" | ||
| 34 | S = "${WORKDIR}/git" | ||
| 35 | |||
| 36 | inherit setuptools update-rc.d python-dir | ||
| 37 | |||
| 38 | # no longer required. kept as reference. | ||
| 39 | # do_install[dirs] += "${D}/usr/share/bin" | ||
| 40 | |||
| 41 | do_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 | |||
| 61 | PACKAGES += "${SRCNAME}" | ||
| 62 | |||
| 63 | FILES_${PN} = "${libdir}/*" | ||
| 64 | |||
| 65 | FILES_${SRCNAME} = "${bindir}/* \ | ||
| 66 | ${sysconfdir}/init.d/* \ | ||
| 67 | ${datadir}/* \ | ||
| 68 | " | ||
| 69 | |||
| 70 | RDEPENDS_${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 | |||
| 91 | RDEPENDS_${SRCNAME} = "${PN}" | ||
| 92 | |||
| 93 | INITSCRIPT_PACKAGES = "${SRCNAME}" | ||
| 94 | INITSCRIPT_NAME_${SRCNAME} = "horizon" | ||
