auditbeat: generate and install fields.yml file into etc/
use native Makefile env var to install pip wheels from source
This commit is contained in:
parent
505113a12c
commit
e4687d913b
1 changed files with 3 additions and 3 deletions
|
@ -39,14 +39,14 @@ class Auditbeat < Formula
|
||||||
ENV.prepend_path "PATH", buildpath/"vendor/bin"
|
ENV.prepend_path "PATH", buildpath/"vendor/bin"
|
||||||
|
|
||||||
cd "src/github.com/elastic/beats/auditbeat" do
|
cd "src/github.com/elastic/beats/auditbeat" do
|
||||||
# prevent downloading binary wheels
|
|
||||||
inreplace "../libbeat/scripts/Makefile", "pip install", "pip install --no-binary :all"
|
|
||||||
system "make"
|
system "make"
|
||||||
|
# prevent downloading binary wheels during python setup
|
||||||
|
system "make", "PIP_INSTALL_COMMANDS=--no-binary :all", "python-env"
|
||||||
system "make", "DEV_OS=darwin", "update"
|
system "make", "DEV_OS=darwin", "update"
|
||||||
(libexec/"bin").install "auditbeat"
|
(libexec/"bin").install "auditbeat"
|
||||||
libexec.install "_meta/kibana"
|
libexec.install "_meta/kibana"
|
||||||
|
|
||||||
(etc/"auditbeat").install Dir["auditbeat*.yml"]
|
(etc/"auditbeat").install Dir["auditbeat*.yml", "fields.yml"]
|
||||||
prefix.install_metafiles
|
prefix.install_metafiles
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue