summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-horizon_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-horizon_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-horizon_git.bb10
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
41do_install_append() { 41do_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
61PACKAGES += "${SRCNAME}" 67PACKAGES += "${SRCNAME}-tests ${SRCNAME}"
62 68
63FILES_${PN} = "${libdir}/*" 69FILES_${PN} = "${libdir}/*"
64 70
71FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh"
72
65FILES_${SRCNAME} = "${bindir}/* \ 73FILES_${SRCNAME} = "${bindir}/* \
66 ${sysconfdir}/init.d/* \ 74 ${sysconfdir}/init.d/* \
67 ${datadir}/* \ 75 ${datadir}/* \