2016-09-28 14:39:53 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mksh
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-06-12 08:42:09 +02:00
|
|
|
MKSH_VERSION = 55
|
|
|
|
MKSH_SOURCE = mksh-R$(MKSH_VERSION).tgz
|
2016-09-28 14:39:53 +02:00
|
|
|
MKSH_SITE = https://www.mirbsd.org/MirOS/dist/mir/mksh
|
|
|
|
# For MirOS License see https://www.mirbsd.org/TaC-mksh.txt
|
|
|
|
MKSH_LICENSE = MirOS, ISC
|
|
|
|
MKSH_LICENSE_FILES = mksh.1
|
|
|
|
|
|
|
|
define MKSH_BUILD_CMDS
|
|
|
|
cd $(@D) && $(TARGET_MAKE_ENV) \
|
|
|
|
TARGET_OS=Linux $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
sh ./Build.sh
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MKSH_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/mksh $(TARGET_DIR)/bin/mksh
|
|
|
|
endef
|
|
|
|
|
2018-01-19 11:15:07 +01:00
|
|
|
# Add /bin/mksh to /etc/shells otherwise some login tools like dropbear
|
|
|
|
# can reject the user connection. See man shells.
|
|
|
|
define MKSH_ADD_MKSH_TO_SHELLS
|
|
|
|
grep -qsE '^/bin/mksh$$' $(TARGET_DIR)/etc/shells \
|
|
|
|
|| echo "/bin/mksh" >> $(TARGET_DIR)/etc/shells
|
|
|
|
endef
|
|
|
|
MKSH_TARGET_FINALIZE_HOOKS += MKSH_ADD_MKSH_TO_SHELLS
|
|
|
|
|
2016-09-28 14:39:53 +02:00
|
|
|
$(eval $(generic-package))
|