2011-11-28 17:40:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mksh < Formula
|
2012-01-07 03:49:25 +00:00
|
|
|
url 'https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R40d.cpio.gz'
|
2011-11-28 17:40:42 +00:00
|
|
|
homepage 'https://www.mirbsd.org/mksh.htm'
|
2012-01-07 03:49:25 +00:00
|
|
|
md5 'c6428401103367730a95b99284bf47dc'
|
|
|
|
version '0.40d'
|
2011-11-28 17:40:42 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system 'sh ./Build.sh -combine'
|
|
|
|
bin.install 'mksh'
|
|
|
|
man1.install 'mksh.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To allow using mksh as a login shell, run this as root:
|
|
|
|
echo #{HOMEBREW_PREFIX}/bin/mksh >> /etc/shells
|
|
|
|
Then, any user may run
|
|
|
|
chsh
|
|
|
|
to change their shell.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|