X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=meta-starlingx%2Fmeta-stx-flock%2Fstx-ha%2Fstx-ocf-scripts.bb;fp=meta-starlingx%2Fmeta-stx-flock%2Fstx-ha%2Fstx-ocf-scripts.bb;h=85947efcf8e1b7cb1381a819e0152c34002590cd;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-flock/stx-ha/stx-ocf-scripts.bb b/meta-starlingx/meta-stx-flock/stx-ha/stx-ocf-scripts.bb new file mode 100644 index 0000000..85947ef --- /dev/null +++ b/meta-starlingx/meta-stx-flock/stx-ha/stx-ocf-scripts.bb @@ -0,0 +1,30 @@ +require ha-common.inc +SUBPATH0 = "stx-ocf-scripts/src/ocf" + + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +RDEPENDS_${PN} = " \ + bash \ + openstack-ras \ + " + +do_unpack_append() { + bb.build.exec_func('do_restore_license_file', d) +} + +do_restore_license_file () { + cd ${S} + git reset HEAD LICENSE + git checkout LICENSE +} + +do_install_append () { + install -d -m 755 ${D}/usr/lib/ocf/resource.d/openstack + install -p -D -m 755 $(find . -type f -not -path './.git/*') ${D}/usr/lib/ocf/resource.d/openstack/ +} + +FILES_${PN}_append = " \ + ${libdir}/ocf/resource.d/openstack/ \ + "