2011-09-12 15:54:51 +00:00
|
|
|
class Aespipe < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "AES encryption or decryption for pipes"
|
2015-02-23 13:55:44 +00:00
|
|
|
homepage "http://loop-aes.sourceforge.net/"
|
|
|
|
url "http://loop-aes.sourceforge.net/aespipe/aespipe-v2.4c.tar.bz2"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "260190beea911190a839e711f610ec3454a9b13985d35479775b7e26ad4c845e"
|
2011-09-12 15:54:51 +00:00
|
|
|
|
2015-02-23 14:06:05 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "f3441fee13b4daab1a717abd55453791278206e2" => :yosemite
|
|
|
|
sha1 "f72e5107d0ff2a6a9d215b956c806c6fcf4ba208" => :mavericks
|
|
|
|
sha1 "77f01ed2cae7844319119520576e5b198ff4e9a0" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2011-09-12 15:54:51 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-02-23 13:55:44 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"secret").write "thisismysecrethomebrewdonttellitplease"
|
|
|
|
msg = "Hello this is Homebrew"
|
|
|
|
encrypted = pipe_output("#{bin}/aespipe -P secret", msg)
|
|
|
|
decrypted = pipe_output("#{bin}/aespipe -P secret -d", encrypted)
|
|
|
|
assert_equal msg, decrypted.gsub(/\x0+$/, "")
|
2011-09-12 15:54:51 +00:00
|
|
|
end
|
|
|
|
end
|