summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/dnsmasq/dnsmasq.inc')
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
index 7fec60678..622e63067 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
@@ -23,6 +23,7 @@ PACKAGECONFIG[dbus] = ",,dbus"
23PACKAGECONFIG[idn] = ",,libidn" 23PACKAGECONFIG[idn] = ",,libidn"
24PACKAGECONFIG[conntrack] = ",,libnetfilter-conntrack" 24PACKAGECONFIG[conntrack] = ",,libnetfilter-conntrack"
25PACKAGECONFIG[lua] = ",,lua" 25PACKAGECONFIG[lua] = ",,lua"
26PACKAGECONFIG[resolvconf] = ",,,resolvconf"
26EXTRA_OEMAKE = "\ 27EXTRA_OEMAKE = "\
27 'COPTS=${@base_contains('PACKAGECONFIG', 'dbus', '-DHAVE_DBUS', '', d)} \ 28 'COPTS=${@base_contains('PACKAGECONFIG', 'dbus', '-DHAVE_DBUS', '', d)} \
28 ${@base_contains('PACKAGECONFIG', 'idn', '-DHAVE_IDN', '', d)} \ 29 ${@base_contains('PACKAGECONFIG', 'idn', '-DHAVE_IDN', '', d)} \
@@ -32,6 +33,8 @@ EXTRA_OEMAKE = "\
32 'LDFLAGS=${LDFLAGS}' \ 33 'LDFLAGS=${LDFLAGS}' \
33" 34"
34 35
36SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'resolvconf', 'file://dnsmasq.resolvconf file://99_dnsmasq', '', d)}"
37
35do_compile_append() { 38do_compile_append() {
36 # build dhcp_release 39 # build dhcp_release
37 cd ${S}/contrib/wrt 40 cd ${S}/contrib/wrt
@@ -56,6 +59,13 @@ do_install () {
56 install -d ${D}${sysconfdir}/dbus-1/system.d 59 install -d ${D}${sysconfdir}/dbus-1/system.d
57 install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/ 60 install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/
58 fi 61 fi
62 if [ "${@base_contains('PACKAGECONFIG', 'resolvconf', 'resolvconf', '', d)}" != "" ]; then
63 install -d ${D}${sysconfdir}/resolvconf/update.d/
64 install -m 0755 ${WORKDIR}/dnsmasq.resolvconf ${D}${sysconfdir}/resolvconf/update.d/dnsmasq
65
66 install -d ${D}${sysconfdir}/default/volatiles
67 install -m 0644 ${WORKDIR}/99_dnsmasq ${D}${sysconfdir}/default/volatiles
68 fi
59} 69}
60 70
61CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf" 71CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"