From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AEB54158094 for ; Wed, 29 Jun 2022 14:53:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2C08E0AD4; Wed, 29 Jun 2022 14:53:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 881DAE0AD4 for ; Wed, 29 Jun 2022 14:53:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 38888341A10 for ; Wed, 29 Jun 2022 14:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9805480 for ; Wed, 29 Jun 2022 14:53:22 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1656514374.2fd0f28046c3a4c344b3a57d72631459021ea90b.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/awscli-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/awscli-bin/Manifest app-admin/awscli-bin/awscli-bin-2.7.11.ebuild app-admin/awscli-bin/metadata.xml X-VCS-Directories: app-admin/awscli-bin/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 2fd0f28046c3a4c344b3a57d72631459021ea90b X-VCS-Branch: master Date: Wed, 29 Jun 2022 14:53:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9db600e1-fc6d-4b2a-8098-84380ed206a1 X-Archives-Hash: 29949cffcc103368eb2463aa4e5c5089 commit: 2fd0f28046c3a4c344b3a57d72631459021ea90b Author: William Hubbs gentoo org> AuthorDate: Wed Jun 29 14:47:29 2022 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Jun 29 14:52:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fd0f280 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 gentoo.org> app-admin/awscli-bin/Manifest | 2 + app-admin/awscli-bin/awscli-bin-2.7.11.ebuild | 86 +++++++++++++++++++++++++++ app-admin/awscli-bin/metadata.xml | 8 +++ 3 files changed, 96 insertions(+) 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 @@ + + + + + williamh@gentoo.org + William Hubbs + +