mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-28 02:20:05 +00:00
mksh: new port
This commit is contained in:
6
core/mksh/install
Normal file
6
core/mksh/install
Normal 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
19
core/mksh/spkgbuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user