diff options
Diffstat (limited to 'meta-networking/recipes-support/dnsmasq/dnsmasq.inc')
-rw-r--r-- | meta-networking/recipes-support/dnsmasq/dnsmasq.inc | 10 |
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 7fec606782..622e630679 100644 --- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc @@ -23,6 +23,7 @@ PACKAGECONFIG[dbus] = ",,dbus" PACKAGECONFIG[idn] = ",,libidn" PACKAGECONFIG[conntrack] = ",,libnetfilter-conntrack" PACKAGECONFIG[lua] = ",,lua" +PACKAGECONFIG[resolvconf] = ",,,resolvconf" EXTRA_OEMAKE = "\ 'COPTS=${@base_contains('PACKAGECONFIG', 'dbus', '-DHAVE_DBUS', '', d)} \ ${@base_contains('PACKAGECONFIG', 'idn', '-DHAVE_IDN', '', d)} \ @@ -32,6 +33,8 @@ EXTRA_OEMAKE = "\ 'LDFLAGS=${LDFLAGS}' \ " +SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'resolvconf', 'file://dnsmasq.resolvconf file://99_dnsmasq', '', d)}" + do_compile_append() { # build dhcp_release cd ${S}/contrib/wrt @@ -56,6 +59,13 @@ do_install () { install -d ${D}${sysconfdir}/dbus-1/system.d install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/ fi + if [ "${@base_contains('PACKAGECONFIG', 'resolvconf', 'resolvconf', '', d)}" != "" ]; then + install -d ${D}${sysconfdir}/resolvconf/update.d/ + install -m 0755 ${WORKDIR}/dnsmasq.resolvconf ${D}${sysconfdir}/resolvconf/update.d/dnsmasq + + install -d ${D}${sysconfdir}/default/volatiles + install -m 0644 ${WORKDIR}/99_dnsmasq ${D}${sysconfdir}/default/volatiles + fi } CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf" |