Allow build of dropbear without wtmp and lastlog support to stop it from generating system log error messages
PATCH 1/1 Allow build of dropbear without wtmp and lastlog support to stop it from generating system log error messages
Signed-off-by Will Moore <[email protected]>
--- package/dropbear/Config.in | 16 ++++++++++++++++ package/dropbear/dropbear.mk | 8 ++++++++ 2 files changed, 24 insertions(+), 0 deletions(-)
package/dropbear/Config.in +16 -0
@@ -23,3 +23,19 @@ config BR2_PACKAGE_DROPBEAR_SMALL Tradeoffs are slower hashes and ciphers, and disabling of the blowfish cipher and zlib. + +config BR2_PACKAGE_DROPBEAR_DISABLE_WTMP + bool "disable logging of dropbear access to wtmp" + depends on BR2_PACKAGE_DROPBEAR + help + Disable logging of dropbear access to wtmp. Buildroot does not generate + wtmp by default and so by disabling dropbear's use of wtmp this + prevents warnings in the system log. + +config BR2_PACKAGE_DROPBEAR_DISABLE_LASTLOG + bool "disable logging of dropbear access to lastlog" + depends on BR2_PACKAGE_DROPBEAR + help + Disable logging of dropbear access to lastlog. Buildroot does not + generate lastlog by default and so by disabling dropbear's use of + lastlog this prevents warnings in the system log.
package/dropbear/dropbear.mk +8 -0
@@ -46,6 +46,14 @@ DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_BUILD_FEATURED DROPBEAR_DEPENDENCIES += zlib endif +ifeq ($(BR2_PACKAGE_DROPBEAR_DISABLE_WTMP),y) +DROPBEAR_CONF_OPT += --disable-wtmp +endif + +ifeq ($(BR2_PACKAGE_DROPBEAR_DISABLE_LASTLOG),y) +DROPBEAR_CONF_OPT += --disable-lastlog +endif + define DROPBEAR_INSTALL_TARGET_CMDS $(INSTALL) -m 755 $(@D)/dropbearmulti $(TARGET_DIR)/usr/sbin/dropbear for f in $(DROPBEAR_TARGET_BINS); do \
Signature · 1 line
1.7.0.4