iscsi-initiator-utils: update for stx 5.0
* inherit stx-metadata to help install updated files from stx 'config-files' repo * remove do_copy_config_files since it's not needed after using stx-metadata Story: 2008952 Task: 42576 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: Idc9560538602d9e9c718fc6690d2aa52a2126111
This commit is contained in:
parent
fae0aac0c2
commit
aa5ddde71f
@ -1,17 +1,13 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
||||||
SRCREV_FORMAT = "opendev"
|
inherit stx-metadata
|
||||||
SRCREV_opendev = "d778e862571957ece3c404c0c37d325769772fde"
|
|
||||||
SUBPATH0 = "iscsi-initiator-utils-config"
|
STX_REPO = "config-files"
|
||||||
DSTSUFX0 = "stx-configfiles"
|
STX_SUBPATH = "iscsi-initiator-utils-config"
|
||||||
|
|
||||||
LICENSE_append = "& Apache-2.0"
|
LICENSE_append = "& Apache-2.0"
|
||||||
LIC_FILES_CHKSUM += "\
|
LIC_FILES_CHKSUM += "\
|
||||||
file://stx-configfiles-LICENSE;beginline=1;endline=10;md5=4f3e541126551bf6458a8a6557b1e171 \
|
file://${STX_METADATA_PATH}/centos/iscsi-initiator-utils-config.spec;beginline=1;endline=10;md5=4f3e541126551bf6458a8a6557b1e171 \
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI += " \
|
|
||||||
git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX0};branch="r/stx.3.0";subpath=${SUBPATH0};name=opendev \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit systemd
|
inherit systemd
|
||||||
@ -20,21 +16,13 @@ SYSTEMD_SERVICE_${PN}_append = "iscsi-shutdown.service"
|
|||||||
SYSTEMD_AUTO_ENABLE_${PN} = "disable"
|
SYSTEMD_AUTO_ENABLE_${PN} = "disable"
|
||||||
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
|
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
|
||||||
|
|
||||||
do_unpack_append() {
|
|
||||||
bb.build.exec_func('do_copy_config_files', d)
|
|
||||||
}
|
|
||||||
|
|
||||||
do_copy_config_files () {
|
|
||||||
cp -pf ${WORKDIR}/stx-configfiles/centos/iscsi-initiator-utils-config.spec ${S}/stx-configfiles-LICENSE
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d ${D}/${libdir}/tmpfiles.d
|
install -d ${D}/${libdir}/tmpfiles.d
|
||||||
install -d ${D}/${sysconfdir}/systemd/system
|
install -d ${D}/${sysconfdir}/systemd/system
|
||||||
|
|
||||||
install -m 0644 ${WORKDIR}/stx-configfiles/files/iscsi-cache.volatiles ${D}/${libdir}/tmpfiles.d/iscsi-cache.conf
|
install -m 0644 ${STX_METADATA_PATH}/files/iscsi-cache.volatiles ${D}/${libdir}/tmpfiles.d/iscsi-cache.conf
|
||||||
install -m 0644 ${WORKDIR}/stx-configfiles/files/iscsi-shutdown.service ${D}/${sysconfdir}/systemd/system
|
install -m 0644 ${STX_METADATA_PATH}/files/iscsi-shutdown.service ${D}/${sysconfdir}/systemd/system
|
||||||
install -m 0644 ${WORKDIR}/stx-configfiles/files/iscsid.conf ${D}/${sysconfdir}/iscsi/iscsid.conf
|
install -m 0644 ${STX_METADATA_PATH}/files/iscsid.conf ${D}/${sysconfdir}/iscsi/iscsid.conf
|
||||||
|
|
||||||
rm -rf ${D}/${nonarch_base_libdir}/
|
rm -rf ${D}/${nonarch_base_libdir}/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user