Files
meta-starlingx/meta-stx-flock/stx-gui/stx-gui.bb
Jackie Huang e2fefea34d recipes-devtools: fix the do_install failure for pkgs
Set PBR_VERSION to disable all version calculation logic
of pbr the supplied version will be considered absolute.

Closes-bug: 2013029

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ia038c1c7f10170413051e5b3addd337d3559f3ff
2023-03-28 21:44:00 -07:00

76 lines
2.3 KiB
BlitzBasic

DESCRIPTION = "stx-gui"
PACKAGES = "starlingx-dashboard"
PROTOCOL = "https"
BRANCH = "r/stx.5.0"
SRCREV = "b7bd6ddd7af6c118e37c979689703343ca85631c"
S = "${WORKDIR}/git"
PV = "1.0.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
SRC_URI = "git://opendev.org/starlingx/gui.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit distutils python-dir
export PBR_VERSION = "${PV}"
DEPENDS = "\
python \
python-pbr-native \
"
RDEPENDS_starlingx-dashboard += " \
python-django-horizon \
"
RDEPENDS_starlingx-dashboard_append = " \
${PYTHON_PN}-cephclient \
"
do_configure () {
cd ${S}/starlingx-dashboard/starlingx-dashboard
distutils_do_configure
}
do_compile () {
cd ${S}/starlingx-dashboard/starlingx-dashboard
distutils_do_compile
}
do_install () {
cd ${S}/starlingx-dashboard/starlingx-dashboard
distutils_do_install
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx/
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/starlingx_templates/
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/enabled/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/themes/starlingx/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx/
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/local/local_settings.d/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/starlingx_templates/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/starlingx_templates/
chmod -R 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/starlingx_templates/*
# comment out this line with syntax error
sed -i -e 's|^OPENSTACK_NEUTRON_NETWORK|# &|' \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d/_30_stx_local_settings.py
}
FILES_starlingx-dashboard = " \
${PYTHON_SITEPACKAGES_DIR} \
${datadir}/openstack-dashboard/openstack_dashboard \
"