diff options
| author | Grant Stavely | 2014-01-27 10:40:39 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-29 17:13:03 +0100 |
| commit | 1c386b953747bbc86c7f841c99664ece14d89d5b (patch) | |
| tree | a9e07ebb023cd96e369055d3ac99ef9776ecb818 /Library | |
| parent | efa5f05df74752a6f64371ed587b83a78d4f27cb (diff) | |
| download | homebrew-1c386b953747bbc86c7f841c99664ece14d89d5b.tar.bz2 | |
duo_unix: 1.9.6 (new formula)
Second-factor authentication via Duo login service.
Duo provides secondary authentication via the Duo authentication
service, executing the user's login shell or command only if successful.
Closes #26207.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/duo_unix.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/duo_unix.rb b/Library/Formula/duo_unix.rb new file mode 100644 index 000000000..4546fa76a --- /dev/null +++ b/Library/Formula/duo_unix.rb @@ -0,0 +1,17 @@ +require "formula" + +class DuoUnix < Formula + homepage "https://www.duosecurity.com/docs/duounix" + url "https://dl.duosecurity.com/duo_unix-1.9.6.tar.gz" + sha1 "02f2d28af55872c278df8b99d2e8503098504583" + + 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" + end +end |
