dropbear 201466

Version bump. Added HEAD. Tweaked test.

Closes Homebrew/homebrew#34540.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Dominyk Tiller 2014-11-29 04:18:37 +00:00 committed by Mike McQuaid
parent c62068c02a
commit 4ac0034cf0

View file

@ -2,8 +2,9 @@ require "formula"
class Dropbear < Formula
homepage "https://matt.ucc.asn.au/dropbear/dropbear.html"
url "https://matt.ucc.asn.au/dropbear/dropbear-2014.65.tar.bz2"
sha1 "a7b04ff3c27059477ecdd8dccef7d43f644abe46"
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"
bottle do
cellar :any
@ -12,15 +13,28 @@ class Dropbear < Formula
sha1 "6cb51ab0dadbe813aacd66251c84507a9c5006d1" => :lion
end
head do
url "https://github.com/mkj/dropbear.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
end
def install
system "./configure","--prefix=#{prefix}", "--enable-pam", "--enable-zlib"
if build.head?
system "autoconf"
system "autoheader"
end
system "./configure","--prefix=#{prefix}", "--enable-pam", "--enable-zlib",
"--enable-bundled-libtom", "--sysconfdir=#{etc}/dropbear"
system "make"
ENV.deparallelize
system "make", "install"
end
test do
system "dbclient", "-h"
system "dropbearkey", "-t", "rsa", "-f", "id_rsa"
assert File.exist?("id_rsa")
system "dropbearkey", "-t", "ecdsa", "-f", "testec521", "-s", "521"
assert File.exist?("testec521")
end
end