aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mksh.rb
blob: cb1d3a72daab8ca79759ac806706ada196f43339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Mksh < Formula
  url 'https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R40d.cpio.gz'
  homepage 'https://www.mirbsd.org/mksh.htm'
  md5 'c6428401103367730a95b99284bf47dc'
  version '0.40d'

  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