2014-10-26 11:29:12 +00:00
|
|
|
class Hashcash < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Proof-of-work algorithm to counter denial-of-service (DoS) attacks"
|
2014-10-26 11:29:12 +00:00
|
|
|
homepage "http://hashcash.org"
|
|
|
|
url "http://hashcash.org/source/hashcash-1.22.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "0192f12d41ce4848e60384398c5ff83579b55710601c7bffe6c88bc56b547896"
|
2014-10-26 11:29:12 +00:00
|
|
|
|
2014-10-26 11:44:15 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "c816296851be064a24cfd568acfa485731909877" => :yosemite
|
|
|
|
sha1 "9c6255cf6ca2b0fc0778468119272ecab94308b5" => :mavericks
|
|
|
|
end
|
|
|
|
|
2014-10-26 11:29:12 +00:00
|
|
|
def install
|
|
|
|
system "make", "install",
|
|
|
|
"PACKAGER=HOMEBREW",
|
|
|
|
"INSTALL_PATH=#{bin}",
|
|
|
|
"MAN_INSTALL_PATH=#{man1}",
|
|
|
|
"DOC_INSTALL_PATH=#{doc}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/hashcash", "-mb10", "test@example.com"
|
|
|
|
end
|
|
|
|
end
|