Skip to content

Commit

Permalink
filebeat 7.11.0
Browse files Browse the repository at this point in the history
* filebeat 7.11.0
* remove virtualenv and bump to use py3.9

Closes #70842.

Co-authored-by: rui <rui@meetup.com>
Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
2 people authored and BrewTestBot committed Feb 11, 2021
1 parent 1032b5d commit 18270cd
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions Formula/filebeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class Filebeat < Formula
desc "File harvester to ship log files to Elasticsearch or Logstash"
homepage "https://www.elastic.co/products/beats/filebeat"
url "https://github.com/elastic/beats.git",
tag: "v7.10.2",
revision: "aacf9ecd9c494aa0908f61fbca82c906b16562a8"
tag: "v7.11.0",
revision: "84c4d4c4034fcb49c1a318ccdc7311d70adee15b"
# Outside of the "x-pack" folder, source code in a given file is licensed
# under the Apache License Version 2.0
license "Apache-2.0"
Expand All @@ -16,30 +16,16 @@ class Filebeat < Formula
end

depends_on "go" => :build
depends_on "python@3.8" => :build
depends_on "python@3.9" => :build

uses_from_macos "rsync" => :build

resource "virtualenv" do
url "https://files.pythonhosted.org/packages/b1/72/2d70c5a1de409ceb3a27ff2ec007ecdd5cc52239e7c74990e32af57affe9/virtualenv-15.2.0.tar.gz"
sha256 "1d7e241b431e7afce47e77f8843a276f652699d1fa4f93b9d8ce0076fd7b0b54"
end

def install
# remove non open source files
rm_rf "x-pack"

ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/elastic/beats").install Dir["{*,.git,.gitignore}"]

xy = Language::Python.major_minor_version "python3"
ENV.prepend_create_path "PYTHONPATH", buildpath/"vendor/lib/python#{xy}/site-packages"

resource("virtualenv").stage do
system Formula["python@3.8"].opt_bin/"python3", *Language::Python.setup_install_args(buildpath/"vendor")
end

ENV.prepend_path "PATH", buildpath/"vendor/bin" # for virtualenv
ENV.prepend_path "PATH", buildpath/"bin" # for mage (build tool)

cd "src/github.com/elastic/beats/filebeat" do
Expand Down

0 comments on commit 18270cd

Please sign in to comment.