2010-10-02 14:59:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Putty < Formula
|
2010-10-02 14:59:34 +00:00
|
|
|
homepage 'http://www.chiark.greenend.org.uk/~sgtatham/putty/'
|
2012-03-11 21:51:23 +00:00
|
|
|
url 'http://the.earth.li/~sgtatham/putty/0.61/putty-0.61.tar.gz'
|
2011-07-13 14:48:25 +00:00
|
|
|
md5 'db0e37f6b82ea62f0ace87927d29b2a4'
|
2010-10-02 14:59:34 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# use the unix build to make all PuTTY command line tools
|
2012-03-11 21:51:23 +00:00
|
|
|
cd "unix" do
|
|
|
|
# disable GTK upon configure
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-gtktest",
|
|
|
|
"--with-gtk-prefix=/dev/null"
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "VER=-DRELEASE=#{version}", "all-cli"
|
2012-03-11 21:51:23 +00:00
|
|
|
# install manually
|
|
|
|
bin.install %w{ plink pscp psftp puttygen }
|
|
|
|
end
|
|
|
|
cd "doc" do
|
|
|
|
man1.install %w{ plink.1 pscp.1 psftp.1 puttygen.1 }
|
|
|
|
end
|
2010-10-02 14:59:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
"This formula did not build the Mac OS X GUI PuTTY.app."
|
|
|
|
end
|
|
|
|
end
|