kumquat-buildroot/package/nss-myhostname/nss-myhostname.mk
Fabrice Fontaine 83eeee84e1 package/nss-myhostname: rename MYHOSTNAME_SET_NSSWITCH
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2021-11-25 20:49:51 +01:00

21 lines
640 B
Makefile

################################################################################
#
## nss-myhostname
#
################################################################################
NSS_MYHOSTNAME_VERSION = 0.3
NSS_MYHOSTNAME_SITE = http://0pointer.de/lennart/projects/nss-myhostname
NSS_MYHOSTNAME_LICENSE = LGPL-2.1+
NSS_MYHOSTNAME_LICENSE_FILES = LICENSE
# add myhostname after files if missing
define NSS_MYHOSTNAME_SET_NSSWITCH
$(SED) '/^hosts:/ {/myhostname/! s/files/files myhostname/}' \
$(TARGET_DIR)/etc/nsswitch.conf
endef
NSS_MYHOSTNAME_TARGET_FINALIZE_HOOKS += NSS_MYHOSTNAME_SET_NSSWITCH
$(eval $(autotools-package))