24 lines
720 B
Ruby
24 lines
720 B
Ruby
class Nifi < Formula
|
|
desc "Easy to use, powerful, and reliable system to process and distribute data"
|
|
homepage "https://nifi.apache.org"
|
|
url "https://www.apache.org/dyn/closer.lua?path=/nifi/1.13.2/nifi-1.13.2-bin.tar.gz"
|
|
mirror "https://archive.apache.org/dist/nifi/1.13.2/nifi-1.13.2-bin.tar.gz"
|
|
sha256 "1d4f5315e8bc04f68628e797cc1c674e8546d67e780e1a7fbdea9ca10a39cd2a"
|
|
license "Apache-2.0"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "openjdk@11"
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
|
|
(bin/"nifi").write_env_script libexec/"bin/nifi.sh",
|
|
Language::Java.overridable_java_home_env("11").merge(NIFI_HOME: libexec)
|
|
end
|
|
|
|
test do
|
|
system bin/"nifi", "status"
|
|
end
|
|
end
|