Last active
September 7, 2015 16:48
-
-
Save dlo/19e153b0c620bdb63453 to your computer and use it in GitHub Desktop.
Homebrew formula for https://github.com/Yubico/libu2f-server
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 Libu2fServer < Formula | |
desc "Yubico Universal 2nd Factor (U2F) Server C Library" | |
homepage "https://developers.yubico.com/libu2f-server/" | |
url "https://developers.yubico.com/libu2f-server/Releases/libu2f-server-1.0.1.tar.xz" | |
version "1.0.1" | |
sha256 "a618f59051209d6d70c24cf42d64c9b67bd7dd5946b6dbd2c649181d7e8f1f6e" | |
depends_on "check" => :build | |
depends_on "json-c" | |
depends_on "openssl" | |
def install | |
args = ["--prefix=#{prefix}"] | |
ENV["LIBSSL_LIBS"] = "-lssl -lcrypto -lz" | |
ENV["LIBCRYPTO_LIBS"] = "-lcrypto -lz" | |
ENV["HELP2MAN"] = "/usr/local/bin/help2man --no-discard-stderr" | |
ENV["PKG_CONFIG"] = "/usr/local/bin/pkg-config" | |
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