summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb15
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
index 8d2feec769..5be5e4fa32 100644
--- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
+++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
@@ -28,13 +28,16 @@ DEBIANNAME_${PN} = "libnss-mdns"
28RDEPENDS_${PN} = "avahi-daemon" 28RDEPENDS_${PN} = "avahi-daemon"
29 29
30pkg_postinst_${PN} () { 30pkg_postinst_${PN} () {
31 sed -e '/^hosts:/s/\s*\<mdns\>//' \ 31 sed '
32 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns\5/' \ 32 /^hosts:/ !b
33 -i $D${sysconfdir}/nsswitch.conf 33 /\<mdns\(4\|6\)\?\(_minimal\)\?\>/ b
34 s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g
35 ' -i $D${sysconfdir}/nsswitch.conf
34} 36}
35 37
36pkg_prerm_${PN} () { 38pkg_prerm_${PN} () {
37 sed -e '/^hosts:/s/\s*\<mdns\>//' \ 39 sed '
38 -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \ 40 /^hosts:/ !b
39 -i $D${sysconfdir}/nsswitch.conf 41 s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g
42 ' -i $D${sysconfdir}/nsswitch.conf
40} 43}