From 6e8697905a1285237df33c6ed6bc1e7a864a9270 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Sun, 28 Aug 2005 16:49:32 +0000 Subject: libnss-mdns: add a .bb file for libnss-mdns, see bug #268 --- packages/libnss-mdns/.mtn2git_empty | 0 packages/libnss-mdns/libnss-mdns_0.6.bb | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 packages/libnss-mdns/.mtn2git_empty create mode 100644 packages/libnss-mdns/libnss-mdns_0.6.bb (limited to 'packages/libnss-mdns') diff --git a/packages/libnss-mdns/.mtn2git_empty b/packages/libnss-mdns/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/libnss-mdns/libnss-mdns_0.6.bb b/packages/libnss-mdns/libnss-mdns_0.6.bb new file mode 100644 index 0000000000..79ab04cba9 --- /dev/null +++ b/packages/libnss-mdns/libnss-mdns_0.6.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "NSS module for Multicast DNS name resolution" +HOMEPAGE = "http://0pointer.de/lennart/projects/nss-mdns/" +LICENSE = "GPL" +SECTION = "libs" +PRIORITY = "optional" + +RRECOMMENDS_${PN} = "avahi-daemon zeroconf" +PR = "r0" + +EXTRA_OECONF = "--libdir=/lib" +S = "${WORKDIR}/nss-mdns-${PV}" + +SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz" + +inherit autotools + +pkg_postinst () { + cat /etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && { + cat /etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns/' > /tmp/nsswitch.conf + mv /tmp/nsswitch.conf /etc/nsswitch.conf + } +} + +pkg_prerm () { + cat /etc/nsswitch.conf | grep "hosts:\s*files dns mdns$" > /dev/null && { + cat /etc/nsswitch.conf | sed 's/\(hosts:\s*files dns\) mdns/\1/' > /tmp/nsswitch.conf + mv /tmp/nsswitch.conf /etc/nsswitch.conf + } +} -- cgit v1.2.3