event recipe/service updates
Make use of systemd and dbus class features.
Change-Id: Ia7d15bc830af4dc5d2d5bf7d497ec3cb34361369
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-phosphor/events/obmc-phosphor-event.bb b/common/recipes-phosphor/events/obmc-phosphor-event.bb
index bba2a64..bd4d678 100644
--- a/common/recipes-phosphor/events/obmc-phosphor-event.bb
+++ b/common/recipes-phosphor/events/obmc-phosphor-event.bb
@@ -6,20 +6,21 @@
inherit obmc-phosphor-license
inherit obmc-phosphor-event-mgmt
-inherit obmc-phosphor-sdbus-service
+inherit obmc-phosphor-dbus-service
inherit obmc-phosphor-c-daemon
TARGET_CXXFLAGS += " -std=c++11 -fpic"
TARGET_CFLAGS += " -fpic"
SRC_URI += "git://github.com/openbmc/phosphor-event"
-SRC_URI += "file://eventd.conf"
SRCREV = "059b35e1eabdd87ad02b4343692789386c134082"
RDEPENDS_${PN} += "libsystemd"
DEPENDS += "systemd"
+DBUS_SERVICE_${PN} = "org.openbmc.records.events.service"
+SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/eventd/eventd.conf"
S = "${WORKDIR}/git"
INSTALL_NAME = "event_messaged"
@@ -27,7 +28,5 @@
do_install() {
install -d ${D}/var/lib/obmc/events/
install -m 0755 -d ${D}${sbindir}
- install -m 0755 ${S}/${INSTALL_NAME} ${D}/${sbindir}/obmc-phosphor-eventd
- install -m 0755 -d ${D}${sysconfdir}/default/eventd
- install -m 0644 ${WORKDIR}/eventd.conf ${D}${sysconfdir}/default/eventd/eventd.conf
+ install -m 0755 ${S}/${INSTALL_NAME} ${D}/${sbindir}/phosphor-eventd
}