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:27:51 -0400 |
commit | dd84f8b58f38dbfa79c6ef56d4ee608979e23e3e (patch) | |
tree | 1db8dad6d6acdb391d17a2abfdf8fe340534ab8f | |
parent | 310c8efc04aad1ff3d0bea28931dbdfc77b1252b (diff) | |
download | meta-cloud-services-dd84f8b58f38dbfa79c6ef56d4ee608979e23e3e.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 b65ce18..0768b2d 100644 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb | |||
@@ -64,6 +64,9 @@ inherit setuptools update-rc.d python-dir default_configs | |||
64 | # do_install[dirs] += "${D}/usr/share/bin" | 64 | # do_install[dirs] += "${D}/usr/share/bin" |
65 | 65 | ||
66 | do_install_append() { | 66 | do_install_append() { |
67 | SYSCONF_DIR=${D}${sysconfdir} | ||
68 | DASHBOARD_CONF_DIR=${SYSCONF_DIR}/openstack-dashboard | ||
69 | DASHBOARD_SHARE_DIR=${D}${datadir}/openstack-dashboard | ||
67 | HORIZON_CONF_DIR=${D}${sysconfdir}/horizon | 70 | HORIZON_CONF_DIR=${D}${sysconfdir}/horizon |
68 | 71 | ||
69 | install -d ${HORIZON_CONF_DIR} | 72 | install -d ${HORIZON_CONF_DIR} |
@@ -90,24 +93,24 @@ do_install_append() { | |||
90 | cp run_tests.sh ${HORIZON_CONF_DIR} | 93 | cp run_tests.sh ${HORIZON_CONF_DIR} |
91 | 94 | ||
92 | # the following are setup required for horizon-apache | 95 | # the following are setup required for horizon-apache |
93 | install -d ${D}/usr/share/openstack-dashboard | 96 | install -d ${DASHBOARD_SHARE_DIR} |
94 | cp -a ${S}/openstack_dashboard ${D}/usr/share/openstack-dashboard/ | 97 | cp -a ${S}/openstack_dashboard ${DASHBOARD_SHARE_DIR} |
95 | cp ${S}/manage.py ${D}/usr/share/openstack-dashboard | 98 | cp ${S}/manage.py ${DASHBOARD_SHARE_DIR} |
96 | 99 | ||
97 | install -D -m 644 ${WORKDIR}/local_settings.py \ | 100 | install -D -m 644 ${WORKDIR}/local_settings.py \ |
98 | ${D}/etc/openstack-dashboard/local_settings.py | 101 | ${DASHBOARD_CONF_DIR}/local_settings.py |
99 | ln -fs /etc/openstack-dashboard/local_settings.py \ | 102 | ln -fs ${sysconfdir}/openstack-dashboard/local_settings.py \ |
100 | ${D}/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py | 103 | ${DASHBOARD_SHARE_DIR}/openstack_dashboard/local/local_settings.py |
101 | 104 | ||
102 | install -D -m 644 ${WORKDIR}/openstack-dashboard-apache.conf \ | 105 | install -D -m 644 ${WORKDIR}/openstack-dashboard-apache.conf \ |
103 | ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf | 106 | ${SYSCONF_DIR}/apache2/conf.d/openstack-dashboard-apache.conf |
104 | sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf | 107 | sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${SYSCONF_DIR}/apache2/conf.d/openstack-dashboard-apache.conf |
105 | sed -i -e 's#%LIBDIR%#${libdir}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf | 108 | sed -i -e 's#%LIBDIR%#${libdir}#' ${SYSCONF_DIR}/apache2/conf.d/openstack-dashboard-apache.conf |
106 | 109 | ||
107 | ln -fs openstack_dashboard/static ${D}/usr/share/openstack-dashboard/static | 110 | ln -fs openstack_dashboard/static ${DASHBOARD_SHARE_DIR}/static |
108 | 111 | ||
109 | # daemon is UID 1 | 112 | # daemon is UID 1 |
110 | chown -R 1 ${D}/usr/share/openstack-dashboard/openstack_dashboard/static | 113 | chown -R 1 ${DASHBOARD_SHARE_DIR}/openstack_dashboard/static |
111 | } | 114 | } |
112 | 115 | ||
113 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" | 116 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" |
@@ -122,9 +125,10 @@ FILES_${SRCNAME} = "${bindir}/* \ | |||
122 | 125 | ||
123 | FILES_${SRCNAME}-standalone = "${sysconfdir}/init.d/horizon" | 126 | FILES_${SRCNAME}-standalone = "${sysconfdir}/init.d/horizon" |
124 | 127 | ||
125 | FILES_${SRCNAME}-apache = "/etc/apache2 \ | 128 | FILES_${SRCNAME}-apache = " \ |
126 | /etc/openstack-dashboard/ \ | 129 | ${sysconfdir}/apache2 \ |
127 | /usr/share/openstack-dashboard/ \ | 130 | ${sysconfdir}/openstack-dashboard/ \ |
131 | ${datadir}/openstack-dashboard/ \ | ||
128 | " | 132 | " |
129 | 133 | ||
130 | RDEP_ARCH_VAR = "" | 134 | RDEP_ARCH_VAR = "" |