9ec9c1af43b4111ea469fdfba7ed6e2f312693d5
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / nss-mdns / nss-mdns.mk
1 ################################################################################
2 #
3 # nss-mdns
4 #
5 ################################################################################
6
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
11
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 ; \
15         fi
16         sed -r -i -e 's/^(hosts:[[:space:]]+).*/\1files mdns4_minimal [NOTFOUND=return] dns mdns4/' \
17                 $(TARGET_DIR)/etc/nsswitch.conf
18 endef
19
20 NSS_MDNS_POST_INSTALL_TARGET_HOOKS += NSS_MDNS_INSTALL_CONFIG
21
22 $(eval $(autotools-package))