aboutsummaryrefslogtreecommitdiff
path: root/package/dnsmasq/dnsmasq.mk
diff options
context:
space:
mode:
authorGravatar Yegor Yefremov <yegorslists@googlemail.com>2014-12-31 00:51:14 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-31 15:11:36 +0100
commite6f20858f5afd1f7042981b98afb2a85d4bde77f (patch)
treeb26765bb5eaa38631a5b6e91248f624cc20ccbff /package/dnsmasq/dnsmasq.mk
parentdad1fcd0d5660c1fc9b130525590b104cc2eabb0 (diff)
downloadbuildroot-e6f20858f5afd1f7042981b98afb2a85d4bde77f.tar.gz
buildroot-e6f20858f5afd1f7042981b98afb2a85d4bde77f.tar.bz2
dnsmasq: install DBus configuration file
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/dnsmasq/dnsmasq.mk')
-rw-r--r--package/dnsmasq/dnsmasq.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/dnsmasq/dnsmasq.mk b/package/dnsmasq/dnsmasq.mk
index 9b1092e8cd..f848a94100 100644
--- a/package/dnsmasq/dnsmasq.mk
+++ b/package/dnsmasq/dnsmasq.mk
@@ -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