mksh stable port information

Info2: <<
Package: mksh%type_pkg[-llvm]
Version: 40
Revision: 1
Description: Enhanced version of the Korn shell
Type: -llvm (boolean)
License: OSI-Approved
Maintainer: Andreas Gockel
Distribution: (%type_raw[-llvm] = -llvm) 10.5, (%type_raw[-llvm] = -llvm) 10.6
Replaces: mirbsdksh (<< 29.5-1), mksh, mksh-cur, mksh-llvm
Conflicts: mirbsdksh (<< 29.5-1), mksh, mksh-cur, mksh-llvm
CustomMirror: <<
Primary: http://www.mirbsd.org/MirOS/dist/mir/mksh/
asi-JP: http://pub.allbsd.org/MirOS/dist/mir/mksh/
<<
Source: mirror:custom:mksh-R%v.cpio.gz
SourceRename: mksh-%v-%r.cpio.gz
Source-md5: 395a6c5f39c7e2afd8f6504d90ca90bd
NoSourceDirectory: true
PatchScript: /bin/pax -s ',^/*mksh//*,%f/,' -zf mksh-%v-%r.cpio.gz -r
CompileScript: <<
#!/bin/sh -e -x
cd %f
if [ "%type_raw[-llvm]" == "." ]; then
env /bin/sh ./Build.sh -r -Q -j
elif [ "%type_raw[-llvm]" == "-llvm" ]; then
env CC="$(xcode-select -print-path)/usr/bin/llvm-gcc" /bin/sh ./Build.sh -r -Q -c combine
fi
<<
InstallScript: <<
#!/bin/sh -e -x
cd %f
/usr/bin/install -d -m 755 %i/{bin,share/man/man1,etc/profile.d}
/usr/bin/install -c -s -m 555 mksh %i/bin/mksh
/usr/bin/install -c -m 444 mksh.1 %i/share/man/man1/mksh.1
/usr/bin/install -c -m 444 dot.mkshrc %i/etc/mkshrc
/bin/cat >%i/etc/profile.d/mksh.sh <<'EOF'
#!/bin/sh
case $KSH_VERSION in
*MIRBSD\ KSH*)
test \! -e ${HOME-/nonexistant}/.mkshrc && \
test -e %p/etc/mkshrc && \
. %p/etc/mkshrc
;;
esac
EOF
/bin/cat >%i/etc/profile.d/mksh.csh <<'EOF'
#!/bin/csh
exit 0
EOF
/bin/chmod 755 %i/etc/profile.d/*
<<
DocFiles: %f/dot.mkshrc
ConfFiles: %p/etc/mkshrc
Homepage: http://mirbsd.de/mksh
DescDetail: <<
mksh is the MirBSD enhanced version of the Public Domain Korn
shell (pdksh), a bourne-compatible and loosely POSIX compliant
shell which is largely similar to the original AT&T Korn shell.
It includes bug fixes and feature improvements in order to produce
a modern, robust shell good for interactive and especially script
use; emacs mode command line editing and input/script processing
have been made UTF-8 safe.
<<
DescUsage: <<
Add '%p/bin/mksh' to your /etc/shells so users can use
mksh as their default shell
<<
InfoTest: <<
TestScript: cd %f; ./test.sh -v || exit 2
<<
<<