summaryrefslogtreecommitdiffstats
path: root/package/nss-mdns
diff options
context:
space:
mode:
authorMarek Belisko <marek.belisko@gmail.com>2012-06-18 11:32:51 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-23 22:50:44 +0200
commit28943cf00545e9c923364bfca4af044faaf6fc53 (patch)
tree25fa434b9ded2599a95a6eb61e15516a01d12a17 /package/nss-mdns
parent8ac6a2f94c35353f8fbf0906e232dc568bae3212 (diff)
downloadbuildroot-novena-28943cf00545e9c923364bfca4af044faaf6fc53.tar.gz
buildroot-novena-28943cf00545e9c923364bfca4af044faaf6fc53.zip
Add package nss-mdns.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/nss-mdns')
-rw-r--r--package/nss-mdns/Config.in13
-rw-r--r--package/nss-mdns/nss-mdns.mk15
-rw-r--r--package/nss-mdns/nsswitch.conf15
3 files changed, 43 insertions, 0 deletions
diff --git a/package/nss-mdns/Config.in b/package/nss-mdns/Config.in
new file mode 100644
index 000000000..485cfcd08
--- /dev/null
+++ b/package/nss-mdns/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_NSS_MDNS
+ bool "nss-mdns"
+ depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || BR2_TOOLCHAIN_CTNG_eglibc || BR2_TOOLCHAIN_CTNG_glibc
+ depends on BR2_PACKAGE_AVAHI_DAEMON
+ help
+ nss-mdns is a plugin for the GNU Name Service Switch (NSS)
+ functionality of the GNU C Library (glibc) providing host
+ name resolution via Multicast DNS (aka Zeroconf, aka Apple
+ Rendezvous, aka Apple Bonjour), effectively allowing name
+ resolution by common Unix/Linux programs in the ad-hoc
+ mDNS domain .local.
+
+ http://0pointer.de/lennart/projects/nss-mdns/
diff --git a/package/nss-mdns/nss-mdns.mk b/package/nss-mdns/nss-mdns.mk
new file mode 100644
index 000000000..8f7d9a9a8
--- /dev/null
+++ b/package/nss-mdns/nss-mdns.mk
@@ -0,0 +1,15 @@
+#############################################################
+#
+# nss_mdns
+#
+#############################################################
+NSS_MDNS_VERSION=0.10
+NSS_MDNS_SITE=http://0pointer.de/lennart/projects/nss-mdns
+
+define NSS_MDNS_INSTALL_CONFIG
+ $(INSTALL) -D -m 0664 package/nss-mdns/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf
+endef
+
+NSS_MDNS_POST_INSTALL_TARGET_HOOKS += NSS_MDNS_INSTALL_CONFIG
+
+$(eval $(call AUTOTARGETS))
diff --git a/package/nss-mdns/nsswitch.conf b/package/nss-mdns/nsswitch.conf
new file mode 100644
index 000000000..94174e03e
--- /dev/null
+++ b/package/nss-mdns/nsswitch.conf
@@ -0,0 +1,15 @@
+# /etc/nsswitch.conf
+
+passwd: compat
+group: compat
+shadow: compat
+
+hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
+networks: files
+
+protocols: db files
+services: db files
+ethers: db files
+rpc: db files
+
+netgroup: nis