aescrypt-packetizer 3.10
Closes Homebrew/homebrew#40113. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>master
parent
b3041965ea
commit
5dbbc6662d
|
@ -1,9 +1,7 @@
|
|||
require "formula"
|
||||
|
||||
class AescryptPacketizer < Formula
|
||||
homepage "https://www.aescrypt.com"
|
||||
url "https://www.aescrypt.com/download/v3/linux/aescrypt-3.0.9.tgz"
|
||||
sha256 "3f3590f9b7e50039611ba9c0cf1cae1b188a44bd39cfc41553db7ec5709c0882"
|
||||
url "https://www.aescrypt.com/download/v3/linux/aescrypt-3.10.tgz"
|
||||
sha256 "153da7971cc3084610943dba44e0284848af72c06d019a3c913656f8c0ad48f1"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -31,17 +29,17 @@ class AescryptPacketizer < Formula
|
|||
system "./configure", "prefix=#{prefix}", "--enable-iconv",
|
||||
"--disable-gui"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
if build.stable?
|
||||
cd "src"
|
||||
else
|
||||
cd "src" do
|
||||
# https://www.aescrypt.com/mac_aes_crypt.html
|
||||
inreplace "Makefile", "#LIBS=-liconv", "LIBS=-liconv"
|
||||
system "make", "prefix=#{prefix}"
|
||||
system "make"
|
||||
|
||||
bin.install "aescrypt"
|
||||
bin.install "aescrypt_keygen"
|
||||
end
|
||||
man1.install "man/aescrypt.1"
|
||||
end
|
||||
|
||||
# To prevent conflict with our other aescrypt, rename the binaries.
|
||||
if build.without? "default-names"
|
||||
|
@ -50,13 +48,19 @@ class AescryptPacketizer < Formula
|
|||
end
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats
|
||||
s = ""
|
||||
|
||||
if build.without? "default-names"
|
||||
s += <<-EOS.undent
|
||||
To avoid conflicting with our other AESCrypt package the binaries
|
||||
have been renamed paescrypt and paescrypt_keygen, unless you chose
|
||||
to exercise the default-names option.
|
||||
have been renamed paescrypt and paescrypt_keygen.
|
||||
EOS
|
||||
end
|
||||
|
||||
s
|
||||
end
|
||||
|
||||
test do
|
||||
path = testpath/"secret.txt"
|
||||
original_contents = "What grows when it eats, but dies when it drinks?"
|
||||
|
|
Loading…
Reference in New Issue