aescrypt-packetizer 3.10

Closes Homebrew/homebrew#40113.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
master
Dominyk Tiller 2015-05-26 22:40:03 +01:00 committed by Baptiste Fontaine
parent b3041965ea
commit 5dbbc6662d
1 changed files with 22 additions and 18 deletions

View File

@ -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