aboutsummaryrefslogtreecommitdiff
path: root/sysutils/beats93/files/patch-libbeat_scripts_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/beats93/files/patch-libbeat_scripts_Makefile')
-rw-r--r--sysutils/beats93/files/patch-libbeat_scripts_Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/beats93/files/patch-libbeat_scripts_Makefile b/sysutils/beats93/files/patch-libbeat_scripts_Makefile
new file mode 100644
index 000000000000..a84103ea085d
--- /dev/null
+++ b/sysutils/beats93/files/patch-libbeat_scripts_Makefile
@@ -0,0 +1,26 @@
+--- libbeat/scripts/Makefile.orig 2026-02-23 21:59:26 UTC
++++ libbeat/scripts/Makefile
+@@ -47,7 +47,7 @@ GOPACKAGES_STRESSTESTS=$(shell find . -type d \( -name
+ 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
+@@ -336,12 +336,12 @@ update: python-env fields collect config ## @build Upd
+ 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_NAME} ${ES_BEATS} --output_path $(ES_BEATS)/docs/reference/${BEAT_NAME}