diff options
author | William Hubbs <williamh@gentoo.org> | 2022-06-29 09:47:29 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-06-29 09:52:54 -0500 |
commit | 2fd0f28046c3a4c344b3a57d72631459021ea90b (patch) | |
tree | 33719e6496022579ea68dad2c8481fa16c3a975b /app-admin | |
parent | sys-kernel/vanilla-sources: add 5.17.15 (diff) | |
download | gentoo-2fd0f28046c3a4c344b3a57d72631459021ea90b.tar.gz gentoo-2fd0f28046c3a4c344b3a57d72631459021ea90b.tar.bz2 gentoo-2fd0f28046c3a4c344b3a57d72631459021ea90b.zip |
app-admin/awscli-bin: new package, add 2.7.11
This is version 2 of the aws command line interface.
I would like to thank arthurzam for testing this on arm64 so I could add
that keyword immediately.
Closes: https://bugs.gentoo.org/710434
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/awscli-bin/Manifest | 2 | ||||
-rw-r--r-- | app-admin/awscli-bin/awscli-bin-2.7.11.ebuild | 86 | ||||
-rw-r--r-- | app-admin/awscli-bin/metadata.xml | 8 |
3 files changed, 96 insertions, 0 deletions
diff --git a/app-admin/awscli-bin/Manifest b/app-admin/awscli-bin/Manifest new file mode 100644 index 000000000000..04dabbe5d682 --- /dev/null +++ b/app-admin/awscli-bin/Manifest @@ -0,0 +1,2 @@ +DIST awscli-exe-linux-aarch64-2.7.11.zip 46384612 BLAKE2B 1728dac769441954b86f1436708c7b84aa4d1f7affc634de9e6a7bea66a10e5143a6d1da3fd24e8e721cdaabff0bb4b363bef78e29aecc976e9cd5b961284a2b SHA512 3f3e2670614bdcf6751d556a8a150d573712b036ad904a7cbfbb85600241d04f7f257df2d1159e2fb6f5b0d02b7f65df1bfb00764218ef60782a04a7fdebdc2a +DIST awscli-exe-linux-x86_64-2.7.11.zip 47188206 BLAKE2B 9530ad2cf832dab1d5fb38a4942d338629c24bdadebe6abd0ba3a1759688e2ea9666cd97d8643d6ba7469bc446f09bd4c63a43f36deba1afb133ef00da49ce6d SHA512 6a15745502e273ddfad1d9ac118aea1684cf62f533a0fa3ac7661c31e49984ce1d0b608c61f5ed182692686ab7fd992f9a8da6a066bc4da6fe5e3d386548ab8f diff --git a/app-admin/awscli-bin/awscli-bin-2.7.11.ebuild b/app-admin/awscli-bin/awscli-bin-2.7.11.ebuild new file mode 100644 index 000000000000..46548d613ffd --- /dev/null +++ b/app-admin/awscli-bin/awscli-bin-2.7.11.ebuild @@ -0,0 +1,86 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="command line interface for Amazon Web Services" +HOMEPAGE=" + https://aws.amazon.com/cli/ + https://github.com/aws/aws-cli/ + " +SRC_URI=" + amd64? ( https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${PV}.zip ) + arm64? ( https://awscli.amazonaws.com/awscli-exe-linux-aarch64-${PV}.zip ) + " + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" + +RDEPEND="!app-admin/awscli" +BDEPEND="app-arch/unzip" + +QA_PREBUILT="*" +RESTRICT="strip" +S="${WORKDIR}" + +# This code is based on the install script in the upstream archive. + +set_global_vars() { + ROOT_INSTALL_DIR=/opt/aws-cli + BIN_DIR=/usr/bin + + EXE_NAME="aws" + COMPLETER_EXE_NAME="aws_completer" + INSTALLER_DIR="aws" + INSTALLER_DIST_DIR="${INSTALLER_DIR}/dist" + INSTALLER_EXE="${INSTALLER_DIST_DIR}/${EXE_NAME}" + AWS_EXE_VERSION=${PV} + + INSTALL_DIR="${ROOT_INSTALL_DIR}/v2/${AWS_EXE_VERSION}" + # INSTALL_DIR="${INSTALL_DIR}" + INSTALL_DIST_DIR="${INSTALL_DIR}/dist" + INSTALL_BIN_DIR="${INSTALL_DIR}/bin" + INSTALL_AWS_EXE="${INSTALL_BIN_DIR}/${EXE_NAME}" + INSTALL_AWS_COMPLETER_EXE="${INSTALL_BIN_DIR}/${COMPLETER_EXE_NAME}" + + CURRENT_INSTALL_DIR="${ROOT_INSTALL_DIR}/v2/current" + CURRENT_AWS_EXE="${CURRENT_INSTALL_DIR}/bin/${EXE_NAME}" + CURRENT_AWS_COMPLETER_EXE="${CURRENT_INSTALL_DIR}/bin/${COMPLETER_EXE_NAME}" + + BIN_AWS_EXE="${BIN_DIR}/${EXE_NAME}" + BIN_AWS_COMPLETER_EXE="${BIN_DIR}/${COMPLETER_EXE_NAME}" +} + +create_install_dir() { + dodir "${INSTALL_DIR}" + setup_install_dist + setup_install_bin + create_current_symlink +} + +setup_install_dist() { + cp -r "${INSTALLER_DIST_DIR}" "${D}/${INSTALL_DIST_DIR}" || die +} + +setup_install_bin() { + dodir "${INSTALL_BIN_DIR}" + dosym "../dist/${EXE_NAME}" "${INSTALL_AWS_EXE}" + dosym "../dist/${COMPLETER_EXE_NAME}" "${INSTALL_AWS_COMPLETER_EXE}" +} + +create_current_symlink() { + dosym "${AWS_EXE_VERSION}" "${CURRENT_INSTALL_DIR}" +} + +create_bin_symlinks() { + dodir "${BIN_DIR}" + dosym -r "${CURRENT_AWS_EXE}" "${BIN_AWS_EXE}" + dosym -r "${CURRENT_AWS_COMPLETER_EXE}" "${BIN_AWS_COMPLETER_EXE}" +} + +src_install() { + set_global_vars + create_install_dir + create_bin_symlinks +} diff --git a/app-admin/awscli-bin/metadata.xml b/app-admin/awscli-bin/metadata.xml new file mode 100644 index 000000000000..db463f3eeb66 --- /dev/null +++ b/app-admin/awscli-bin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> +</pkgmetadata> |