homebrew-core/Formula/duo_unix.rb
Jack Nagel 64eb2aaaeb duo_unix: sandbox headers
duo_unix installs a pkgconfig file so moving the header directory should
be safe.

Closes Homebrew/homebrew#32510.
2014-09-22 14:04:44 -05:00

24 lines
757 B
Ruby

require "formula"
class DuoUnix < Formula
homepage "https://www.duosecurity.com/docs/duounix"
url "https://dl.duosecurity.com/duo_unix-1.9.11.tar.gz"
sha1 "4cb4e585b69fbc6a0a3635bc241fa22653c2f9c4"
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