Preparations and fixes for package builds

This commit is contained in:
Blerim Sheqa 2017-02-01 16:06:13 +01:00
parent aaaf13c894
commit 4abf58d9eb
5 changed files with 7 additions and 4 deletions

View File

@ -1,11 +1,14 @@
BEATNAME=icingabeat
BEAT_DIR=github.com/icinga/icingabeat
BEAT_DESCRIPTION=Icingabeat ships Icinga 2 events and states to Elasticsearch or Logstash.
SYSTEM_TESTS=false
TEST_ENVIRONMENT=false
ES_BEATS?=./vendor/github.com/elastic/beats
GOPACKAGES=$(shell glide novendor)
PREFIX?=.
SNAPSHOT=false
# Path to the libbeat Makefile
-include $(ES_BEATS)/libbeat/scripts/Makefile

View File

@ -11,7 +11,7 @@ if [ "$SNAPSHOT" = "yes" ]; then
fi
mkdir /{{.beat_name}}-${VERSION}-linux-{{.bin_arch}}
cp -a homedir/. /{{.beat_name}}-${VERSION}-linux-{{.bin_arch}}/
cp -R homedir/. /{{.beat_name}}-${VERSION}-linux-{{.bin_arch}}/
install -D -m 755 import_dashboards-linux-{{.arch}} /{{.beat_name}}-${VERSION}-linux-{{.bin_arch}}/scripts/import_dashboards
cp {{.beat_name}}-linux-{{.arch}} /{{.beat_name}}-${VERSION}-linux-{{.bin_arch}}/{{.beat_name}}
cp {{.beat_name}}-linux.yml /{{.beat_name}}-${VERSION}-linux-{{.bin_arch}}/{{.beat_name}}.yml

View File

@ -11,7 +11,7 @@ if [ "$SNAPSHOT" = "yes" ]; then
fi
mkdir /{{.beat_name}}-${VERSION}-darwin-x86_64
cp -a homedir/. /{{.beat_name}}-${VERSION}-darwin-x86_64/
cp -R homedir/. /{{.beat_name}}-${VERSION}-darwin-x86_64/
install -D -m 755 import_dashboards-darwin-{{.arch}} /{{.beat_name}}-${VERSION}-darwin-x86_64/scripts/import_dashboards
cp {{.beat_name}}-darwin-amd64 /{{.beat_name}}-${VERSION}-darwin-x86_64/{{.beat_name}}
cp {{.beat_name}}-darwin.yml /{{.beat_name}}-${VERSION}-darwin-x86_64/{{.beat_name}}.yml

View File

@ -11,7 +11,7 @@ if [ "$SNAPSHOT" = "yes" ]; then
fi
mkdir /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}
cp -a homedir/. /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/
cp -R homedir/. /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/
install -D -m 755 import_dashboards-windows-{{.arch}} /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/scripts/import_dashboards.exe
cp {{.beat_name}}-windows-{{.arch}}.exe /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/{{.beat_name}}.exe
unix2dos {{.beat_name}}-win.yml

View File

@ -1 +1 @@
version: "5.1.2"
version: "0.2.0"