homebrew-core/Formula/dropbear.rb

45 lines
1.4 KiB
Ruby
Raw Normal View History

2014-09-26 17:25:50 +00:00
class Dropbear < Formula
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"
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
bottle do
cellar :any
2015-08-23 00:46:42 +00:00
sha256 "baae48ce3b4af952145539fe12ad0ab814a6113d477464b8dcf4f020185532d6" => :yosemite
sha256 "22d15c60481e17846597b5b3f1f4a027227a17542e4bde27079a7b4df4e27c02" => :mavericks
sha256 "62ad63d8f6acf1a8ca75705b1beee59fb06900ef3e4a8a2ccb4752b4c9877ed7" => :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
ENV.deparallelize
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"
system "make", "install"
end
test do
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