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,16 +29,16 @@ class AescryptPacketizer < Formula
|
|||
system "./configure", "prefix=#{prefix}", "--enable-iconv",
|
||||
"--disable-gui"
|
||||
system "make", "install"
|
||||
end
|
||||
else
|
||||
cd "src" do
|
||||
# https://www.aescrypt.com/mac_aes_crypt.html
|
||||
inreplace "Makefile", "#LIBS=-liconv", "LIBS=-liconv"
|
||||
system "make"
|
||||
|
||||
if build.stable?
|
||||
cd "src"
|
||||
# https://www.aescrypt.com/mac_aes_crypt.html
|
||||
inreplace "Makefile", "#LIBS=-liconv", "LIBS=-liconv"
|
||||
system "make", "prefix=#{prefix}"
|
||||
|
||||
bin.install "aescrypt"
|
||||
bin.install "aescrypt_keygen"
|
||||
bin.install "aescrypt"
|
||||
bin.install "aescrypt_keygen"
|
||||
end
|
||||
man1.install "man/aescrypt.1"
|
||||
end
|
||||
|
||||
# To prevent conflict with our other aescrypt, rename the binaries.
|
||||
|
@ -50,11 +48,17 @@ class AescryptPacketizer < Formula
|
|||
end
|
||||
end
|
||||
|
||||
def caveats; <<-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.
|
||||
EOS
|
||||
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.
|
||||
EOS
|
||||
end
|
||||
|
||||
s
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue