| git.druid.rocks | index | druid520 | ports | ports/ | shells/ | mksh/ | add.sh |
ports/shells/mksh/add.sh
set -e
git clone https://github.com/MirBSD/mksh.git
cd mksh
sh Build.sh
install -c -s -m 555 mksh $MP_PREFIX/bin/mksh
install -c -m 444 mksh.1 $MP_PREFIX/share/man/man1/mksh.1
# %shell: no port in this tree currently manages the live /bin/sh
# symlink except busybox (as one of its own applet-symlink targets) --
# every OTHER shell provider (dash, oksh, rc) just installs its own
# binary and leaves /bin/sh alone, meaning %shell's own tag resolution
# had no actual effect on what /bin/sh points to. this pins /bin/sh to
# mksh specifically whenever mksh itself is installed, matching what a
# %shell provider should actually do -- see this container's own
# TARGET_shell pin for why mksh is the one making that call here.
ln -sf mksh $MP_PREFIX/bin/sh