Move service file to repo

This commit moves vpd service files to openpower-vpd-parser
repository and also install the service files in systemd
unit directory via meson.

Test works as expected.

Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: If0ee5f3b0cc4cc949f584d3f1cb234f31a9e0dc5
diff --git a/service_files/com.ibm.VPD.Manager.service b/service_files/com.ibm.VPD.Manager.service
new file mode 100644
index 0000000..04f157d
--- /dev/null
+++ b/service_files/com.ibm.VPD.Manager.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=IBM VPD Manager
+StopWhenUnneeded=false
+Requires=system-vpd.service
+After=system-vpd.service
+
+[Service]
+BusName=com.ibm.VPD.Manager
+Type=dbus
+Restart=always
+RestartSec=5
+ExecStart=/usr/bin/vpd-manager
+
+[Install]
+WantedBy=multi-user.target
diff --git a/service_files/ibm-isdimm-vpd-parser@.service b/service_files/ibm-isdimm-vpd-parser@.service
new file mode 100644
index 0000000..d92ee52
--- /dev/null
+++ b/service_files/ibm-isdimm-vpd-parser@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Jedec format VPD Parser service for FRU %I
+Wants=mapper-wait@-xyz-openbmc_project-inventory.service
+After=mapper-wait@-xyz-openbmc_project-inventory.service
+Requires=system-vpd.service
+After=system-vpd.service
+Before=phosphor-discover-system-state@0.service
+
+[Service]
+ExecStart=/usr/bin/env ibm-read-vpd --file %f --driver ee1004
+SyslogIdentifier=ibm-isdimm-vpd-parser
+
+[Install]
+WantedBy=multi-user.target
diff --git a/service_files/ibm-spi-vpd-parser@.service b/service_files/ibm-spi-vpd-parser@.service
new file mode 100644
index 0000000..eaecbbc
--- /dev/null
+++ b/service_files/ibm-spi-vpd-parser@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description= IPZ format SPI VPD Parser service for FRU %I
+Wants=mapper-wait@-xyz-openbmc_project-inventory.service
+After=mapper-wait@-xyz-openbmc_project-inventory.service
+Requires=system-vpd.service
+After=system-vpd.service
+Before=phosphor-discover-system-state@0.service
+
+[Service]
+ExecStart=/usr/bin/env ibm-read-vpd --file %f --driver at25
+SyslogIdentifier=ibm-spi-vpd-parser
+
+[Install]
+WantedBy=multi-user.target
diff --git a/service_files/ibm-vpd-parser@.service b/service_files/ibm-vpd-parser@.service
new file mode 100644
index 0000000..a8b2063
--- /dev/null
+++ b/service_files/ibm-vpd-parser@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=IPZ format VPD Parser service for FRU %I
+Wants=mapper-wait@-xyz-openbmc_project-inventory.service
+After=mapper-wait@-xyz-openbmc_project-inventory.service
+Requires=system-vpd.service
+After=system-vpd.service
+Before=phosphor-discover-system-state@0.service
+
+[Service]
+ExecStart=/usr/bin/env ibm-read-vpd --file %f --driver at24
+SyslogIdentifier=ibm-vpd-parser
+
+[Install]
+WantedBy=multi-user.target
diff --git a/service_files/system-vpd.service b/service_files/system-vpd.service
new file mode 100644
index 0000000..5c1f076
--- /dev/null
+++ b/service_files/system-vpd.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=System VPD Collection
+Wants=mapper-wait@-xyz-openbmc_project-inventory.service
+After=mapper-wait@-xyz-openbmc_project-inventory.service
+Wants=obmc-power-reset-on@0.target
+After=obmc-power-reset-on@0.target
+Wants=mapper-wait@-xyz-openbmc_project-state-chassis0.service
+After=mapper-wait@-xyz-openbmc_project-state-chassis0.service
+After=set-spi-mux.service
+Before=phosphor-discover-system-state@0.service
+
+[Service]
+ExecStart=/usr/bin/env ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom --driver at24
+SyslogIdentifier=ibm-vpd-parser
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+RequiredBy=multi-user.target
diff --git a/service_files/wait-vpd-parsers.service b/service_files/wait-vpd-parsers.service
new file mode 100644
index 0000000..95fc22f
--- /dev/null
+++ b/service_files/wait-vpd-parsers.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Wait for VPD Collection Services to complete
+After=system-vpd.service
+After=set-spi-mux.service
+
+[Service]
+ExecStart=/usr/bin/wait-vpd-parsers.sh
+Type=oneshot
+
+[Install]
+WantedBy=multi-user.target
+#WantedBy=obmc-chassis-poweroff@0.target