From: Stephan Henningsen Date: Mon, 4 Nov 2019 19:26:19 +0000 (+0100) Subject: package/sudo: remove dist example config X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a73470ab1db8f5ecaedbfde0865b7a900dc0d7e;p=buildroot.git package/sudo: remove dist example config Signed-off-by: Stephan Henningsen Signed-off-by: Thomas Petazzoni --- diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index cf8b63b1db..ab58f308ec 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -64,4 +64,10 @@ define SUDO_PERMISSIONS /usr/bin/sudo f 4755 0 0 - - - - - endef +define SUDO_REMOVE_DIST_EXAMPLES + $(RM) $(TARGET_DIR)/etc/sudoers.dist + rmdir $(TARGET_DIR)/etc/sudoers.d +endef +SUDO_POST_INSTALL_TARGET_HOOKS += SUDO_REMOVE_DIST_EXAMPLES + $(eval $(autotools-package))