mksh: new port

This commit is contained in:
emmett1
2019-06-03 00:50:51 +08:00
parent 0b85cbbad1
commit 84feedcc7c
2 changed files with 25 additions and 0 deletions

6
core/mksh/install Normal file
View File

@@ -0,0 +1,6 @@
case $1 in
post-install|post-upgrade)
grep -qe '^/bin/mksh$' etc/shells || echo '/bin/mksh' >> etc/shells ;;
post-remove)
sed -i -r '/^\/bin\/mksh$/d' etc/shells ;;
esac

19
core/mksh/spkgbuild Normal file
View File

@@ -0,0 +1,19 @@
# description : The MirBSD Korn Shell
# homepage : http://www.mirbsd.org/mksh.htm
name=mksh
version=R57
release=1
backup=(etc/mkshrc)
source=(http://www.mirbsd.org/MirOS/dist/mir/mksh/$name-$version.tgz)
md5sum=(4d2686535252ea6a57bdec531498239a)
build() {
cd $name
sh Build.sh -r
install -D -m 0755 $name $PKG/bin/$name
install -D -m 0644 $name.1 $PKG/usr/share/man/man1/$name.1
install -D -m 0644 dot.${name}rc $PKG/etc/${name}rc
}