homebrew-core/Formula/dropbear.rb

41 lines
1.1 KiB
Ruby
Raw Normal View History

2014-09-26 17:25:50 +00:00
require "formula"
class Dropbear < Formula
homepage "https://matt.ucc.asn.au/dropbear/dropbear.html"
url "https://matt.ucc.asn.au/dropbear/releases/dropbear-2014.66.tar.bz2"
mirror "https://dropbear.nl/mirror/releases/dropbear-2014.66.tar.bz2"
sha1 "793f5f1bb465b3c55e795d607932e8b21c130e95"
2014-09-26 17:25:50 +00:00
bottle do
cellar :any
2014-11-29 14:16:54 +00:00
sha1 "b7fc99831d70610973f7978fdbfdd170c562c93b" => :yosemite
sha1 "1b52833468598772dc72b08defe5bfe8d592f9a1" => :mavericks
sha1 "3665d3c991cc865f6d2de2b7b3268ed6040a2a26" => :mountain_lion
end
head do
url "https://github.com/mkj/dropbear.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
end
2014-09-26 17:25:50 +00:00
def install
if build.head?
system "autoconf"
system "autoheader"
end
system "./configure","--prefix=#{prefix}", "--enable-pam", "--enable-zlib",
"--enable-bundled-libtom", "--sysconfdir=#{etc}/dropbear"
2014-09-26 17:25:50 +00:00
system "make"
ENV.deparallelize
2014-09-26 17:25:50 +00:00
system "make", "install"
end
test do
system "dbclient", "-h"
system "dropbearkey", "-t", "ecdsa", "-f", "testec521", "-s", "521"
assert File.exist?("testec521")
2014-09-26 17:25:50 +00:00
end
end