2013-12-25 05:10:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mfoc < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Implementation of 'offline nested' attack by Nethemba"
|
2013-12-25 05:10:09 +00:00
|
|
|
homepage 'http://code.google.com/p/mfoc/'
|
|
|
|
url 'https://mfoc.googlecode.com/files/mfoc-0.10.7.tar.bz2'
|
|
|
|
sha1 '162a464baf6498926a72383c6b0040654321012d'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libnfc'
|
|
|
|
depends_on 'libusb'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"mfoc", "-h"
|
|
|
|
end
|
|
|
|
end
|