2 ## Copyright (C) 2019 Wind River Systems, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 DESCRIPTION = "stx-gui"
18 PACKAGES = "starlingx-dashboard"
22 SRCREV = "d1c22e49a95f92e91049b96f44e685f46785977c"
26 LICENSE = "Apache-2.0"
28 LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
32 SRC_URI = "git://opendev.org/starlingx/gui.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
34 inherit distutils python-dir
41 RDEPENDS_starlingx-dashboard += " \
42 python-django-horizon \
45 RDEPENDS_starlingx-dashboard_append = " \
46 ${PYTHON_PN}-cephclient \
50 cd ${S}/starlingx-dashboard/starlingx-dashboard
51 distutils_do_configure
56 cd ${S}/starlingx-dashboard/starlingx-dashboard
62 cd ${S}/starlingx-dashboard/starlingx-dashboard
65 install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
66 install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx/
67 install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
68 cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/enabled/* \
69 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
70 cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/themes/starlingx/* \
71 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx/
72 cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/local/local_settings.d/* \
73 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
74 # comment out this line with syntax error
75 sed -i -e 's|^OPENSTACK_NEUTRON_NETWORK|# &|' \
76 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d/_30_stx_local_settings.py
79 FILES_starlingx-dashboard = " \
80 ${PYTHON_SITEPACKAGES_DIR} \
81 ${datadir}/openstack-dashboard/openstack_dashboard \