[Buildroot] [PATCH 1/1] package/sudo: remove dist example config

Stephan Henningsen stephan at asklandd.dk
Mon Nov 4 19:26:19 UTC 2019


From: Stephan Henningsen <stephan+buildroot at asklandd.dk>

Signed-off-by: Stephan Henningsen <stephan+buildroot at asklandd.dk>
---
 package/sudo/sudo.mk | 6 ++++++
 1 file changed, 6 insertions(+)

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))
-- 
2.17.1



More information about the buildroot mailing list