diff options
| author | Diogo Ramos | 2013-11-06 13:12:35 -0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-12-05 20:59:07 -0800 |
| commit | ffa74a23974a10c52468d36f0d881665a51d8299 (patch) | |
| tree | fbb8ec1a2b20b42369782977cafbfe01bb34cd3e /Library/Formula | |
| parent | 302196c38ba0b203e8015c9c76cc8b117e71d920 (diff) | |
| download | homebrew-ffa74a23974a10c52468d36f0d881665a51d8299.tar.bz2 | |
New Formula: crunch
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/crunch.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/crunch.rb b/Library/Formula/crunch.rb new file mode 100644 index 000000000..4e517fe82 --- /dev/null +++ b/Library/Formula/crunch.rb @@ -0,0 +1,21 @@ +require 'formula' + +class Crunch < Formula + homepage 'http://sourceforge.net/projects/crunch-wordlist' + url 'http://sourceforge.net/projects/crunch-wordlist/files/crunch-wordlist/crunch-3.4.tgz' + sha1 '2e73faa0f8f8a9a761c1f191e201d0be76f74491' + + def install + inreplace "Makefile" do |s| + s.change_make_var! "CC", ENV.cc + s.change_make_var! "LFS", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" + end + + system "make" + + bin.install "crunch" + man1.install "crunch.1" + share.install Dir["*.lst"] + prefix.install "GPL.txt" + end +end |
