2011-01-05 14:09:07 +00:00
|
|
|
class Ykclient < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Library to validate YubiKey OTPs against YubiCloud"
|
2015-03-12 07:28:22 +00:00
|
|
|
homepage "https://yubico.github.io/yubico-c-client/"
|
2015-11-12 12:12:01 +00:00
|
|
|
url "https://yubico.github.io/yubico-c-client/releases/ykclient-2.15.tar.gz"
|
|
|
|
sha256 "f461cdefe7955d58bbd09d0eb7a15b36cb3576b88adbd68008f40ea978ea5016"
|
2013-12-05 17:19:55 +00:00
|
|
|
|
2015-03-12 10:16:28 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-11-12 12:31:00 +00:00
|
|
|
sha256 "3ad851c0204662921e24aab8b473ba543cc63f84514e7d8eb65ea68a4a617a69" => :el_capitan
|
|
|
|
sha256 "81b3de37e608406d52a02d5c56fcb2fa621af641e90e4985f4804d53dd41ef6e" => :yosemite
|
|
|
|
sha256 "c051e1c30bc2cb34907e5d91e1addb572d2bfa2011c75e13c167712d93fefb47" => :mavericks
|
2015-03-12 10:16:28 +00:00
|
|
|
end
|
|
|
|
|
2014-03-21 18:40:23 +00:00
|
|
|
option :universal
|
|
|
|
|
2015-03-12 07:28:22 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "help2man" => :build
|
2011-01-05 14:09:07 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-21 18:40:23 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2011-01-05 14:09:07 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-03-12 07:28:22 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ykclient", "--version"
|
2011-01-05 14:09:07 +00:00
|
|
|
end
|
|
|
|
end
|