
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
124 lines
4.0 KiB
BlitzBasic
124 lines
4.0 KiB
BlitzBasic
require config-common.inc
|
|
|
|
SUBPATH0 = "sysinv/sysinv/sysinv"
|
|
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
|
|
|
|
SRC_URI += " \
|
|
file://0001-sriovph-bring-up.patch \
|
|
file://0002-cgts-client-handle-exceptions-other-than-CalledProcessErr.patch;striplevel=4 \
|
|
"
|
|
|
|
DEPENDS += " \
|
|
python-pbr-native \
|
|
"
|
|
RDEPENDS_${PN}_append = " \
|
|
bash \
|
|
gptfdisk \
|
|
python \
|
|
python-amqp \
|
|
python-amqplib \
|
|
python-anyjson \
|
|
python-boto3 \
|
|
python-botocore \
|
|
python-coverage \
|
|
python-django \
|
|
python-docker \
|
|
python-eventlet \
|
|
python-ipaddr \
|
|
python-jsonpatch \
|
|
python-keyring \
|
|
python-keystoneauth1 \
|
|
python-keystonemiddleware \
|
|
python-kubernetes \
|
|
python-mox3 \
|
|
python-netaddr \
|
|
python-oslo.concurrency \
|
|
python-oslo.config \
|
|
python-oslo.db \
|
|
python-oslo.i18n \
|
|
python-oslo.log \
|
|
python-oslo.rootwrap \
|
|
python-oslo.serialization \
|
|
python-oslo.service \
|
|
python-oslo.utils \
|
|
python-paramiko \
|
|
python-passlib \
|
|
python-paste \
|
|
python-pbr \
|
|
python-pecan \
|
|
python-psutil \
|
|
python-pyghmi \
|
|
python-pyparted \
|
|
python-pyudev \
|
|
python-pyudev \
|
|
python-requests \
|
|
python-retrying \
|
|
python-six \
|
|
python-sqlalchemy \
|
|
python-stevedore \
|
|
python-webob \
|
|
python-websockify \
|
|
python-websocket-client \
|
|
python-webtest \
|
|
python-wsme \
|
|
python2-rpm \
|
|
resource-agents \
|
|
tsconfig \
|
|
"
|
|
|
|
inherit setuptools python-dir systemd useradd
|
|
SYSTEMD_PACKAGES += "${PN}"
|
|
SYSTEMD_SERVICE_${PN} = "sysinv-api.service sysinv-conductor.service"
|
|
SYSTEMD_AUTO_ENABLE_${PN} = "disable"
|
|
|
|
USERADD_PACKAGES = "sysinv"
|
|
USERADD_PARAM_sysinv = "-r -g sysinv -u 168 -d /var/lib/sysinv -s /sbin/nologin -c 'sysinv Daemons' sysinv"
|
|
GROUPADD_PARAM_sysinv = "-r -g 168 sysinv"
|
|
|
|
export PBR_VERSION = "${PV}"
|
|
|
|
do_install_append() {
|
|
|
|
install -d -m 755 ${D}${sysconfdir}/goenabled.d
|
|
install -p -D -m 755 etc/sysinv/sysinv_goenabled_check.sh ${D}${sysconfdir}/goenabled.d/sysinv_goenabled_check.sh
|
|
|
|
install -d -m 755 ${D}${sysconfdir}/sysinv
|
|
install -p -D -m 755 etc/sysinv/policy.json ${D}${sysconfdir}/sysinv/policy.json
|
|
install -p -D -m 640 etc/sysinv/profileSchema.xsd ${D}${sysconfdir}/sysinv/profileSchema.xsd
|
|
|
|
install -p -D -m 644 etc/sysinv/crushmap-storage-model.txt ${D}${sysconfdir}/sysinv/crushmap-storage-model.txt
|
|
install -p -D -m 644 etc/sysinv/crushmap-controller-model.txt ${D}${sysconfdir}/sysinv/crushmap-controller-model.txt
|
|
install -p -D -m 644 etc/sysinv/crushmap-aio-sx.txt ${D}${sysconfdir}/sysinv/crushmap-aio-sx.txt
|
|
|
|
install -d -m 755 ${D}${sysconfdir}/motd.d
|
|
install -p -D -m 755 etc/sysinv/motd-system ${D}${sysconfdir}/motd.d/10-system
|
|
|
|
install -d -m 755 ${D}${sysconfdir}/sysinv/upgrades
|
|
install -p -D -m 755 etc/sysinv/delete_load.sh ${D}${sysconfdir}/sysinv/upgrades/delete_load.sh
|
|
|
|
install -m 755 -p -D scripts/sysinv-api ${D}/usr/lib/ocf/resource.d/platform/sysinv-api
|
|
install -m 755 -p -D scripts/sysinv-conductor ${D}/usr/lib/ocf/resource.d/platform/sysinv-conductor
|
|
|
|
install -m 644 -p -D scripts/sysinv-api.service ${D}${systemd_system_unitdir}/sysinv-api.service
|
|
install -m 644 -p -D scripts/sysinv-conductor.service ${D}${systemd_system_unitdir}/sysinv-conductor.service
|
|
|
|
#install -p -D -m 755 ${D}/usr/bin/sysinv-api ${D}/usr/bin/sysinv-api
|
|
#install -p -D -m 755 ${D}/usr/bin/sysinv-agent ${D}/usr/bin/sysinv-agent
|
|
#install -p -D -m 755 ${D}/usr/bin/sysinv-fpga-agent ${D}/usr/bin/sysinv-fpga-agent
|
|
#install -p -D -m 755 ${D}/usr/bin/sysinv-conductor ${D}/usr/bin/sysinv-conductor
|
|
|
|
install -d -m 755 ${D}${bindir}/
|
|
install -p -D -m 755 scripts/partition_info.sh ${D}${bindir}/partition_info.sh
|
|
install -p -D -m 755 scripts/validate-platform-backup.sh ${D}${bindir}/validate-platform-backup.sh
|
|
install -p -D -m 755 scripts/manage-partitions ${D}${bindir}/manage-partitions
|
|
install -p -D -m 755 scripts/query_pci_id ${D}${bindir}/query_pci_id
|
|
install -p -D -m 755 scripts/kube-cert-rotation.sh ${D}${bindir}/kube-cert-rotation.sh
|
|
|
|
sed -i -e 's|/usr/local/bin|${bindir}|' \
|
|
${D}${libdir}/python2.7/site-packages/sysinv/common/constants.py \
|
|
${D}${libdir}/python2.7/site-packages/sysinv/puppet/common.py
|
|
}
|
|
|