diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-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 | 36 |
1 files changed, 36 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..a2712c9b1a --- /dev/null +++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | |||
@@ -0,0 +1,36 @@ | |||
1 | DESCRIPTION = "NSS module for Multicast DNS 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 | RDEPENDS_${PN} = "avahi-daemon" | ||
10 | PR = "r7" | ||
11 | |||
12 | SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz" | ||
13 | |||
14 | SRC_URI[md5sum] = "03938f17646efbb50aa70ba5f99f51d7" | ||
15 | SRC_URI[sha256sum] = "1e683c2e7c3921814706d62fbbd3e9cbf493a75fa00255e0e715508d8134fa6d" | ||
16 | S = "${WORKDIR}/nss-mdns-${PV}" | ||
17 | |||
18 | inherit autotools | ||
19 | |||
20 | # suppress warning, but don't bother with autonamer | ||
21 | LEAD_SONAME = "libnss_mdns.so" | ||
22 | DEBIANNAME_${PN} = "libnss-mdns" | ||
23 | |||
24 | EXTRA_OECONF = "--libdir=${base_libdir} --disable-lynx --enable-avahi" | ||
25 | |||
26 | pkg_postinst_${PN} () { | ||
27 | sed -e '/^hosts:/s/\s*\<mdns4\>//' \ | ||
28 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns4\5/' \ | ||
29 | -i $D/etc/nsswitch.conf | ||
30 | } | ||
31 | |||
32 | pkg_prerm_${PN} () { | ||
33 | sed -e '/^hosts:/s/\s*\<mdns4\>//' \ | ||
34 | -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \ | ||
35 | -i $D/etc/nsswitch.conf | ||
36 | } | ||