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
|
|
|
url 'http://the.earth.li/~sgtatham/putty/latest/putty-0.60.tar.gz'
|
|
|
|
homepage 'http://www.chiark.greenend.org.uk/~sgtatham/putty/'
|
|
|
|
md5 '07e65fd98b16d115ae38a180bfb242e2'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# use the unix build to make all PuTTY command line tools
|
|
|
|
cd "unix"
|
|
|
|
# disable GTK upon configure
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-gtktest", "--with-gtk-prefix=/dev/null"
|
|
|
|
system "make VER=-DRELEASE=#{version} all-cli"
|
|
|
|
# install manually
|
|
|
|
bin.install %w{ plink pscp psftp puttygen }
|
|
|
|
cd "../doc"
|
|
|
|
man1.install %w{ plink.1 pscp.1 psftp.1 puttygen.1 }
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
"This formula did not build the Mac OS X GUI PuTTY.app."
|
|
|
|
end
|
|
|
|
end
|