From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 1/2] mksh: new package
Date: Wed, 28 Sep 2016 14:39:53 +0200 [thread overview]
Message-ID: <20160928123952.GA27218@waldemar-brodkorb.de> (raw)
The MirOS Korn Shell is a quite complete posix shell implementation,
is rather small and supports vi mode properly.
Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
v1 -> v2:
- split off system shell patch, suggested by Thomas Petazzoni
- wrap description to 72, suggested by Thomas Petazzoni
- simplify building in one step, suggested by Thorsten Glaser
- remove License file, add URL for MirOS License
An example mkshrc can be added later.
---
package/Config.in | 1 +
package/mksh/Config.in | 25 +++++++++++++++++++++++++
package/mksh/mksh.hash | 4 ++++
package/mksh/mksh.mk | 26 ++++++++++++++++++++++++++
4 files changed, 56 insertions(+)
create mode 100644 package/mksh/Config.in
create mode 100644 package/mksh/mksh.hash
create mode 100644 package/mksh/mksh.mk
diff --git a/package/Config.in b/package/Config.in
index fe3ac2c..ef82b2e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1655,6 +1655,7 @@ menu "Shell and utilities"
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"
diff --git a/package/mksh/Config.in b/package/mksh/Config.in
new file mode 100644
index 0000000..55d1cc1
--- /dev/null
+++ b/package/mksh/Config.in
@@ -0,0 +1,25 @@
+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
diff --git a/package/mksh/mksh.hash b/package/mksh/mksh.hash
new file mode 100644
index 0000000..d95001c
--- /dev/null
+++ b/package/mksh/mksh.hash
@@ -0,0 +1,4 @@
+# From http://www.mirbsd.org/mksh.htm#build
+md5 43fc3e32963cc1795a299bcec531d770 mksh-R53a.tgz
+# Calculated based on the hash above
+sha256 3bb2453c8cb65abbda24f9bdd8b8371e30a6e1c2f7a0d5474a3efae438639635 mksh-R53a.tgz
diff --git a/package/mksh/mksh.mk b/package/mksh/mksh.mk
new file mode 100644
index 0000000..916c15e
--- /dev/null
+++ b/package/mksh/mksh.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# 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
+
+define MKSH_BUILD_CMDS
+ cd $(@D) && $(TARGET_MAKE_ENV) \
+ CPPFLAGS="$(TARGET_CPPFLAGS)" \
+ CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+ LD="$(TARGET_LD)" LDFLAGS="$(TARGET_LDFLAGS)" \
+ TARGET_OS=Linux \
+ sh ./Build.sh
+endef
+
+define MKSH_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 $(@D)/mksh $(TARGET_DIR)/bin/mksh
+endef
+
+$(eval $(generic-package))
--
2.1.4
next reply other threads:[~2016-09-28 12:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 12:39 Waldemar Brodkorb [this message]
2016-10-01 21:11 ` [Buildroot] [PATCHv2 1/2] mksh: new package Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160928123952.GA27218@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox