Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change armhf name to linux-armv7 #356

Merged
merged 1 commit into from
Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ build: ## Build sidecar binary for local target system
$(GO) build $(BUILD_OPTS) -v -i -o graylog-sidecar

# does not include build-darwin as that only runs with homebrew on a Mac
build-all: build-armhf build-linux build-linux32 build-windows build-windows32
build-all: build-linux-armv7 build-linux build-linux32 build-windows build-windows32

build-linux: ## Build sidecar binary for Linux
@mkdir -p build/$(COLLECTOR_VERSION)/linux/amd64
Expand All @@ -65,9 +65,9 @@ solaris-sigar-patch:
wget -O vendor/github.com/cloudfoundry/gosigar/sigar_solaris.go https://raw.githubusercontent.com/amitkris/gosigar/9fc0903125acd1a0dc7635f8670088339865bcd5/sigar_solaris.go; \
fi

build-armhf: ## Build sidecar binary for armhf
@mkdir -p build/$(COLLECTOR_VERSION)/linux/armhf
GOOS=linux GOARCH=arm GOARM=7 $(GO) build $(BUILD_OPTS) -pkgdir $(GOPATH)/go_armhf -v -i -o build/$(COLLECTOR_VERSION)/linux/armhf/graylog-sidecar
build-linux-armv7: ## Build sidecar binary for linux-armv7
@mkdir -p build/$(COLLECTOR_VERSION)/linux/armv7
GOOS=linux GOARCH=arm GOARM=7 $(GO) build $(BUILD_OPTS) -pkgdir $(GOPATH)/go_linux-armv7 -v -i -o build/$(COLLECTOR_VERSION)/linux/armv7/graylog-sidecar

build-solaris: solaris-sigar-patch ## Build sidecar binary for Solaris/OmniOS/Illumos
@mkdir -p build/$(COLLECTOR_VERSION)/solaris/amd64
Expand All @@ -93,24 +93,24 @@ build-windows32: ## Build sidecar binary for Windows 32bit
@mkdir -p build/$(COLLECTOR_VERSION)/windows/386
GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc $(GO) build $(BUILD_OPTS) -pkgdir $(GOPATH)/go_win32 -v -i -o build/$(COLLECTOR_VERSION)/windows/386/graylog-sidecar.exe

package-all: prepare-package package-armhf package-linux package-linux32 package-windows package-tar
package-all: prepare-package package-linux-armv7 package-linux package-linux32 package-windows package-tar

prepare-package:
@dist/fetch_collectors.sh

package-armhf: ## Create Linux system package
@fpm-cook clean dist/recipearm.rb
package-linux-armv7: ## Create Linux ARMv7 system package
@fpm-cook clean dist/recipearmv7.rb
@rm -rf dist/cache dist/tmp-build dist/tmp-dest
@fpm-cook -t deb package dist/recipearm.rb
@fpm-cook -t rpm package dist/recipearm.rb
@fpm-cook -t deb package dist/recipearmv7.rb
@fpm-cook -t rpm package dist/recipearmv7.rb

package-linux: ## Create Linux system package
package-linux: ## Create Linux amd64 system package
@fpm-cook clean dist/recipe.rb
@rm -rf dist/cache dist/tmp-build dist/tmp-dest
@fpm-cook -t deb package dist/recipe.rb
@fpm-cook -t rpm package dist/recipe.rb

package-linux32: ## Create Linux system package for 32bit hosts
package-linux32: ## Create Linux i386 system package
@fpm-cook clean dist/recipe32.rb
@rm -rf dist/cache dist/tmp-build dist/tmp-dest
@fpm-cook -t deb package dist/recipe32.rb
Expand Down
4 changes: 2 additions & 2 deletions dist/recipearm.rb → dist/recipearmv7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class GraylogSidecar < FPM::Cookery::Recipe
version data.version
revision data.revision
homepage 'https://graylog.org'
arch 'armhf'
arch 'armv7'

source "file:../../build/#{version}/linux/armhf/graylog-sidecar"
source "file:../../build/#{version}/linux/armv7/graylog-sidecar"

maintainer 'Graylog, Inc. <[email protected]>'
vendor 'graylog'
Expand Down