summaryrefslogtreecommitdiff
path: root/app-admin/awscli-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-09 15:43:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-09 15:43:36 +0100
commit2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch)
tree8c816148bcbd22757d892089c989ae614eae4f5a /app-admin/awscli-bin
parent0f558761aa2dee1017b4751e4017205e015a9560 (diff)
gentoo resync : 09.07.2022
Diffstat (limited to 'app-admin/awscli-bin')
-rw-r--r--app-admin/awscli-bin/Manifest4
-rw-r--r--app-admin/awscli-bin/awscli-bin-2.7.11-r1.ebuild89
-rw-r--r--app-admin/awscli-bin/metadata.xml8
3 files changed, 101 insertions, 0 deletions
diff --git a/app-admin/awscli-bin/Manifest b/app-admin/awscli-bin/Manifest
new file mode 100644
index 000000000000..a6b98ca11397
--- /dev/null
+++ b/app-admin/awscli-bin/Manifest
@@ -0,0 +1,4 @@
+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
+EBUILD awscli-bin-2.7.11-r1.ebuild 2289 BLAKE2B a10366396fb39fc81382351de2b57dd95afac77cb9eddac2c11245460fb16614d8d50be696dd88ca978f13096070bc0de3909f9433784c2b3ae3ef7d1237d3a0 SHA512 19eba643095a14c9e3a4723f704b4a6d34a8fe6e60b75d6baa56030b55f7870af23cbfa8ddab7307929d611843d43ad1ebf0dbc65eeb2abcd2a198e42afff871
+MISC metadata.xml 249 BLAKE2B 08603bf9d754b59bae12620988552abc7f76b87a1390d02038789eba034c22412a3593d10f443794a5171ff3905c2b5c822368b2eb9f53a528097b7b6c80ffe9 SHA512 338d72efbd040697be98aad4229b81c9694eb27ecbc39f3a18332f4cc766a46b4a0a92f32612203259bf58f5838d0aff7f0b1abec7766f6cd2394c73f7f0b251
diff --git a/app-admin/awscli-bin/awscli-bin-2.7.11-r1.ebuild b/app-admin/awscli-bin/awscli-bin-2.7.11-r1.ebuild
new file mode 100644
index 000000000000..08bd8f8fab0a
--- /dev/null
+++ b/app-admin/awscli-bin/awscli-bin-2.7.11-r1.ebuild
@@ -0,0 +1,89 @@
+# 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 MIT LGPL-2.1+ BSD GPL-2+-with-Pyinstaller-Bootloader-exception
+ openssl PSF-2 BSD-2 GPL-3+ public-domain
+ "
+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>