aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2014-07-08 16:35:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-10 17:37:40 +0100
commitfd408c49fffbc63dc79954420a5cfa46809bd5ca (patch)
tree1179d2f706ed03fcad6508d25f608201e3da1c33
parentfdb5aaabea9e32d687c055ca25506dcffbb37867 (diff)
downloadopenembedded-core-contrib-fd408c49fffbc63dc79954420a5cfa46809bd5ca.tar.gz
openembedded-core-contrib-fd408c49fffbc63dc79954420a5cfa46809bd5ca.tar.bz2
openembedded-core-contrib-fd408c49fffbc63dc79954420a5cfa46809bd5ca.zip
libnss-mdns: replace hardcoded /etc with ${sysconfdir}
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb4
1 files 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 df7d196e311..0b936ef092d 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*\<mdns\>//' \
-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\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*\<mdns\>//' \
-e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \
- -i $D/etc/nsswitch.conf
+ -i $D${sysconfdir}/nsswitch.conf
}