diff options
| author | Mihai Prica <prica.mihai@gmail.com> | 2013-07-11 16:54:35 +0300 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:58 -0400 |
| commit | 928ae886d0e6c908b2d6ea7c928fc01b216156b9 (patch) | |
| tree | f20bf8c72abadec9ff92ac2ed8701d35c143418b /meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb | |
| parent | 92cb095b668e0d95ce6e362d4f4d9fed3f680a12 (diff) | |
| download | meta-cloud-services-928ae886d0e6c908b2d6ea7c928fc01b216156b9.tar.gz | |
python-horizon: Added 2013.1.2
* Horizon is a web based user interface that provides an
interface to the OpenStack services.
* Added initscript that starts the service at boot time.
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb new file mode 100644 index 0000000..04a63f5 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb | |||
| @@ -0,0 +1,83 @@ | |||
| 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 | DEPENDS_${PN} += "python-django \ | ||
| 7 | python-django-compressor \ | ||
| 8 | python-django-openstack-auth \ | ||
| 9 | python-netaddr \ | ||
| 10 | python-cinderclient \ | ||
| 11 | python-glanceclient \ | ||
| 12 | python-keystoneclient \ | ||
| 13 | python-novaclient \ | ||
| 14 | python-quantumclient \ | ||
| 15 | python-pytz \ | ||
| 16 | python-django-appconf \ | ||
| 17 | python-six \ | ||
| 18 | python-swiftclient \ | ||
| 19 | python-lockfile \ | ||
| 20 | " | ||
| 21 | |||
| 22 | PR = "r0" | ||
| 23 | SRCNAME = "horizon" | ||
| 24 | |||
| 25 | SRC_URI = "https://launchpad.net/horizon/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ | ||
| 26 | file://horizon.init \ | ||
| 27 | " | ||
| 28 | |||
| 29 | SRC_URI[md5sum] = "23db8455f768c830485ef283c06f0e65" | ||
| 30 | SRC_URI[sha256sum] = "12a0b87ed4796595ba15ed7c8743cbab188bafc711ade9735b635c5eb65652e6" | ||
| 31 | |||
| 32 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
| 33 | |||
| 34 | inherit setuptools update-rc.d python-dir | ||
| 35 | |||
| 36 | do_install_append() { | ||
| 37 | DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard | ||
| 38 | sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \ | ||
| 39 | -i ${DASHBOARD_DIR}/settings.py | ||
| 40 | sed -e "s:^DEBUG =.*:DEBUG = False:g" \ | ||
| 41 | ${DASHBOARD_DIR}/local/local_settings.py.example > ${DASHBOARD_DIR}/local/local_settings.py | ||
| 42 | sed -e "s:^# from horizon.utils:from horizon.utils:g" \ | ||
| 43 | -i ${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 | |||
| 55 | PACKAGES += "${SRCNAME}" | ||
| 56 | |||
| 57 | FILES_${PN} = "${libdir}/*" | ||
| 58 | |||
| 59 | FILES_${SRCNAME} = "${bindir}/* \ | ||
| 60 | ${sysconfdir}/init.d/* \ | ||
| 61 | ${datadir}/* \ | ||
| 62 | " | ||
| 63 | |||
| 64 | RDEPENDS_${PN} += "python-django \ | ||
| 65 | python-django-appconf \ | ||
| 66 | python-django-compressor \ | ||
| 67 | python-django-openstack-auth \ | ||
| 68 | python-netaddr \ | ||
| 69 | python-cinderclient \ | ||
| 70 | python-glanceclient \ | ||
| 71 | python-keystoneclient \ | ||
| 72 | python-novaclient \ | ||
| 73 | python-quantumclient \ | ||
| 74 | python-pytz \ | ||
| 75 | python-six \ | ||
| 76 | python-swiftclient \ | ||
| 77 | python-lockfile \ | ||
| 78 | " | ||
| 79 | |||
| 80 | RDEPENDS_${SRCNAME} = "${PN}" | ||
| 81 | |||
| 82 | INITSCRIPT_PACKAGES = "${SRCNAME}" | ||
| 83 | INITSCRIPT_NAME_${SRCNAME} = "horizon" | ||
