Patchwork [2/2] libnss-mdns: replace hardcoded /etc with ${sysconfdir}

login
register
mail settings
Submitter Koen Kooi
Date July 8, 2014, 2:35 p.m.
Message ID <1404830127-12742-2-git-send-email-koen@dominion.thruhere.net>
Download mbox | patch
Permalink /patch/75181/
State Accepted
Commit 68df093c55fd0ef1fddbff99442dd9b35f598dfc
Headers show

Comments

Koen Kooi - July 8, 2014, 2:35 p.m.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

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 df7d196..0b936ef 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
 }