janus-gateway: make echo test plugin optional
[buildroot-gz.git] / package / nss-mdns / nss-mdns.mk
blob9ec9c1af43b4111ea469fdfba7ed6e2f312693d5
1 ################################################################################
3 # nss-mdns
5 ################################################################################
7 NSS_MDNS_VERSION = 0.10
8 NSS_MDNS_SITE = http://0pointer.de/lennart/projects/nss-mdns
9 NSS_MDNS_LICENSE = LGPLv2.1+
10 NSS_MDNS_LICENSE_FILES = LICENSE
12 define NSS_MDNS_INSTALL_CONFIG
13 if [ ! -f "$(TARGET_DIR)/etc/nsswitch.conf" ]; then \
14 $(INSTALL) -D -m 0644 package/glibc/nsswitch.conf $(TARGET_DIR)/etc/nsswitch.conf ; \
16 sed -r -i -e 's/^(hosts:[[:space:]]+).*/\1files mdns4_minimal [NOTFOUND=return] dns mdns4/' \
17 $(TARGET_DIR)/etc/nsswitch.conf
18 endef
20 NSS_MDNS_POST_INSTALL_TARGET_HOOKS += NSS_MDNS_INSTALL_CONFIG
22 $(eval $(autotools-package))