include Config
-VER = 2.3.786.0
+VER = 3.0.356.0
SUP_ARCH = x86_64
THISAPP = amazon-ssm-agent-$(VER)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = amazon-ssm-agent
-PAK_VER = 1
+PAK_VER = 6
-DEPS = ""
-
-export GOPATH = $(HOME)/gopath
+DEPS =
DIR_BUILD = $(GOPATH)/src/github.com/aws/amazon-ssm-agent
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = a2887445875d335b021c5044eab955dc
+$(DL_FILE)_MD5 = 5657c0f4400b1c573ad4e9f1c5845537
install : $(TARGET)
# The build system is searching for code in a certain path
mkdir -pv $$(dirname $(DIR_BUILD))
- ln -svf --relative $(DIR_APP) $(DIR_BUILD)
+ mv -v $(DIR_APP) $(DIR_BUILD)
# Disable style check
cd $(DIR_BUILD) && sed -e "/checkstyle.sh/d" -i makefile
+ # agent/plugins/inventory/gatherers/application/dataProvider.go:10:78: error: imported and not used: localpackages
+ cd $(DIR_BUILD) && sed -e "/localpackages/d" \
+ -i agent/plugins/inventory/gatherers/application/dataProvider.go
+
# Build
cd $(DIR_BUILD) && make build-linux
+ # Remove some temporary files (no idea why those are being created)
+ rm -rfv /usr/lib/go/pkg/linux_$(GOARCH)_shared
+
# Install
mkdir -pv /etc/amazon/ssm /usr/bin /var/lib/amazon/ssm
cd $(DIR_BUILD) && install -v -m 755 \
bin/linux_amd64/amazon-ssm-agent \
+ bin/linux_amd64/ssm-agent-worker \
bin/linux_amd64/ssm-cli \
bin/linux_amd64/ssm-document-worker \
bin/linux_amd64/ssm-session-worker \