2018-05-29 10:00:12 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
## 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
|
2021-11-22 23:26:21 +01:00
|
|
|
define NSS_MYHOSTNAME_SET_NSSWITCH
|
2018-05-29 10:00:12 +02:00
|
|
|
$(SED) '/^hosts:/ {/myhostname/! s/files/files myhostname/}' \
|
|
|
|
$(TARGET_DIR)/etc/nsswitch.conf
|
|
|
|
endef
|
|
|
|
|
2021-11-22 23:26:21 +01:00
|
|
|
NSS_MYHOSTNAME_TARGET_FINALIZE_HOOKS += NSS_MYHOSTNAME_SET_NSSWITCH
|
2018-05-29 10:00:12 +02:00
|
|
|
|
|
|
|
$(eval $(autotools-package))
|