2014-01-27 18:40:39 +00:00
|
|
|
class DuoUnix < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Two-factor authentication for SSH"
|
2014-01-27 18:40:39 +00:00
|
|
|
homepage "https://www.duosecurity.com/docs/duounix"
|
2014-11-17 22:56:40 +00:00
|
|
|
url "https://dl.duosecurity.com/duo_unix-1.9.13.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "90397cd756669b22353d2ff024c6042affce23207e803bf9c1341ae3fc2e945a"
|
2014-12-10 15:21:42 +00:00
|
|
|
revision 1
|
|
|
|
|
2014-11-17 23:21:13 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-12-09 19:18:38 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "0511973efe89292865a034e3f0e6c35717061f8c" => :yosemite
|
|
|
|
sha1 "77933fb49091788f90db88f0d41963889652ab6f" => :mavericks
|
|
|
|
sha1 "68ccaf5aeb4811f2f7c548c676f7a15957768dd5" => :mountain_lion
|
2014-11-17 23:21:13 +00:00
|
|
|
end
|
|
|
|
|
2014-09-22 19:03:04 +00:00
|
|
|
depends_on "openssl"
|
|
|
|
|
2014-01-27 18:40:39 +00:00
|
|
|
def install
|
2014-09-22 19:03:04 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}",
|
2014-09-22 19:03:15 +00:00
|
|
|
"--includedir=#{include}/duo",
|
2014-12-09 13:33:21 +00:00
|
|
|
"--with-openssl=#{Formula["openssl"].opt_prefix}",
|
|
|
|
"--with-pam=#{lib}/pam/"
|
2014-01-27 18:40:39 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-12-10 15:21:42 +00:00
|
|
|
system "#{sbin}/login_duo", "-d", "-c", "#{etc}/login_duo.conf",
|
|
|
|
"-f", "foobar", "echo", "SUCCESS"
|
2014-01-27 18:40:39 +00:00
|
|
|
end
|
|
|
|
end
|