Formula for cracklib-words

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Chris Adams 2010-06-28 13:50:19 -04:00 committed by Adam Vandenberg
parent 70dc0938f4
commit c21ada1133
1 changed files with 19 additions and 0 deletions

19
Formula/cracklib-words.rb Normal file
View File

@ -0,0 +1,19 @@
require 'formula'
class CracklibWords <Formula
url 'http://downloads.sourceforge.net/project/cracklib/cracklib-words/2008-05-07/cracklib-words-20080507.gz'
homepage 'http://cracklib.sourceforge.net'
md5 '7fa6ba0cd50e7f9ccaf4707c810b14f1'
depends_on 'cracklib'
def download_strategy
NoUnzipCurlDownloadStrategy
end
def install
system "gzip", "-d", "cracklib-words-20080507.gz"
share.install "cracklib-words-20080507" => "cracklib-words"
system "/bin/sh", "-c", "cracklib-packer < #{share}/cracklib-words"
end
end