2014-05-20 05:52:44 +00:00
|
|
|
require "formula"
|
2012-05-04 19:55:26 +00:00
|
|
|
|
|
|
|
class PamYubico < Formula
|
2014-05-20 05:52:44 +00:00
|
|
|
homepage "http://opensource.yubico.com/yubico-pam/"
|
2014-06-21 20:23:41 +00:00
|
|
|
url "https://github.com/Yubico/yubico-pam/archive/2.16.tar.gz"
|
|
|
|
sha1 "e0724a433a2c84b303fdb28efdda023349a27193"
|
2012-05-04 19:55:26 +00:00
|
|
|
|
2014-03-21 18:40:23 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-05-20 05:52:44 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-06-01 01:11:05 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-05-20 05:52:44 +00:00
|
|
|
depends_on "libyubikey"
|
|
|
|
depends_on "ykclient"
|
|
|
|
depends_on "ykpers"
|
2012-05-04 19:55:26 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-21 18:40:23 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2014-06-01 01:11:05 +00:00
|
|
|
system "autoreconf", "-fvi"
|
2012-05-04 19:55:26 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2014-06-01 01:11:05 +00:00
|
|
|
"--with-libyubikey-prefix=#{Formula["libyubikey"].opt_prefix}",
|
|
|
|
"--with-libykclient-prefix=#{Formula["ykclient"].opt_prefix}"
|
2012-05-04 19:55:26 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|