2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-18 13:32:51 +02:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# nss-mdns
|
2012-06-18 13:32:51 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-07-20 08:52:43 +02:00
|
|
|
NSS_MDNS_VERSION = 0.10
|
|
|
|
NSS_MDNS_SITE = http://0pointer.de/lennart/projects/nss-mdns
|
2017-03-30 15:43:34 +02:00
|
|
|
NSS_MDNS_LICENSE = LGPL-2.1+
|
2014-06-26 21:21:06 +02:00
|
|
|
NSS_MDNS_LICENSE_FILES = LICENSE
|
2013-07-18 23:24:13 +02:00
|
|
|
|
2012-06-18 13:32:51 +02:00
|
|
|
define NSS_MDNS_INSTALL_CONFIG
|
2014-10-31 11:31:05 +01:00
|
|
|
if [ ! -f "$(TARGET_DIR)/etc/nsswitch.conf" ]; then \
|
|
|
|
$(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf ; \
|
|
|
|
fi
|
2013-07-18 23:24:14 +02:00
|
|
|
sed -r -i -e 's/^(hosts:[[:space:]]+).*/\1files mdns4_minimal [NOTFOUND=return] dns mdns4/' \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(TARGET_DIR)/etc/nsswitch.conf
|
2012-06-18 13:32:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
NSS_MDNS_POST_INSTALL_TARGET_HOOKS += NSS_MDNS_INSTALL_CONFIG
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|