From fd408c49fffbc63dc79954420a5cfa46809bd5ca Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 8 Jul 2014 16:35:27 +0200 Subject: libnss-mdns: replace hardcoded /etc with ${sysconfdir} Signed-off-by: Koen Kooi Signed-off-by: Saul Wold --- meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 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 df7d196e31..0b936ef092 100644 --- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb +++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb @@ -28,11 +28,11 @@ RDEPENDS_${PN} = "avahi-daemon" pkg_postinst_${PN} () { sed -e '/^hosts:/s/\s*\//' \ -e 's/\(^hosts:.*\)\(\\)\(.*\)\(\\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns\5/' \ - -i $D/etc/nsswitch.conf + -i $D${sysconfdir}/nsswitch.conf } pkg_prerm_${PN} () { sed -e '/^hosts:/s/\s*\//' \ -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \ - -i $D/etc/nsswitch.conf + -i $D${sysconfdir}/nsswitch.conf } -- cgit v1.2.3