require "formula"
class DuoUnix < Formula
homepage "https://www.duosecurity.com/docs/duounix"
url "https://dl.duosecurity.com/duo_unix-1.9.7.tar.gz"
sha1 "8fc90eed4924cf23a8e1ea275be81f345932954a"
def install
system "./configure", "--prefix=#{prefix}",
"--sysconfdir=#{etc}"
system "make", "install"
end
test do
system "#{sbin}/login_duo", "-d", "-c", "#{etc}/login_duo.conf", "-f", "foobar", "echo", "SUCCESS"