diff options
author | Liam R. Howlett <Liam.Howlett@WindRiver.com> | 2014-08-28 10:43:46 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-09-04 15:28:04 -0400 |
commit | 355872c0b8e089cff033fcb346cd4866e10f7fe7 (patch) | |
tree | a88931c4f1511326350375acc7e2a5254469e7fa | |
parent | a35299272e79d7eaa183302587404938e30c52f6 (diff) | |
download | meta-cloud-services-355872c0b8e089cff033fcb346cd4866e10f7fe7.tar.gz |
python-horizon: Fix path usage to bitbake defined paths.
The horizon recipe had references to paths defined as variables for
recipe use. This patch converts those paths into the variable version
for easier portability.
Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-horizon_git.bb | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb index 3f9e5e6..5ac5c14 100644 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb | |||
@@ -51,6 +51,9 @@ inherit setuptools update-rc.d python-dir default_configs | |||
51 | # do_install[dirs] += "${D}/usr/share/bin" | 51 | # do_install[dirs] += "${D}/usr/share/bin" |
52 | 52 | ||
53 | do_install_append() { | 53 | do_install_append() { |
54 | SYSCONF_DIR=${D}${sysconfdir} | ||
55 | DASHBOARD_CONF_DIR=${SYSCONF_DIR}/openstack-dashboard | ||
56 | DASHBOARD_SHARE_DIR=${D}${datadir}/openstack-dashboard | ||
54 | HORIZON_CONF_DIR=${D}${sysconfdir}/horizon | 57 | HORIZON_CONF_DIR=${D}${sysconfdir}/horizon |
55 | 58 | ||
56 | install -d ${HORIZON_CONF_DIR} | 59 | install -d ${HORIZON_CONF_DIR} |
@@ -77,24 +80,24 @@ do_install_append() { | |||
77 | cp run_tests.sh ${HORIZON_CONF_DIR} | 80 | cp run_tests.sh ${HORIZON_CONF_DIR} |
78 | 81 | ||
79 | # the following are setup required for horizon-apache | 82 | # the following are setup required for horizon-apache |
80 | install -d ${D}/usr/share/openstack-dashboard | 83 | install -d ${DASHBOARD_SHARE_DIR} |
81 | cp -a ${S}/openstack_dashboard ${D}/usr/share/openstack-dashboard/ | 84 | cp -a ${S}/openstack_dashboard ${DASHBOARD_SHARE_DIR} |
82 | cp ${S}/manage.py ${D}/usr/share/openstack-dashboard | 85 | cp ${S}/manage.py ${DASHBOARD_SHARE_DIR} |
83 | 86 | ||
84 | install -D -m 644 ${WORKDIR}/local_settings.py \ | 87 | install -D -m 644 ${WORKDIR}/local_settings.py \ |
85 | ${D}/etc/openstack-dashboard/local_settings.py | 88 | ${DASHBOARD_CONF_DIR}/local_settings.py |
86 | ln -fs /etc/openstack-dashboard/local_settings.py \ | 89 | ln -fs ${sysconfdir}/openstack-dashboard/local_settings.py \ |
87 | ${D}/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py | 90 | ${DASHBOARD_SHARE_DIR}/openstack_dashboard/local/local_settings.py |
88 | 91 | ||
89 | install -D -m 644 ${WORKDIR}/openstack-dashboard-apache.conf \ | 92 | install -D -m 644 ${WORKDIR}/openstack-dashboard-apache.conf \ |
90 | ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf | 93 | ${SYSCONF_DIR}/apache2/conf.d/openstack-dashboard-apache.conf |
91 | sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf | 94 | sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${SYSCONF_DIR}/apache2/conf.d/openstack-dashboard-apache.conf |
92 | sed -i -e 's#%LIBDIR%#${libdir}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf | 95 | sed -i -e 's#%LIBDIR%#${libdir}#' ${SYSCONF_DIR}/apache2/conf.d/openstack-dashboard-apache.conf |
93 | 96 | ||
94 | ln -fs openstack_dashboard/static ${D}/usr/share/openstack-dashboard/static | 97 | ln -fs openstack_dashboard/static ${DASHBOARD_SHARE_DIR}/static |
95 | 98 | ||
96 | # daemon is UID 1 | 99 | # daemon is UID 1 |
97 | chown -R 1 ${D}/usr/share/openstack-dashboard/openstack_dashboard/static | 100 | chown -R 1 ${DASHBOARD_SHARE_DIR}/openstack_dashboard/static |
98 | } | 101 | } |
99 | 102 | ||
100 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" | 103 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" |
@@ -109,9 +112,10 @@ FILES_${SRCNAME} = "${bindir}/* \ | |||
109 | 112 | ||
110 | FILES_${SRCNAME}-standalone = "${sysconfdir}/init.d/horizon" | 113 | FILES_${SRCNAME}-standalone = "${sysconfdir}/init.d/horizon" |
111 | 114 | ||
112 | FILES_${SRCNAME}-apache = "/etc/apache2 \ | 115 | FILES_${SRCNAME}-apache = " \ |
113 | /etc/openstack-dashboard/ \ | 116 | ${sysconfdir}/apache2 \ |
114 | /usr/share/openstack-dashboard/ \ | 117 | ${sysconfdir}/openstack-dashboard/ \ |
118 | ${datadir}/openstack-dashboard/ \ | ||
115 | " | 119 | " |
116 | 120 | ||
117 | RDEP_ARCH_VAR = "" | 121 | RDEP_ARCH_VAR = "" |