diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2005-08-28 16:49:32 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-28 16:49:32 +0000 |
commit | 6e8697905a1285237df33c6ed6bc1e7a864a9270 (patch) | |
tree | 6aee8587b08f80b3ff95732311d3018cda5a556f /packages/libnss-mdns | |
parent | 6e9bdb5645934ee9bc90a63f2a9386403f02676e (diff) |
libnss-mdns: add a .bb file for libnss-mdns, see bug #268
Diffstat (limited to 'packages/libnss-mdns')
-rw-r--r-- | packages/libnss-mdns/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/libnss-mdns/libnss-mdns_0.6.bb | 29 |
2 files changed, 29 insertions, 0 deletions
diff --git a/packages/libnss-mdns/.mtn2git_empty b/packages/libnss-mdns/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/libnss-mdns/.mtn2git_empty 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 + } +} |