dnsmasq: install DBus configuration file
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 30 Dec 2014 23:51:14 +0000 (00:51 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 31 Dec 2014 14:11:36 +0000 (15:11 +0100)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dnsmasq/dnsmasq.mk

index 9b1092e8cd7d3855e343e122cf204d9a2385d4fc..f848a94100c7a19c3f692ca1ccf1f9f6133de7a0 100644 (file)
@@ -101,9 +101,17 @@ define DNSMASQ_BUILD_CMDS
        $(DNSMASQ_MAKE_ENV) $(MAKE1) -C $(@D) $(DNSMASQ_MAKE_OPTS) all$(DNSMASQ_I18N)
 endef
 
+ifeq ($(BR2_PACKAGE_DBUS),y)
+define DNSMASQ_INSTALL_DBUS
+       $(INSTALL) -m 0644 -D $(@D)/dbus/dnsmasq.conf \
+               $(TARGET_DIR)/etc/dbus-1/system.d/dnsmasq.conf
+endef
+endif
+
 define DNSMASQ_INSTALL_TARGET_CMDS
        $(DNSMASQ_MAKE_ENV) $(MAKE) -C $(@D) $(DNSMASQ_MAKE_OPTS) install$(DNSMASQ_I18N)
        mkdir -p $(TARGET_DIR)/var/lib/misc/
+       $(DNSMASQ_INSTALL_DBUS)
 endef
 
 define DNSMASQ_INSTALL_INIT_SYSV