Install systemd unit & busconfig ACLs from the package.

This change required as a part of privilege separation work:
  https://github.com/openbmc/openbmc/issues/3383

This change has dependant change:
  https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/41834

Change-Id: Ib4744ac69428af1a9625c3e99004a4cfd857ba4b
Signed-off-by: Anton D. Kachalov <gmouse@google.com>
diff --git a/dist/busconfig/phosphor-logging.conf b/dist/busconfig/phosphor-logging.conf
new file mode 100644
index 0000000..496639d
--- /dev/null
+++ b/dist/busconfig/phosphor-logging.conf
@@ -0,0 +1,12 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+  <policy group="root">
+    <allow own_prefix="xyz.openbmc_project.Logging"/>
+    <allow send_destination="xyz.openbmc_project.Logging"/>
+  </policy>
+
+  <policy group="phosphor-logging">
+    <allow send_destination="xyz.openbmc_project.Logging"/>
+  </policy>
+</busconfig>
diff --git a/dist/busconfig/phosphor-rsyslog-config.conf b/dist/busconfig/phosphor-rsyslog-config.conf
new file mode 100644
index 0000000..a4c33a4
--- /dev/null
+++ b/dist/busconfig/phosphor-rsyslog-config.conf
@@ -0,0 +1,8 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+  <policy group="root">
+    <allow own="xyz.openbmc_project.Syslog.Config"/>
+    <allow send_destination="xyz.openbmc_project.Syslog.Config"/>
+  </policy>
+</busconfig>
diff --git a/dist/meson.build b/dist/meson.build
new file mode 100644
index 0000000..cda6084
--- /dev/null
+++ b/dist/meson.build
@@ -0,0 +1,15 @@
+systemd_system_unit_dir = dependency('systemd').get_pkgconfig_variable(
+    'systemdsystemunitdir',
+    define_variable: ['prefix', get_option('prefix')])
+
+install_data(
+    ['xyz.openbmc_project.Logging.service',
+     'xyz.openbmc_project.Syslog.Config.service'],
+    install_dir: systemd_system_unit_dir
+)
+
+install_data(
+    ['busconfig/phosphor-logging.conf',
+     'busconfig/phosphor-rsyslog-config.conf'],
+    install_dir: get_option('sysconfdir') / 'dbus-1/system.d'
+)
diff --git a/dist/xyz.openbmc_project.Logging.service b/dist/xyz.openbmc_project.Logging.service
new file mode 100644
index 0000000..3a11a96
--- /dev/null
+++ b/dist/xyz.openbmc_project.Logging.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Phosphor Log Manager
+
+[Service]
+ExecStart=/usr/bin/phosphor-log-manager
+Restart=always
+Type=dbus
+BusName=xyz.openbmc_project.Logging
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dist/xyz.openbmc_project.Syslog.Config.service b/dist/xyz.openbmc_project.Syslog.Config.service
new file mode 100644
index 0000000..0ed1a76
--- /dev/null
+++ b/dist/xyz.openbmc_project.Syslog.Config.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Rsyslog config updater
+
+[Service]
+ExecStart=/usr/bin/phosphor-rsyslog-conf
+Restart=always
+Type=dbus
+BusName=xyz.openbmc_project.Syslog.Config
+
+[Install]
+WantedBy=multi-user.target