From 83eeee84e1dae273851ba8dcf01e5f0fcfccbb1a Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 22 Nov 2021 23:26:21 +0100 Subject: [PATCH] package/nss-myhostname: rename MYHOSTNAME_SET_NSSWITCH Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/nss-myhostname/nss-myhostname.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/nss-myhostname/nss-myhostname.mk b/package/nss-myhostname/nss-myhostname.mk index 08683a542b..b1bdca8ef1 100644 --- a/package/nss-myhostname/nss-myhostname.mk +++ b/package/nss-myhostname/nss-myhostname.mk @@ -10,11 +10,11 @@ NSS_MYHOSTNAME_LICENSE = LGPL-2.1+ NSS_MYHOSTNAME_LICENSE_FILES = LICENSE # add myhostname after files if missing -define MYHOSTNAME_SET_NSSWITCH +define NSS_MYHOSTNAME_SET_NSSWITCH $(SED) '/^hosts:/ {/myhostname/! s/files/files myhostname/}' \ $(TARGET_DIR)/etc/nsswitch.conf endef -NSS_MYHOSTNAME_TARGET_FINALIZE_HOOKS += MYHOSTNAME_SET_NSSWITCH +NSS_MYHOSTNAME_TARGET_FINALIZE_HOOKS += NSS_MYHOSTNAME_SET_NSSWITCH $(eval $(autotools-package))