DEPENDS = "avahi"
RDEPENDS = "avahi-daemon"
-PR = "r0"
+PR = "r1"
SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz"
S = "${WORKDIR}/nss-mdns-${PV}"
EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi"
+# TODO: pattern based configuration update
pkg_postinst () {
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
}
pkg_prerm () {
- cat /etc/nsswitch.conf | grep "hosts:\s*files dns mdns$" > /dev/null && {
+ cat /etc/nsswitch.conf | grep "hosts:\s*files dns mdns4$" > /dev/null && {
cat /etc/nsswitch.conf | sed 's/\(hosts:\s*files dns\) mdns4*/\1/' > /tmp/nsswitch.conf
mv /tmp/nsswitch.conf /etc/nsswitch.conf
}