From: Ilya Yanok Date: Wed, 27 Apr 2011 22:56:58 +0000 (+0200) Subject: libnss-mdns: add $D to postinst paths X-Git-Tag: 2011-1~1612 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=472c04ed1a8715243de0c5430883bc23d60aca19;p=openembedded-core.git libnss-mdns: add $D to postinst paths Post installation script can be called during image creation so paths should relative to $D. Signed-off-by: Ilya Yanok Signed-off-by: Saul Wold --- 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 b04b20abee..651a2407b8 100644 --- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb +++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb @@ -26,9 +26,9 @@ EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi" # TODO: pattern based configuration update pkg_postinst_${PN} () { - cat /etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && { - cat /etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf - mv /tmp/nsswitch.conf /etc/nsswitch.conf + cat $D/etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && { + cat $D/etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf + mv /tmp/nsswitch.conf $D/etc/nsswitch.conf } }