homebrew-core/Formula/snow.rb

41 lines
2.4 KiB
Ruby

class Snow < Formula
desc "Whitespace steganography: coded messages using whitespace"
homepage "https://web.archive.org/web/20200701063014/www.darkside.com.au/snow/"
# The upstream website seems to be rejecting curl connections.
# Consistently returns "HTTP/1.1 406 Not Acceptable".
url "https://www.mirrorservice.org/sites/ftp.netbsd.org/pub/pkgsrc/distfiles/snow-20130616.tar.gz"
sha256 "c0b71aa74ed628d121f81b1cd4ae07c2842c41cfbdf639b50291fc527c213865"
license "Apache-2.0"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "045fa23406cd1862f32dc488dddd93b726d8e95ecc713505e3a187fe90649355"
sha256 cellar: :any_skip_relocation, arm64_monterey: "41d88483f63f4e5e20582e409aa08ed0c750e9ab7f7994094927998960eff861"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "82e4eb39adb51efc80eb91bcbdee8f4ca6f64efd91c38a6aba5a1e1e3bb71cec"
sha256 cellar: :any_skip_relocation, ventura: "51934aab36ec1d4139e7185e64765acbe8520a230e7b599ab4b434fcf02fde9d"
sha256 cellar: :any_skip_relocation, monterey: "a6780f5de96964c392f9abc19a23dd38d73681e0a8d2000429e3d53b5307aef8"
sha256 cellar: :any_skip_relocation, big_sur: "4cf930203ae4748152f58f0d7a6e8c93eb5d2f6ca1d0498c882da68da599847a"
sha256 cellar: :any_skip_relocation, catalina: "9c662e59ae80a814b726baa86faa4e37e85f504e368579ede9e88254af4b8bde"
sha256 cellar: :any_skip_relocation, mojave: "bed2d75f7d4210b5bebd533b656bf0ee641f6aaa4665b6c914071d7d1a4a7f04"
sha256 cellar: :any_skip_relocation, high_sierra: "7db54bdc60bd0db33bc854e5b95a928183479d1f2d9ec65d69f36d3d8ccdae6a"
sha256 cellar: :any_skip_relocation, sierra: "3c975f8c77c450c084b8a468f5d51dd12acaa15dd93dbc440b4523b8dc130316"
sha256 cellar: :any_skip_relocation, el_capitan: "5121a5196c5ed20b7496a5190830bf2e49bdd18c3950fc6b1b8fabb239c9ef7c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b2e1c6de8181532e1de1703e7ad9cfbb7568faf4c77cb18b2e8eae00fede114a"
end
def install
system "make"
bin.install "snow"
man1.install "snow.1"
end
test do
touch "in.txt"
touch "out.txt"
system "#{bin}/snow", "-C", "-m", "'Secrets Abound Here'", "-p",
"'hello world'", "in.txt", "out.txt"
# The below should get the response 'Secrets Abound Here' when testing.
system "#{bin}/snow", "-C", "-p", "'hello world'", "out.txt"
end
end