pam-u2f 1.0.4 (new formula)
Closes Homebrew/homebrew#43676. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
fa6e0f89a1
commit
c6b7d423fb
1 changed files with 40 additions and 0 deletions
40
Formula/pam-u2f.rb
Normal file
40
Formula/pam-u2f.rb
Normal file
|
@ -0,0 +1,40 @@
|
|||
class PamU2f < Formula
|
||||
desc "Provides an easy way to use U2F-compliant authenticators with PAM"
|
||||
homepage "https://developers.yubico.com/pam-u2f/"
|
||||
url "https://developers.yubico.com/pam-u2f/Releases/pam_u2f-1.0.4.tar.gz"
|
||||
sha256 "71542e4568e6d2acaa50810a93c67297ba402f960da1ebb621413bd31f0732a1"
|
||||
|
||||
head "https://github.com/Yubico/pam-u2f.git"
|
||||
|
||||
depends_on "libu2f-host"
|
||||
depends_on "libu2f-server"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "libtool" => :build
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "asciidoc" => :build
|
||||
|
||||
def install
|
||||
system "autoreconf", "--install"
|
||||
|
||||
ENV["A2X"] = "#{Formula["asciidoc"].opt_bin}/a2x --no-xmllint"
|
||||
args = ["--prefix=#{prefix}", "--with-pam-dir=#{lib}/pam"]
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
To use a U2F key for PAM authentication, specify the full path to the
|
||||
module (#{lib}pam/pam_u2f.so) in a PAM
|
||||
configuration. You can find all PAM configurations in /etc/pam.d.
|
||||
|
||||
For further installation instructions, please visit
|
||||
https://developers.yubico.com/pam-u2f/#installation.
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/pamu2fcfg", "--version"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue