diff --git a/Formula/p/packetbeat.rb b/Formula/p/packetbeat.rb index 97943e1ab54b9..b6a8e218aea0b 100644 --- a/Formula/p/packetbeat.rb +++ b/Formula/p/packetbeat.rb @@ -18,7 +18,6 @@ class Packetbeat < Formula depends_on "go" => :build depends_on "mage" => :build - depends_on "python@3.12" => :build uses_from_macos "libpcap" @@ -27,15 +26,13 @@ def install rm_r("x-pack") cd "packetbeat" do - # prevent downloading binary wheels during python setup - system "make", "PIP_INSTALL_PARAMS=--no-binary :all", "python-env" system "mage", "-v", "build" ENV.deparallelize system "mage", "-v", "update" inreplace "packetbeat.yml", "packetbeat.interfaces.device: any", "packetbeat.interfaces.device: en0" - (etc/"packetbeat").install Dir["packetbeat.*", "fields.yml"] + pkgetc.install Dir["packetbeat.*", "fields.yml"] (libexec/"bin").install "packetbeat" prefix.install "_meta/kibana" end @@ -50,8 +47,7 @@ def install "$@" SH - chmod 0555, bin/"packetbeat" # generate_completions_from_executable fails otherwise - generate_completions_from_executable(bin/"packetbeat", "completion", shells: [:bash, :zsh]) + generate_completions_from_executable(libexec/"bin/packetbeat", "completion", shells: [:bash, :zsh]) end service do @@ -59,11 +55,7 @@ def install end test do - eth = if OS.mac? - "en" - else - "eth" - end + eth = if OS.mac? ? "en" : "eth" assert_match "0: #{eth}0", shell_output("#{bin}/packetbeat devices") assert_match version.to_s, shell_output("#{bin}/packetbeat version") end