dropbear 2015.67

Closes Homebrew/homebrew#38838.

Signed-off-by: Brett Koonce <koonce@gmail.com>
This commit is contained in:
Alex Dunn 2015-04-19 16:38:45 -07:00 committed by Brett Koonce
parent 6e3798822f
commit 43a3f97d7d

View file

@ -1,10 +1,7 @@
require "formula"
class Dropbear < Formula class Dropbear < Formula
homepage "https://matt.ucc.asn.au/dropbear/dropbear.html" homepage "https://matt.ucc.asn.au/dropbear/dropbear.html"
url "https://matt.ucc.asn.au/dropbear/releases/dropbear-2014.66.tar.bz2" url "https://matt.ucc.asn.au/dropbear/releases/dropbear-2015.67.tar.bz2"
mirror "https://dropbear.nl/mirror/releases/dropbear-2014.66.tar.bz2" sha256 "7e690594645dfde5787065c78a5d2e4d15e288babfa06e140197ce05f698c8e5"
sha1 "793f5f1bb465b3c55e795d607932e8b21c130e95"
bottle do bottle do
cellar :any cellar :any
@ -21,20 +18,25 @@ class Dropbear < Formula
end end
def install def install
ENV.deparallelize
if build.head? if build.head?
system "autoconf" system "autoconf"
system "autoheader" system "autoheader"
end end
system "./configure","--prefix=#{prefix}", "--enable-pam", "--enable-zlib", system "./configure", "--prefix=#{prefix}",
"--enable-bundled-libtom", "--sysconfdir=#{etc}/dropbear" "--enable-pam",
"--enable-zlib",
"--enable-bundled-libtom",
"--sysconfdir=#{etc}/dropbear"
system "make" system "make"
ENV.deparallelize
system "make", "install" system "make", "install"
end end
test do test do
system "dbclient", "-h" system "dbclient", "-h"
system "dropbearkey", "-t", "ecdsa", "-f", "testec521", "-s", "521" system "dropbearkey", "-t", "ecdsa",
assert File.exist?("testec521") "-f", testpath/"testec521", "-s", "521"
File.exist? testpath/"testec521"
end end
end end