2014-09-26 17:25:50 +00:00
|
|
|
class Dropbear < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Small SSH server/client for POSIX-based system"
|
2014-09-26 17:25:50 +00:00
|
|
|
homepage "https://matt.ucc.asn.au/dropbear/dropbear.html"
|
2015-08-23 00:28:39 +00:00
|
|
|
url "https://matt.ucc.asn.au/dropbear/releases/dropbear-2015.68.tar.bz2"
|
|
|
|
mirror "https://dropbear.nl/mirror/dropbear-2015.68.tar.bz2"
|
|
|
|
sha256 "55ea7c1e904ffe4b1cdbe1addca8291a2533d7d285fd22ac33608e9502a62446"
|
2014-09-26 17:25:50 +00:00
|
|
|
|
2014-09-28 08:16:25 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-23 00:46:42 +00:00
|
|
|
sha256 "baae48ce3b4af952145539fe12ad0ab814a6113d477464b8dcf4f020185532d6" => :yosemite
|
|
|
|
sha256 "22d15c60481e17846597b5b3f1f4a027227a17542e4bde27079a7b4df4e27c02" => :mavericks
|
|
|
|
sha256 "62ad63d8f6acf1a8ca75705b1beee59fb06900ef3e4a8a2ccb4752b4c9877ed7" => :mountain_lion
|
2014-09-28 08:16:25 +00:00
|
|
|
end
|
|
|
|
|
2014-11-29 04:18:37 +00:00
|
|
|
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
|
2015-04-19 23:38:45 +00:00
|
|
|
ENV.deparallelize
|
|
|
|
|
2014-11-29 04:18:37 +00:00
|
|
|
if build.head?
|
|
|
|
system "autoconf"
|
|
|
|
system "autoheader"
|
|
|
|
end
|
2015-04-19 23:38:45 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--enable-pam",
|
|
|
|
"--enable-zlib",
|
|
|
|
"--enable-bundled-libtom",
|
|
|
|
"--sysconfdir=#{etc}/dropbear"
|
2014-09-26 17:25:50 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-04-19 23:38:45 +00:00
|
|
|
system "dbclient", "-h"
|
|
|
|
system "dropbearkey", "-t", "ecdsa",
|
|
|
|
"-f", testpath/"testec521", "-s", "521"
|
|
|
|
File.exist? testpath/"testec521"
|
2014-09-26 17:25:50 +00:00
|
|
|
end
|
|
|
|
end
|