summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb')
-rw-r--r--meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb38
1 files changed, 38 insertions, 0 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
new file mode 100644
index 0000000..5b8c700
--- /dev/null
+++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
@@ -0,0 +1,38 @@
1SUMMARY = "Name Service Switch module for Multicast DNS (zeroconf) name resolution"
2HOMEPAGE = "http://0pointer.de/lennart/projects/nss-mdns/"
3SECTION = "libs"
4
5LICENSE = "LGPLv2.1+"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
7
8DEPENDS = "avahi"
9PR = "r7"
10
11SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz"
12
13SRC_URI[md5sum] = "03938f17646efbb50aa70ba5f99f51d7"
14SRC_URI[sha256sum] = "1e683c2e7c3921814706d62fbbd3e9cbf493a75fa00255e0e715508d8134fa6d"
15
16S = "${WORKDIR}/nss-mdns-${PV}"
17
18inherit autotools
19
20EXTRA_OECONF = "--libdir=${base_libdir} --disable-lynx --enable-avahi"
21
22# suppress warning, but don't bother with autonamer
23LEAD_SONAME = "libnss_mdns.so"
24DEBIANNAME_${PN} = "libnss-mdns"
25
26RDEPENDS_${PN} = "avahi-daemon"
27
28pkg_postinst_${PN} () {
29 sed -e '/^hosts:/s/\s*\<mdns4\>//' \
30 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns4\5/' \
31 -i $D/etc/nsswitch.conf
32}
33
34pkg_prerm_${PN} () {
35 sed -e '/^hosts:/s/\s*\<mdns4\>//' \
36 -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \
37 -i $D/etc/nsswitch.conf
38}