2014-06-17 06:48:23 +00:00
|
|
|
require "formula"
|
2013-11-06 15:12:35 +00:00
|
|
|
|
|
|
|
class Crunch < Formula
|
2014-06-17 06:48:23 +00:00
|
|
|
homepage "http://sourceforge.net/projects/crunch-wordlist"
|
|
|
|
url "https://downloads.sourceforge.net/project/crunch-wordlist/crunch-wordlist/crunch-3.6.tgz"
|
|
|
|
sha1 "51bdf8b9dfb9e4486fa6a85e0224522569de4557"
|
2013-11-06 15:12:35 +00:00
|
|
|
|
|
|
|
def install
|
2013-12-03 10:57:46 +00:00
|
|
|
system "make", "CC=#{ENV.cc}", "LFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
2013-11-06 15:12:35 +00:00
|
|
|
|
|
|
|
bin.install "crunch"
|
|
|
|
man1.install "crunch.1"
|
|
|
|
share.install Dir["*.lst"]
|
|
|
|
end
|
|
|
|
end
|