From f2fef41a37fdee0889eb7940fe4a8bdba85d822b Mon Sep 17 00:00:00 2001 From: pozsa_k Date: Tue, 7 Feb 2023 16:26:13 +0100 Subject: [PATCH] Add aws cli Close: #258 --- Tools/awscli/build | 25 +++++++++++++++++++++++++ Tools/awscli/files/variants | 1 + Tools/awscli/modulefile | 12 ++++++++++++ 3 files changed, 38 insertions(+) create mode 100755 Tools/awscli/build create mode 100644 Tools/awscli/files/variants create mode 100644 Tools/awscli/modulefile diff --git a/Tools/awscli/build b/Tools/awscli/build new file mode 100755 index 0000000..ca3ba54 --- /dev/null +++ b/Tools/awscli/build @@ -0,0 +1,25 @@ +#!/usr/bin/env modbuild + +# download url actually not used, but the build script fails without it +pbuild::set_download_url "https://github.com/aws/aws-cli/archive/refs/tags/$V.tar.gz" +# pbuild::set_sha256sum 'gnuplot-5.2.4.tar.gz:1515f000bd373aaa53b16183f274189d4f5e0ae47d22f434857933d16a4770cb' +# pbuild::install_docfiles 'Copyright' 'NEWS' 'README' + +pbuild::add_to_group 'Tools' + +pbuild::configure() { + : +} +pbuild::compile() { + : +} +pbuild::install() { + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-$V.zip" -o "awscliv2.zip" + unzip awscliv2.zip + ./aws/install -i $PREFIX -b ${PREFIX}/bin --update +} +# Local Variables: +# mode: sh +# sh-basic-offset: 8 +# tab-width: 8 +# End: diff --git a/Tools/awscli/files/variants b/Tools/awscli/files/variants new file mode 100644 index 0000000..a749239 --- /dev/null +++ b/Tools/awscli/files/variants @@ -0,0 +1 @@ +awscli/2.9.21 unstable diff --git a/Tools/awscli/modulefile b/Tools/awscli/modulefile new file mode 100644 index 0000000..aa96a06 --- /dev/null +++ b/Tools/awscli/modulefile @@ -0,0 +1,12 @@ +#%Pmodule + +module-whatis "Universal Command Line Interface for Amazon Web Services" +module-url "https://github.com/aws/aws-cli/tree/v2" +module-license "https://github.com/aws/aws-cli/blob/v2/LICENSE.txt" +module-maintainer "Krisztian Pozsa " + +module-help " +The AWS Command Line Interface (AWS CLI) is a unified tool to manage your +AWS services. With just one tool to download and configure, you can control +multiple AWS services from the command line and automate them through scripts. +"