meta-phosphor: host: postd: move service file to repo

Move the service file to the repo and populate via the configure script.

Tested: Verified the service was installed and properly populated.
(From meta-phosphor rev: c78742243e9a11d089779bc6f31cb026792a61d4)

Change-Id: I226d56b6d769705a594a60222c0b110edde1ef25
Signed-off-by: Patrick Venture <venture@google.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/recipes-phosphor/host/phosphor-host-postd/lpcsnoop.service b/meta-phosphor/recipes-phosphor/host/phosphor-host-postd/lpcsnoop.service
deleted file mode 100644
index 117702c..0000000
--- a/meta-phosphor/recipes-phosphor/host/phosphor-host-postd/lpcsnoop.service
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=LPC Snoop Daemon
-After=systemd-modules-load.service
-
-[Service]
-Restart=always
-ExecStart={sbindir}/snoopd -d "/dev/{SNOOP_DEVICE}" -b "{POST_CODE_BYTES}"
-
-[Install]
-WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/meta-phosphor/recipes-phosphor/host/phosphor-host-postd_git.bb b/meta-phosphor/recipes-phosphor/host/phosphor-host-postd_git.bb
index 5acd8e7..2cf783c 100644
--- a/meta-phosphor/recipes-phosphor/host/phosphor-host-postd_git.bb
+++ b/meta-phosphor/recipes-phosphor/host/phosphor-host-postd_git.bb
@@ -7,7 +7,7 @@
 LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
 
 inherit autotools pkgconfig
-inherit obmc-phosphor-systemd
+inherit systemd
 
 DEPENDS += "autoconf-archive-native"
 DEPENDS += "sdbusplus"
@@ -23,6 +23,12 @@
 POST_CODE_BYTES ?= "1"
 
 SERVICE_FILE = "lpcsnoop.service"
+SYSTEMD_PACKAGES = "${PN}"
 SYSTEMD_SERVICE_${PN} += "${SERVICE_FILE}"
-SYSTEMD_SUBSTITUTIONS += "SNOOP_DEVICE:${SNOOP_DEVICE}:${SERVICE_FILE}"
-SYSTEMD_SUBSTITUTIONS += "POST_CODE_BYTES:${POST_CODE_BYTES}:${SERVICE_FILE}"
+SYSTEMD_DEFAULT_TARGET ?= "obmc-standby.target"
+
+EXTRA_OECONF = " \
+  SNOOP_DEVICE="${SNOOP_DEVICE}" \
+  POST_CODE_BYTES="${POST_CODE_BYTES}" \
+  SYSTEMD_TARGET="${SYSTEMD_DEFAULT_TARGET}" \
+"