2006-05-09 17:45:29 +00:00
|
|
|
DESCRIPTION = "NSS module for Multicast DNS name resolution"
|
|
|
|
HOMEPAGE = "http://0pointer.de/lennart/projects/nss-mdns/"
|
|
|
|
SECTION = "libs"
|
|
|
|
|
2010-07-01 07:09:30 +00:00
|
|
|
LICENSE = "LGPLv2.1+"
|
2010-07-08 07:46:59 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
2010-07-01 07:09:30 +00:00
|
|
|
|
2010-07-08 07:46:59 +00:00
|
|
|
DEPENDS = "avahi"
|
2010-12-23 19:23:33 +00:00
|
|
|
RDEPENDS_${PN} = "avahi-daemon"
|
2011-11-14 13:06:51 +00:00
|
|
|
PR = "r4"
|
2006-05-09 17:45:29 +00:00
|
|
|
|
|
|
|
SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
|
|
|
SRC_URI[md5sum] = "03938f17646efbb50aa70ba5f99f51d7"
|
|
|
|
SRC_URI[sha256sum] = "1e683c2e7c3921814706d62fbbd3e9cbf493a75fa00255e0e715508d8134fa6d"
|
2010-07-08 07:46:59 +00:00
|
|
|
S = "${WORKDIR}/nss-mdns-${PV}"
|
2006-05-09 17:45:29 +00:00
|
|
|
|
|
|
|
inherit autotools
|
|
|
|
|
2010-07-08 07:46:59 +00:00
|
|
|
# suppress warning, but don't bother with autonamer
|
|
|
|
LEAD_SONAME = "libnss_mdns.so"
|
|
|
|
DEBIANNAME_${PN} = "libnss-mdns"
|
|
|
|
|
2011-08-03 15:28:48 +00:00
|
|
|
EXTRA_OECONF = "--libdir=${base_libdir} --disable-lynx --enable-avahi"
|
2010-07-08 07:46:59 +00:00
|
|
|
|
2010-11-09 08:01:43 +00:00
|
|
|
# TODO: pattern based configuration update
|
2011-02-10 00:13:50 +00:00
|
|
|
pkg_postinst_${PN} () {
|
2011-04-27 22:56:58 +00:00
|
|
|
cat $D/etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && {
|
2011-11-14 13:06:51 +00:00
|
|
|
sed -i 's/hosts:\s*files dns/& mdns4/' $D/etc/nsswitch.conf
|
2006-05-09 17:45:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-02-10 00:13:50 +00:00
|
|
|
pkg_prerm_${PN} () {
|
2010-11-09 08:01:43 +00:00
|
|
|
cat /etc/nsswitch.conf | grep "hosts:\s*files dns mdns4$" > /dev/null && {
|
2011-11-14 13:06:51 +00:00
|
|
|
sed -i 's/\(hosts:\s*files dns\) mdns4*/\1/' /etc/nsswitch.conf
|
2006-05-09 17:45:29 +00:00
|
|
|
}
|
|
|
|
}
|