1 class DuoUnix < Formula
2 desc "Two-factor authentication for SSH"
3 homepage "https://www.duosecurity.com/docs/duounix"
4 url "https://github.com/duosecurity/duo_unix/archive/refs/tags/duo_unix-2.0.4.tar.gz"
5 sha256 "e77512725dedb23b3e8094ca3153fc3ffe51d3c32cd9dd56779480a93625de90"
6 license "GPL-2.0-or-later"
9 sha256 arm64_sequoia: "a5a83f2592c5b682bf178fab0175c3c6038005821e6c06c7df552df9239f2c39"
10 sha256 arm64_sonoma: "1a74a2f536ed3aa4f3f17bb99771de85ac79a9f8ad08ae48009c3c923ccd3ee2"
11 sha256 arm64_ventura: "8c35a0ef94b4b3b4b73e5e28d8b76bf9f5bb07498532ebfc3dd824c481872b79"
12 sha256 sonoma: "01ba2b5a22076ea198c6295fce94d20526507e1009b8669fd65d7425899c6cb4"
13 sha256 ventura: "3271ea0c7e12aa40fc6f5fce6040b99c9f4378f767c8583459ea566af706d72d"
14 sha256 x86_64_linux: "3d3f20a51db6e5642f7c85185081d89d38566b977c4d7c14406e115f34c78183"
17 depends_on "autoconf" => :build
18 depends_on "automake" => :build
19 depends_on "libtool" => :build
20 depends_on "openssl@3"
23 depends_on "linux-pam"
27 File.write("build-date", time.to_i)
29 system "./configure", "--disable-dependency-tracking",
30 "--disable-silent-rules",
32 "--sysconfdir=#{etc}",
33 "--includedir=#{include}/duo",
34 "--with-openssl=#{Formula["openssl@3"].opt_prefix}",
35 "--with-pam=#{lib}/pam/"
36 system "make", "install"
40 system "#{sbin}/login_duo", "-d", "-c", "#{etc}/login_duo.conf",
41 "-f", "foobar", "echo", "SUCCESS"