Ok I mananged to get this through by commenting out line 50 and 51 in vendor/github.com/elastic/beats/dev-tools/packer/Makefile
and by running the make package
command with the options SNAPSHOT=no CGO=false PACKAGES=${BEAT_NAME}/deb TARGETS="linux/amd64 linux/386"
.
Note: This only builds .deb packages but at the moment this is enough for my purposes.
Anybody any thoughts on this because commenting out lines in Makefiles doesn't feel as the right way to go?
Regards