java-native.bbclass: remove do_stage function, because of NATIVE_INSTALL_WORKS =...
[openembedded.git] / recipes / libnss-mdns / libnss-mdns_0.9.bb
blob1040f97dbcf976eca0ebab58a2a3b65aa35223e9
1 DESCRIPTION = "NSS module for Multicast DNS name resolution"
2 HOMEPAGE = "http://0pointer.de/lennart/projects/nss-mdns/"
3 LICENSE = "GPL"
4 SECTION = "libs"
5 PRIORITY = "optional"
7 RRECOMMENDS_${PN} = "zeroconf"
8 PR = "r0"
10 EXTRA_OECONF = "--libdir=/lib"
11 S = "${WORKDIR}/nss-mdns-${PV}"
13 SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz"
15 inherit autotools
17 pkg_postinst () {
18 # can't do this offline
19 if [ "x$D" != "x" ]; then
20 exit 1
22 cat /etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && {
23 cat /etc/nsswitch.conf | sed 's/\(hosts:\s*files \)dns/\1mdns4_minimal [NOTFOUND=return] dns mdns4/' > /tmp/nsswitch.conf
24 mv /tmp/nsswitch.conf /etc/nsswitch.conf
28 pkg_prerm () {
29 cat /etc/nsswitch.conf | grep "hosts:\s*files dns mdns$" > /dev/null && {
30 cat /etc/nsswitch.conf | sed 's/\(hosts:\s*files \)mdns4_minimal [NOTFOUND=return] dns mdns4/\1dns/' > /tmp/nsswitch.conf
31 mv /tmp/nsswitch.conf /etc/nsswitch.conf
35 SRC_URI[md5sum] = "bc72f5b19cc6ce8cacde448236b30868"
36 SRC_URI[sha256sum] = "0bf226bb3a1716e6eb97355e08a7ffcf09aadfb91ba41ccef2ef1ba7a01719a2"