Skip to content

Instantly share code, notes, and snippets.

@dlo
Last active September 7, 2015 16:48
Show Gist options
  • Save dlo/19e153b0c620bdb63453 to your computer and use it in GitHub Desktop.
Save dlo/19e153b0c620bdb63453 to your computer and use it in GitHub Desktop.
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