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
|
class AescryptPacketizer < Formula
|
||||||
homepage "https://www.aescrypt.com"
|
homepage "https://www.aescrypt.com"
|
||||||
url "https://www.aescrypt.com/download/v3/linux/aescrypt-3.0.9.tgz"
|
url "https://www.aescrypt.com/download/v3/linux/aescrypt-3.10.tgz"
|
||||||
sha256 "3f3590f9b7e50039611ba9c0cf1cae1b188a44bd39cfc41553db7ec5709c0882"
|
sha256 "153da7971cc3084610943dba44e0284848af72c06d019a3c913656f8c0ad48f1"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
cellar :any
|
cellar :any
|
||||||
|
@ -31,16 +29,16 @@ class AescryptPacketizer < Formula
|
||||||
system "./configure", "prefix=#{prefix}", "--enable-iconv",
|
system "./configure", "prefix=#{prefix}", "--enable-iconv",
|
||||||
"--disable-gui"
|
"--disable-gui"
|
||||||
system "make", "install"
|
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?
|
bin.install "aescrypt"
|
||||||
cd "src"
|
bin.install "aescrypt_keygen"
|
||||||
# https://www.aescrypt.com/mac_aes_crypt.html
|
end
|
||||||
inreplace "Makefile", "#LIBS=-liconv", "LIBS=-liconv"
|
man1.install "man/aescrypt.1"
|
||||||
system "make", "prefix=#{prefix}"
|
|
||||||
|
|
||||||
bin.install "aescrypt"
|
|
||||||
bin.install "aescrypt_keygen"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# To prevent conflict with our other aescrypt, rename the binaries.
|
# To prevent conflict with our other aescrypt, rename the binaries.
|
||||||
|
@ -50,11 +48,17 @@ class AescryptPacketizer < Formula
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats; <<-EOS.undent
|
def caveats
|
||||||
To avoid conflicting with our other AESCrypt package the binaries
|
s = ""
|
||||||
have been renamed paescrypt and paescrypt_keygen, unless you chose
|
|
||||||
to exercise the default-names option.
|
if build.without? "default-names"
|
||||||
EOS
|
s += <<-EOS.undent
|
||||||
|
To avoid conflicting with our other AESCrypt package the binaries
|
||||||
|
have been renamed paescrypt and paescrypt_keygen.
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
|
||||||
|
s
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in New Issue