recipes-phosphor: host: phosphor-host-postd recipe

Initial recipe for building phosphor-host-postd.

Change-Id: I859fc11fbd779ec116299a7ce3ba19f14ae3f202
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd.bb b/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd.bb
new file mode 100644
index 0000000..3edf1e7
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Phosphor OpenBMC Post Code Daemon"
+DESCRIPTION = "Phosphor OpenBMC Post Code Daemon"
+PR = "r1"
+
+inherit autotools pkgconfig
+inherit obmc-phosphor-systemd
+
+DEPENDS += "autoconf-archive-native"
+DEPENDS += "sdbusplus"
+DEPENDS += "phosphor-dbus-interfaces"
+DEPENDS += "systemd"
+
+RDEPENDS_${PN} += "sdbusplus phosphor-dbus-interfaces"
+
+SYSTEMD_SERVICE_${PN} += "lpcsnoop.service"
+
+require ${PN}.inc
+
+S = "${WORKDIR}/git"
+
diff --git a/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd.inc b/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd.inc
new file mode 100644
index 0000000..ef68f34
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd.inc
@@ -0,0 +1,6 @@
+HOMEPAGE = "http://github.com/openbmc/phosphor-host-postd"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
+SRC_URI += "git://github.com/openbmc/phosphor-host-postd"
+SRCREV = "3356975850f0c771269c326304d41aea89d66bdb"
+
diff --git a/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd/lpcsnoop.service b/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd/lpcsnoop.service
new file mode 100644
index 0000000..23dfd98
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host/phosphor-host-postd/lpcsnoop.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=LPC Snoop Daemon
+After=systemd-modules-load.service
+
+[Service]
+Restart=always
+ExecStart={sbindir}/snoopd
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}