aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pam_yubico.rb
blob: f948d21ca8ef053aa1aa241717187c2aa62c0528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'

class PamYubico < Formula
  homepage 'http://opensource.yubico.com/yubico-pam/'
  url 'https://github.com/Yubico/yubico-pam/archive/2.14.tar.gz'
  sha1 'c86fd78788e6a81cadd57b23411e78bd7fab48bb'

  option :universal

  depends_on 'pkg-config' => :build
  depends_on :autoconf
  depends_on :automake
  depends_on :libtool
  depends_on 'libyubikey'
  depends_on 'ykclient'
  depends_on 'ykpers'

  def install
    ENV.universal_binary if build.universal?

    system "autoreconf -vfi"
    system "./configure", "--prefix=#{prefix}",
                          "--with-libyubikey-prefix=#{HOMEBREW_PREFIX}",
                          "--with-libykclient-prefix=#{HOMEBREW_PREFIX}"
    system "make install"
  end
end