b3e6a7a339
Closes Homebrew/homebrew#29109. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
20 lines
569 B
Ruby
20 lines
569 B
Ruby
require 'formula'
|
|
|
|
class Mksh < Formula
|
|
homepage 'https://mirbsd.org/mksh.htm'
|
|
url 'http://mirbsd.org/MirOS/dist/mir/mksh/mksh-R49.tgz'
|
|
sha1 '06b9d0162d1f91ff28d3fa66533e67edb168694d'
|
|
|
|
def install
|
|
system "sh", "./Build.sh", "-r", "-c", (ENV.compiler == :clang ? "lto" : "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
|