diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-horizon_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-horizon_git.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb index 789192c..281264c 100644 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb | |||
| @@ -39,6 +39,10 @@ inherit setuptools update-rc.d python-dir | |||
| 39 | # do_install[dirs] += "${D}/usr/share/bin" | 39 | # do_install[dirs] += "${D}/usr/share/bin" |
| 40 | 40 | ||
| 41 | do_install_append() { | 41 | do_install_append() { |
| 42 | HORIZON_CONF_DIR=${D}${sysconfdir}/horizon | ||
| 43 | |||
| 44 | install -d ${HORIZON_CONF_DIR} | ||
| 45 | |||
| 42 | DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard | 46 | DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard |
| 43 | sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \ | 47 | sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \ |
| 44 | -i ${DASHBOARD_DIR}/settings.py | 48 | -i ${DASHBOARD_DIR}/settings.py |
| @@ -56,12 +60,16 @@ do_install_append() { | |||
| 56 | 60 | ||
| 57 | # no longer required. kept as reference. | 61 | # no longer required. kept as reference. |
| 58 | # mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin | 62 | # mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin |
| 63 | |||
| 64 | cp run_tests.sh ${HORIZON_CONF_DIR} | ||
| 59 | } | 65 | } |
| 60 | 66 | ||
| 61 | PACKAGES += "${SRCNAME}" | 67 | PACKAGES += "${SRCNAME}-tests ${SRCNAME}" |
| 62 | 68 | ||
| 63 | FILES_${PN} = "${libdir}/*" | 69 | FILES_${PN} = "${libdir}/*" |
| 64 | 70 | ||
| 71 | FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh" | ||
| 72 | |||
| 65 | FILES_${SRCNAME} = "${bindir}/* \ | 73 | FILES_${SRCNAME} = "${bindir}/* \ |
| 66 | ${sysconfdir}/init.d/* \ | 74 | ${sysconfdir}/init.d/* \ |
| 67 | ${datadir}/* \ | 75 | ${datadir}/* \ |
