30 lines
1.2 KiB
Ruby
30 lines
1.2 KiB
Ruby
class Hashcash < Formula
|
|
desc "Proof-of-work algorithm to counter denial-of-service (DoS) attacks"
|
|
homepage "http://hashcash.org"
|
|
url "http://hashcash.org/source/hashcash-1.22.tgz"
|
|
sha256 "0192f12d41ce4848e60384398c5ff83579b55710601c7bffe6c88bc56b547896"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "1865d8db05d392b73cf26b0d873b397b087ac76f6a71c6bdbbf9f5888d46ef15" => :catalina
|
|
sha256 "775184aba3e61dcabed2020c4f2bdda029561badd41aae6d75c56b7bb564a7a3" => :mojave
|
|
sha256 "acb58644b209a262a1f8aea8c4f40e078f4e76742d0339c4e240f92bdd2fb290" => :high_sierra
|
|
sha256 "af78a79c6b0dbf5267781eb209cc3115f43dcdfd7a389c2740262bbab3be3c20" => :sierra
|
|
sha256 "b9ab067b3001c71dc5cfa3085bfcd204cb4837fd6c87f5ce722bd77b8a629850" => :el_capitan
|
|
sha256 "b9e7653e9f2c14aad3d4f3589bed6de036e78b766bc01be5ae9f24be0d9696c4" => :yosemite
|
|
sha256 "5b34b5d7a14ec55622545d823d7a707fcb7b736a88cc531e82799ef85ff8f494" => :mavericks
|
|
end
|
|
|
|
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
|