-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1572 from flatcar/tormath1/ssm-agent
app-emulation/amazon-ssm-agent: use upstream makefile
- Loading branch information
Showing
3 changed files
with
50 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- AWS: Fixed the Amazon SSM agent that was crashing. ([Flatcar#1307](https://github.com/flatcar/Flatcar/issues/1307)) |
57 changes: 0 additions & 57 deletions
57
..._party/coreos-overlay/app-emulation/amazon-ssm-agent/amazon-ssm-agent-3.2.985.0-r2.ebuild
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
..._party/coreos-overlay/app-emulation/amazon-ssm-agent/amazon-ssm-agent-3.2.985.0-r3.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
COREOS_GO_PACKAGE="${GITHUB_URI}" | ||
COREOS_GO_VERSION="go1.19" | ||
|
||
inherit coreos-go-depend golang-vcs-snapshot systemd | ||
|
||
EGO_PN="github.com/aws/${PN}" | ||
DESCRIPTION="AWS Systems Manager Agent" | ||
HOMEPAGE="https://github.com/aws/amazon-ssm-agent" | ||
LICENSE="Apache-2.0" | ||
SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz ${EGO_VENDOR_URI}" | ||
SLOT="0" | ||
KEYWORDS="amd64 arm64" | ||
|
||
S="${WORKDIR}/${PN}-${PV}/src/${EGO_PN}" | ||
|
||
PATCHES=( | ||
) | ||
|
||
src_prepare() { | ||
default | ||
ln -s ${PWD}/vendor/src/* ${PWD}/vendor/ | ||
} | ||
|
||
src_compile() { | ||
go_export | ||
|
||
# set agent release version | ||
BRAZIL_PACKAGE_VERSION=${PV} ${EGO} run ./agent/version/versiongenerator/version-gen.go | ||
# build all the tools | ||
if [[ "${ARCH}" == "arm64" ]]; then | ||
emake build-arm64 | ||
else | ||
emake build-linux | ||
fi | ||
} | ||
|
||
src_install() { | ||
# Folder is like bin/linux_amd64/ | ||
dobin bin/*/* | ||
insinto "/usr/share/amazon/ssm" | ||
newins seelog_unix.xml seelog.xml.template | ||
doins amazon-ssm-agent.json.template | ||
|
||
systemd_dounit packaging/linux/amazon-ssm-agent.service | ||
} |