package/mender: install dbus authentication file if dbus is selected
authorAdam Duskett <Aduskett@rivian.com>
Sat, 20 Mar 2021 22:28:35 +0000 (15:28 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 31 Mar 2021 07:22:51 +0000 (09:22 +0200)
While not a requirement to run mender itself, the mender-connect package
requires this file to be installed to talk to mender.

Signed-off-by: Adam Duskett <Aduskett@rivian.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mender/mender.mk

index a5b5654ff9fbf01be33d0c6e2be3f24c8a48ceae..317e533532d476f86cd3ee2b646503a44b75edaa 100644 (file)
@@ -78,6 +78,14 @@ endef
 
 MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_CONFIG_FILES
 
+ifeq ($(BR2_PACKAGE_DBUS),y)
+define MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+       $(INSTALL) -D -m 0755 $(@D)/support/dbus/io.mender.AuthenticationManager.conf \
+                     $(TARGET_DIR)/etc/dbus-1/system.d/io.mender.AuthenticationManager.conf
+endef
+MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+endif
+
 define MENDER_INSTALL_INIT_SYSTEMD
        $(INSTALL) -D -m 0644 $(MENDER_PKGDIR)/mender-client.service \
                $(TARGET_DIR)/usr/lib/systemd/system/mender-client.service