Last active
September 7, 2015 16:50
-
-
Save dlo/e30bb84bc54e8351657b to your computer and use it in GitHub Desktop.
Homebrew formula for https://github.com/Yubico/pam-u2f/ (not fully-working)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PamU2f < Formula | |
desc "The PAM U2F module provides an easy way to integrate the Yubikey (or other U2F-compliant authenticators) into your existing > user authentication infrastructure." | |
homepage "https://developers.yubico.com/pam-u2f/" | |
head "https://github.com/Yubico/pam-u2f.git" | |
depends_on 'libu2f-host' => :build | |
depends_on 'libu2f-server' => :build | |
# Required for `autoreconf --install` | |
depends_on 'pkg-config' => :build | |
depends_on "libtool" => :build | |
depends_on "autoconf" => :build | |
depends_on "automake" => :build | |
# Required for ./configure | |
depends_on "asciidoc" => :build | |
def install | |
system "autoreconf", "--install" | |
ENV['A2X'] = "/usr/local/bin/a2x --no-xmllint" | |
args = ["--prefix=#{prefix}", "--with-pam-dir=#{lib}/pam"] | |
system "./configure", *args | |
system "make", "install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment