homebrew-core/Formula/duo_unix.rb
2014-11-17 15:23:04 -08:00

31 lines
993 B
Ruby

require "formula"
class DuoUnix < Formula
homepage "https://www.duosecurity.com/docs/duounix"
url "https://dl.duosecurity.com/duo_unix-1.9.13.tar.gz"
sha1 "96120910cbaa75c3a59e4c12006738b267c3e9f0"
bottle do
cellar :any
sha1 "23ef6a81af2f37166d7d7423b88f7716bf9b0629" => :yosemite
sha1 "fdc919d750012fbfeeec8b3f95d07000adc3c946" => :mavericks
sha1 "0d08b3ca611f47a25a922b2d942f157f1d6268c1" => :mountain_lion
end
revision 1
depends_on "openssl"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--includedir=#{include}/duo",
"--with-openssl=#{Formula["openssl"].opt_prefix}"
system "make", "install"
end
test do
system "#{sbin}/login_duo", "-d", "-c", "#{etc}/login_duo.conf", "-f", "foobar", "echo", "SUCCESS"
end
end