homebrew-core/Formula/testssl.rb
2018-02-23 13:10:19 -08:00

27 lines
743 B
Ruby

class Testssl < Formula
desc "Tool which checks for the support of TLS/SSL ciphers and flaws"
homepage "https://testssl.sh/"
url "https://github.com/drwetter/testssl.sh/archive/v2.9.5-2.tar.gz"
version "2.9.5-2"
sha256 "0b29f1a5c7c91de77eb9885874c6e23fb8c0912d262c8c4f58b7c6969f13e070"
head "https://github.com/drwetter/testssl.sh.git"
bottle :unneeded
depends_on "openssl"
def install
bin.install "testssl.sh"
man1.install "doc/testssl.1"
prefix.install "etc"
env = {
:PATH => "#{Formula["openssl"].opt_bin}:$PATH",
:TESTSSL_INSTALL_DIR => prefix,
}
bin.env_script_all_files(libexec/"bin", env)
end
test do
system "#{bin}/testssl.sh", "--local", "--warnings", "off"
end
end