Add recipe file for phosphor-time-manager daemon
Change-Id: Ia92a413e8e8e4811501f17ff12ed8a9a3813e8e1
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
index 36c8aca..040e6c4 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
@@ -17,6 +17,7 @@
RDEPENDS_${PN} += "clear-once"
RDEPENDS_${PN} += "network"
RDEPENDS_${PN} += "libmapper"
+RDEPENDS_${PN} += "phosphor-time-manager"
RRECOMMENDS_${PN} += "virtual-obmc-settings-mgmt"
SRC_URI += "git://github.com/openbmc/phosphor-host-ipmid"
diff --git a/meta-phosphor/common/recipes-phosphor/phosphor-time-manager/phosphor-time-manager.bb b/meta-phosphor/common/recipes-phosphor/phosphor-time-manager/phosphor-time-manager.bb
new file mode 100644
index 0000000..15faa3a
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/phosphor-time-manager/phosphor-time-manager.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Phosphor Time Manager daemon"
+DESCRIPTION = "Daemon to cater to BMC and HOST time management"
+HOMEPAGE = "http://github.com/openbmc/phosphor-time-manager"
+PR = "r1"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+inherit autotools pkgconfig
+
+DEPENDS += "autoconf-archive-native"
+DEPENDS += "phosphor-mapper"
+DEPENDS += "systemd"
+RDEPENDS_${PN} += "phosphor-settings"
+RDEPENDS_${PN} += "network"
+RDEPENDS_${PN} += "libmapper"
+RDEPENDS_${PN} += "libsystemd"
+SRC_URI += "git://github.com/openbmc/phosphor-time-manager"
+
+SRCREV = "2a96cfc0ed4e5466793a82292ee5640c992b963c"
+
+S = "${WORKDIR}/git"
+
+DBUS_SERVICE_${PN} += "org.openbmc.TimeManager.service"
diff --git a/meta-phosphor/common/recipes-phosphor/phosphor-time-manager/phosphor-time-manager/org.openbmc.TimeManager.service b/meta-phosphor/common/recipes-phosphor/phosphor-time-manager/phosphor-time-manager/org.openbmc.TimeManager.service
new file mode 100644
index 0000000..8dddd5b
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/phosphor-time-manager/phosphor-time-manager/org.openbmc.TimeManager.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Phosphor Time Manager daemon
+Wants=mapper-wait@-org-openbmc-NetworkManager-Interface.service
+After=mapper-wait@-org-openbmc-NetworkManager-Interface.service
+Wants=mapper-wait@-org-openbmc-settings-Host.service
+After=mapper-wait@-org-openbmc-settings-Host.service
+
+[Service]
+Restart=always
+ExecStart={sbindir}/timemanager
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}