diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
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.bb | 38 |
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 0000000000..5b8c700411 --- /dev/null +++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "Name Service Switch module for Multicast DNS (zeroconf) name resolution" | ||
2 | HOMEPAGE = "http://0pointer.de/lennart/projects/nss-mdns/" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | LICENSE = "LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
7 | |||
8 | DEPENDS = "avahi" | ||
9 | PR = "r7" | ||
10 | |||
11 | SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz" | ||
12 | |||
13 | SRC_URI[md5sum] = "03938f17646efbb50aa70ba5f99f51d7" | ||
14 | SRC_URI[sha256sum] = "1e683c2e7c3921814706d62fbbd3e9cbf493a75fa00255e0e715508d8134fa6d" | ||
15 | |||
16 | S = "${WORKDIR}/nss-mdns-${PV}" | ||
17 | |||
18 | inherit autotools | ||
19 | |||
20 | EXTRA_OECONF = "--libdir=${base_libdir} --disable-lynx --enable-avahi" | ||
21 | |||
22 | # suppress warning, but don't bother with autonamer | ||
23 | LEAD_SONAME = "libnss_mdns.so" | ||
24 | DEBIANNAME_${PN} = "libnss-mdns" | ||
25 | |||
26 | RDEPENDS_${PN} = "avahi-daemon" | ||
27 | |||
28 | pkg_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 | |||
34 | pkg_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 | } | ||