mtce-guest: correct the package split

mtce-guestagent is for controller and worker nodes.
mtce-guestserver is for worker node only.

Correct the package split so we can re-group the packages
based on different roles.

Story: 2009305
Task: 43677

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0b4124326da9a7eb7555081e55f7ae5a0af5aecf
This commit is contained in:
Jackie Huang 2021-10-19 10:27:39 +08:00
parent c24474e46b
commit 5215095444

View File

@ -1,9 +1,9 @@
PACKAGES += " mtce-guestagent" PACKAGES += " ${PN}agent"
PACKAGES += " mtce-guestserver" PACKAGES += " ${PN}server"
require nfv-common.inc require nfv-common.inc
SUBPATH0 = "mtce-guest/src" SUBPATH0 = "${PN}/src"
SRC_URI += " \ SRC_URI += " \
file://0001-mtce-guest-Fix-ldflags-usage.patch \ file://0001-mtce-guest-Fix-ldflags-usage.patch \
@ -12,15 +12,15 @@ SRC_URI += " \
" "
inherit systemd inherit systemd
SYSTEMD_PACKAGES += "mtce-guestagent" SYSTEMD_PACKAGES += "${PN}agent"
SYSTEMD_PACKAGES += "mtce-guestserver" SYSTEMD_PACKAGES += "${PN}server"
SYSTEMD_SERVICE_mtce-guestagent = "guestAgent.service" SYSTEMD_SERVICE_${PN}agent = "guestAgent.service"
SYSTEMD_SERVICE_mtce-guestserver= "guestServer.service" SYSTEMD_SERVICE_${PN}server= "guestServer.service"
SYSTEMD_AUTO_ENABLE_mtce-guestagent = "disable" SYSTEMD_AUTO_ENABLE_${PN}agent = "disable"
SYSTEMD_AUTO_ENABLE_mtce-geustserver = "enable" SYSTEMD_AUTO_ENABLE_mtce-geustserver = "enable"
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit" DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
RDEPENDS_${PN} += " mtce-guestagent mtce-guestserver" RDEPENDS_${PN} += " ${PN}agent ${PN}server"
EXTRA_OEMAKE = '-e MAJOR="1" MINONR="0" \ EXTRA_OEMAKE = '-e MAJOR="1" MINONR="0" \
INCLUDES=" -I. -I${STAGING_INCDIR}/mtce-common/ -I${STAGING_INCDIR}/mtce-daemon/ " \ INCLUDES=" -I. -I${STAGING_INCDIR}/mtce-common/ -I${STAGING_INCDIR}/mtce-daemon/ " \
@ -31,31 +31,31 @@ do_install() {
oe_runmake -e install DESTDIR=${D} PREFIX=${D}/usr/ \ oe_runmake -e install DESTDIR=${D} PREFIX=${D}/usr/ \
SYSCONFDIR=${D}/${sysconfdir} \ SYSCONFDIR=${D}/${sysconfdir} \
LOCALBINDIR=${D}/${bindir} \ LOCALBINDIR=${D}/${bindir} \
UNITDIR=${D}/${systemd_system_unitdir} UNITDIR=${D}/${systemd_system_unitdir}
rm -rf ${D}/var rm -rf ${D}/var
rm -rf ${D}/var/run rm -rf ${D}/var/run
} }
FILES_mtce-guestserver = " \ FILES_${PN}server = " \
${sysconfdir}/logrotate.d/guestServer.logrotate \ ${sysconfdir}/logrotate.d/guestServer.logrotate \
${systemd_system_unitdir}/guestServer.service \ ${systemd_system_unitdir}/guestServer.service \
${sysconfdir}/mtc/guestServer.ini \
${sysconfdir}/init.d/guestServer \
${sysconfdir}/pmon.d/guestServer.conf \
${bindir}/guestServer \
${sysconfdir}/mtc/tmp \
" "
FILES_mtce-guestagent = " \ FILES_${PN}agent = " \
${systemd_system_unitdir}/guestAgent.service \ ${systemd_system_unitdir}/guestAgent.service \
${sysconfdir}/logrotate.d/guestAgent.logrotate \ ${sysconfdir}/logrotate.d/guestAgent.logrotate \
${libdir}/ocf/resource.d/platform/guestAgent \ ${libdir}/ocf/resource.d/platform/guestAgent \
"
FILE_${PN} = " \
${sysconfdir}/mtc/tmp \
${sysconfdir}/mtc/guestAgent.ini \ ${sysconfdir}/mtc/guestAgent.ini \
${sysconfdir}/mtc/guestServer.ini \
${sysconfdir}/init.d/guestServer \
${sysconfdir}/init.d/guestAgent \ ${sysconfdir}/init.d/guestAgent \
${sysconfdir}/pmon.d/guestServer.conf \
${bindir}/guestServer \
${bindir}/guestAgent \ ${bindir}/guestAgent \
" "
FILES_${PN} = ""
ALLOW_EMPTY_${PN} = "1"