mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 15:49:32 +02:00
libnss-mdns: replace hardcoded /etc with ${sysconfdir}
(From OE-Core rev: fd408c49fffbc63dc79954420a5cfa46809bd5ca) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
aa460d8cc1
commit
68df093c55
@@ -28,11 +28,11 @@ RDEPENDS_${PN} = "avahi-daemon"
|
|||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
sed -e '/^hosts:/s/\s*\<mdns\>//' \
|
sed -e '/^hosts:/s/\s*\<mdns\>//' \
|
||||||
-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns\5/' \
|
-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} () {
|
pkg_prerm_${PN} () {
|
||||||
sed -e '/^hosts:/s/\s*\<mdns\>//' \
|
sed -e '/^hosts:/s/\s*\<mdns\>//' \
|
||||||
-e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \
|
-e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \
|
||||||
-i $D/etc/nsswitch.conf
|
-i $D${sysconfdir}/nsswitch.conf
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user