mirror of
https://git.freebsd.org/ports.git
synced 2025-06-15 17:50:31 -04:00
- fix beats by integrating patch from the https://github.com/elastic/go-sysinfo/pull/126 - upgrade to the latest version ChangeLog: https://www.elastic.co/guide/en/beats/libbeat/current/release-notes.html Approved by: otis (elastic) PR: 272701
26 lines
1.4 KiB
Text
26 lines
1.4 KiB
Text
--- libbeat/scripts/Makefile.orig 2024-07-09 00:00:36.000000000 +0200
|
|
+++ libbeat/scripts/Makefile 2024-07-13 21:45:40.788621000 +0200
|
|
@@ -47,7 +47,7 @@
|
|
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "*/vendor/*" 2>/dev/null)
|
|
GOFILES_ALL = $(GOFILES) $(shell find $(ES_BEATS) -type f -name '*.go' 2>/dev/null)
|
|
GOPACKAGES_STRESSTESTS=$(shell find . -type d \( -name "stress" \) 2>/dev/null)
|
|
-SHELL=bash
|
|
+SHELL=sh
|
|
ES_HOST?=elasticsearch
|
|
ES_PORT?=9200
|
|
ES_USER?=beats
|
|
@@ -352,12 +352,12 @@
|
|
update: python-env fields collect config ## @build Update expects the most recent version of libbeat in the GOPATH
|
|
@echo "Updating generated files for ${BEAT_NAME}"
|
|
|
|
-ifneq ($(shell [[ $(BEAT_NAME) == libbeat || $(BEAT_NAME) == metricbeat ]] && echo true ),true)
|
|
+ifneq ($(shell [[ $(BEAT_NAME) = libbeat || $(BEAT_NAME) = metricbeat ]] && echo true ),true)
|
|
mkdir -p include
|
|
go run ${INSTALL_FLAG} ${ES_BEATS}/dev-tools/cmd/asset/asset.go -license $(LICENSE) -pkg include -in fields.yml -out include/fields.go $(BEAT_NAME)
|
|
endif
|
|
|
|
-ifneq ($(shell [[ $(BEAT_NAME) == libbeat || $(BEAT_NAME) == metricbeat ]] && echo true ),true)
|
|
+ifneq ($(shell [[ $(BEAT_NAME) = libbeat || $(BEAT_NAME) = metricbeat ]] && echo true ),true)
|
|
@# Update docs
|
|
@mkdir -p docs
|
|
@${PYTHON_ENV_EXE} ${ES_BEATS}/libbeat/scripts/generate_fields_docs.py $(PWD)/fields.yml ${BEAT_TITLE} ${ES_BEATS}
|