diff options
author | Jens Rehsack <rehsack@gmail.com> | 2016-02-28 13:34:22 +0100 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-04-01 12:05:27 -0400 |
commit | 2497cf2960537152427c99629b2af412787eb6c2 (patch) | |
tree | 2f3559f93ffa4b6bf0fde2f5c05ac720ce12fd6a /meta-networking/recipes-support/dnsmasq/dnsmasq.inc | |
parent | e6c6a5dfea7c452e0549194131ea3367a3e0459d (diff) | |
download | meta-openembedded-2497cf2960537152427c99629b2af412787eb6c2.tar.gz |
dnsmasq: steal resolvconf support from Ubuntu
Add support for resolvconf integration as done in Ubuntu. This implies
updates of start-scripts, resolvconf plugin (on nameserver update ...),
populate-volatiles control file for saved nameserver list.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
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 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" | |||
23 | PACKAGECONFIG[idn] = ",,libidn" | 23 | PACKAGECONFIG[idn] = ",,libidn" |
24 | PACKAGECONFIG[conntrack] = ",,libnetfilter-conntrack" | 24 | PACKAGECONFIG[conntrack] = ",,libnetfilter-conntrack" |
25 | PACKAGECONFIG[lua] = ",,lua" | 25 | PACKAGECONFIG[lua] = ",,lua" |
26 | PACKAGECONFIG[resolvconf] = ",,,resolvconf" | ||
26 | EXTRA_OEMAKE = "\ | 27 | EXTRA_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 | ||
36 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'resolvconf', 'file://dnsmasq.resolvconf file://99_dnsmasq', '', d)}" | ||
37 | |||
35 | do_compile_append() { | 38 | do_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 | ||
61 | CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf" | 71 | CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf" |