comment "Shells"
source "package/bash/Config.in"
source "package/dash/Config.in"
+ source "package/mksh/Config.in"
source "package/zsh/Config.in"
comment "Utilities"
source "package/at/Config.in"
--- /dev/null
+config BR2_PACKAGE_MKSH
+ bool "mksh"
+ depends on BR2_USE_MMU # fork()
+ help
+ The MirBSD Korn Shell,
+
+ mksh is a successor of pdksh but not affiliated with the
+ pdksh developers or contributors. mksh is not affiliated
+ with the AT&T Korn Shell, its past or present owners,
+ other than that both attempt to implement the Korn Shell
+ programming language.
+
+ mksh targets users who desire a compact, fast, reliable,
+ secure shell not cut off modern extensions; a shell with
+ Unicode support; an actively developed, current, and
+ portable product; one with developers that listen to
+ their users’ requests and implement them if they
+ actually make sense.
+
+ mksh aims to replace pdksh in all but very rare use cases
+ (such as support for checking the Unix mbox) and in all
+ operating environments
+ (thus including patches from pdksh on e.g. Debian).
+
+ http://mirbsd.de/mksh
--- /dev/null
+# From http://www.mirbsd.org/mksh.htm#build
+md5 43fc3e32963cc1795a299bcec531d770 mksh-R53a.tgz
+# Calculated based on the hash above
+sha256 3bb2453c8cb65abbda24f9bdd8b8371e30a6e1c2f7a0d5474a3efae438639635 mksh-R53a.tgz
--- /dev/null
+################################################################################
+#
+# mksh
+#
+################################################################################
+
+MKSH_VERSION = R53a
+MKSH_SOURCE = mksh-$(MKSH_VERSION).tgz
+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
+
+$(eval $(generic-package))