diff --git a/.github/auto-label.yml b/.github/auto-label.yml index 46b0bc7034..629d423b64 100644 --- a/.github/auto-label.yml +++ b/.github/auto-label.yml @@ -113,6 +113,9 @@ vendor/terraform-0.12: vendor/terraform-0.12/** vendor/terraform-0.13: vendor/terraform-0.13/** vendor/terraform-docs: vendor/terraform-docs/** vendor/terraform: vendor/terraform/** +vendor/terraform_0.11: vendor/terraform_0.11/** +vendor/terraform_0.12: vendor/terraform_0.12/** +vendor/terraform_0.13: vendor/terraform_0.13/** vendor/terragrunt: vendor/terragrunt/** vendor/terrahelp: vendor/terrahelp/** vendor/tfenv: vendor/tfenv/** diff --git a/README.md b/README.md index e053b9e9cd..581c771e7d 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,20 @@ - -[![README Header][readme_header_img]][readme_header_link] - -[![Cloud Posse][logo]](https://cpco.io/homepage) - -# Packages [![Codefresh Build Status](https://g.codefresh.io/api/badges/pipeline/cloudposse/cloudposse%2Fpackages%2Fapk?branch=master&key=eyJhbGciOiJIUzI1NiJ9.NWEwMTJmNWM3Yjg3YTQwMDAxYTlkMjU0.UwxTSXZGXq3wPQjj3O1k71kQsGuWGlzgkp9V2-llce8&type=cf-1)](https://g.codefresh.io/pipelines/apk/builds?repoOwner=cloudposse&repoName=packages&serviceName=cloudposse%2Fpackages&filter=trigger:build~Build;branch:master;pipeline:5baae099b35f251ecadf1fa0~apk) [![Auto Update Status](https://github.com/cloudposse/packages/workflows/auto-update/badge.svg)](https://github.com/cloudposse/packages/actions?query=workflow%3Aauto-update) [![Latest Release](https://img.shields.io/github/release/cloudposse/packages.svg)](https://github.com/cloudposse/packages/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com) - +--> Cloud Posse distribution of awesome apps. --- -This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps. +This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps. [][share_email] [][share_googleplus] [][share_facebook] @@ -247,8 +227,9 @@ exit + ## Makefile Targets -``` +```text amtool 0.21.0 Tool for interacting with the Alertmanager API argocd 1.6.2 Declarative GitOpts for Kubernetes assume-role 0.3.2 Easily assume AWS roles in your terminal. @@ -346,6 +327,9 @@ terraform-0.11 0.11.14 Terraform is a tool for building, changing, terraform-0.12 0.12.29 Terraform is a tool for building, changing, and combining infrastructure safely and efficiently. terraform-0.13 0.13.0 Terraform is a tool for building, changing, and combining infrastructure safely and efficiently. terraform-docs 0.9.1 Generate docs from terraform modules +terraform_0.11 0.11.14 Terraform (Deprecated package. Use terraform-0.11 instead) +terraform_0.12 0.12.29 Terraform (Deprecated package. Use terraform-0.12 instead) +terraform_0.13 0.13.0 Terraform (Deprecated package. Use terraform-0.13 instead) terragrunt 0.23.33 Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules. terrahelp 0.7.4 Terrahelp is as a command line utility that provides useful tricks like masking of terraform output. tfenv 0.4.0 Transform environment variables for use with Terraform (e.g. `HOSTNAME` ⇨ `TF_VAR_hostname`) @@ -359,12 +343,13 @@ venona 0.32.1 Codefresh runtime-environment agent vert 0.1.0 Simple CLI for comparing two or more versions yq 3.3.2 yq is a portable command-line YAML processor ``` + -## Share the Love +## Share the Love -Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/packages)! (it helps us **a lot**) +Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/packages)! (it helps us **a lot**) Are you using this project or any of our other projects? Consider [leaving a testimonial][testimonial]. =) @@ -380,7 +365,7 @@ Check out these related projects. ## Help -**Got a question?** We got answers. +**Got a question?** We got answers. File a GitHub [issue](https://github.com/cloudposse/packages/issues), send us an [email][email] or join our [Slack Community][slack]. @@ -389,7 +374,7 @@ File a GitHub [issue](https://github.com/cloudposse/packages/issues), send us an ## DevOps Accelerator for Startups -We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us. +We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us. [![Learn More](https://img.shields.io/badge/learn%20more-success.svg?style=for-the-badge)][commercial_support] @@ -418,11 +403,11 @@ Participate in our [Discourse Forums][discourse]. Here you'll find answers to co ## Newsletter -Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover. +Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover. ## Office Hours -[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone! +[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone! [![zoom](https://img.cloudposse.com/fit-in/200x200/https://cloudposse.com/wp-content/uploads/2019/08/Powered-by-Zoom.png")][office_hours] @@ -453,28 +438,30 @@ Copyright © 2017-2020 [Cloud Posse, LLC](https://cpco.io/copyright) -## License +## License -[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) See [LICENSE](LICENSE) for full details. - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. +```text +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +``` @@ -496,7 +483,7 @@ This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? P We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We ❤️ [Open Source Software][we_love_open_source]. -We offer [paid support][commercial_support] on all of our projects. +We offer [paid support][commercial_support] on all of our projects. Check out [our other projects][github], [follow us on twitter][twitter], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation. diff --git a/docs/targets.md b/docs/targets.md index 727d3c3d36..fe6ba200d2 100644 --- a/docs/targets.md +++ b/docs/targets.md @@ -1,5 +1,6 @@ + ## Makefile Targets -``` +```text amtool 0.21.0 Tool for interacting with the Alertmanager API argocd 1.6.2 Declarative GitOpts for Kubernetes assume-role 0.3.2 Easily assume AWS roles in your terminal. @@ -97,6 +98,9 @@ terraform-0.11 0.11.14 Terraform is a tool for building, changing, terraform-0.12 0.12.29 Terraform is a tool for building, changing, and combining infrastructure safely and efficiently. terraform-0.13 0.13.0 Terraform is a tool for building, changing, and combining infrastructure safely and efficiently. terraform-docs 0.9.1 Generate docs from terraform modules +terraform_0.11 0.11.14 Terraform (Deprecated package. Use terraform-0.11 instead) +terraform_0.12 0.12.29 Terraform (Deprecated package. Use terraform-0.12 instead) +terraform_0.13 0.13.0 Terraform (Deprecated package. Use terraform-0.13 instead) terragrunt 0.23.33 Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules. terrahelp 0.7.4 Terrahelp is as a command line utility that provides useful tricks like masking of terraform output. tfenv 0.4.0 Transform environment variables for use with Terraform (e.g. `HOSTNAME` ⇨ `TF_VAR_hostname`) @@ -110,3 +114,4 @@ venona 0.32.1 Codefresh runtime-environment agent vert 0.1.0 Simple CLI for comparing two or more versions yq 3.3.2 yq is a portable command-line YAML processor ``` + diff --git a/vendor/terraform-0.11/Makefile b/vendor/terraform-0.11/Makefile index 1c1ff792e8..40b8f0c508 100644 --- a/vendor/terraform-0.11/Makefile +++ b/vendor/terraform-0.11/Makefile @@ -1,14 +1,21 @@ # Package details export VENDOR ?= hashicorp -export APK_PACKAGE_NAME = terraform_0.11 export PACKAGE_REPO_NAME = terraform +export PACKAGE_EXE = terraform +export MASTER_PACKAGE_NAME = terraform +export MAJOR_VERSION = 0.11 +export PACKAGE_NAME = $(MASTER_PACKAGE_NAME)-$(MAJOR_VERSION) include ../../tasks/Makefile.package include ../../tasks/Makefile.apk +# NOTE: This build uses a custom build template ./APKBUILD export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary export DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(PACKAGE_VERSION)/terraform_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip export AUTO_UPDATE_ENABLED = false +export APKBUILD_DEPENDS += dpkg +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export INSTALL_DIR = /usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin install: mkdir -p $(TMP)/$(PACKAGE_NAME) diff --git a/vendor/terraform-0.11/terraform-0.11.post-deinstall b/vendor/terraform-0.11/terraform-0.11.post-deinstall new file mode 100755 index 0000000000..d6a1e735c8 --- /dev/null +++ b/vendor/terraform-0.11/terraform-0.11.post-deinstall @@ -0,0 +1,11 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=terraform +MAJOR_VERSION=0.11 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +update-alternatives --remove ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${PACKAGE_NAME}-direnv ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/terraform-0.11/terraform-0.11.post-install b/vendor/terraform-0.11/terraform-0.11.post-install new file mode 100755 index 0000000000..fbdc57209f --- /dev/null +++ b/vendor/terraform-0.11/terraform-0.11.post-install @@ -0,0 +1,29 @@ +#!/bin/sh +MASTER_PACKAGE_NAME=terraform +PRIORITY="11" +MAJOR_VERSION="0.${PRIORITY}" +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} + +# INSTALL_DIR is where the binary is ultimately installed +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +DIRENV_SUPPORT_DIR=/usr/local/terraform/${MAJOR_VERSION}/bin + +mkdir -p ${INSTALL_DIR} +mkdir -p ${DIRENV_SUPPORT_DIR} + +# --install +# is the symlink people will actually invoke +# is the name for this group of alternatives +# is the location of the actual binary +# is an integer. The alternative with the highest priority +# number will be automatically selected + +## Install terraform-0.11 command +update-alternatives --install /usr/bin/${PACKAGE_NAME} ${PACKAGE_NAME} ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} 1 + +# Install /usr/local/terraform/0.11/bin/terraform for `direnv/use terraform` +update-alternatives --install ${DIRENV_SUPPORT_DIR}/terraform ${PACKAGE_NAME}-direnv ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} 1 + +# Install terraform command +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} ${PRIORITY} +exit 0 diff --git a/vendor/terraform-0.12/APKBUILD.draft b/vendor/terraform-0.12/APKBUILD.draft new file mode 100644 index 0000000000..b369e60f6f --- /dev/null +++ b/vendor/terraform-0.12/APKBUILD.draft @@ -0,0 +1,42 @@ +# Custom Build for Terraform with hardcoded values +# Contributor: Cloud Posse, LLC +# Maintainer: Cloud Posse, LLC +# vim: filetype=sh + +pkgver="${PACKAGE_VERSION}" +pkgrel="${PACKAGE_RELEASE}" +mjrver=${pkgver%.*} +pkgname="terraform_${mjrver}" +pkgdesc="${PACKAGE_DESCRIPTION}" +repo=vendor +arch="x86_64" +url="https://releases.hashicorp.com/terraform/${pkgver}/terraform_${pkgver}_linux_amd64.zip" +license="MPL-2.0" +depends="dpkg" +makedepends="" +source="https://releases.hashicorp.com/terraform/${pkgver}/terraform_${pkgver}_linux_amd64.zip" +builddir="$srcdir/$pkgname-$pkgver" +install="${pkgname}.post-install ${pkgname}.post-deinstall" +installdir=${INSTALL_DIR:-/usr/bin/} +exe=terraform + +build() { +: +} + +check() { + cd $srcdir + ./terraform version +} + +# This is the packaging stage. +# The built application and support files should be installed into $pkgdir. +package() { + echo "Installing packges to ${pkgdir}" + mkdir -p "${pkgdir}/${installdir}" + for cmd in ${exe}; do + install -m 755 "$(realpath "${srcdir}/${cmd}")" "${pkgdir}/${installdir}/${cmd}" + done + echo "Binaries staged for installation in ${pkgdir}" + find "${pkgdir}" +} diff --git a/vendor/terraform-0.12/Makefile b/vendor/terraform-0.12/Makefile index c39d8be783..78dc11052d 100644 --- a/vendor/terraform-0.12/Makefile +++ b/vendor/terraform-0.12/Makefile @@ -1,14 +1,21 @@ # Package details export VENDOR ?= hashicorp -export APK_PACKAGE_NAME = terraform_0.12 export PACKAGE_REPO_NAME = terraform +export PACKAGE_EXE = terraform +export MASTER_PACKAGE_NAME = terraform +export MAJOR_VERSION = 0.12 +export PACKAGE_NAME = $(MASTER_PACKAGE_NAME)-$(MAJOR_VERSION) include ../../tasks/Makefile.package include ../../tasks/Makefile.apk +# NOTE: This build uses a custom build template ./APKBUILD export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary export DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(PACKAGE_VERSION)/terraform_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip export AUTO_UPDATE_ENABLED = false +export APKBUILD_DEPENDS += dpkg +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export INSTALL_DIR = /usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin install: mkdir -p $(TMP)/$(PACKAGE_NAME) diff --git a/vendor/terraform-0.12/terraform-0.12.post-deinstall b/vendor/terraform-0.12/terraform-0.12.post-deinstall new file mode 100755 index 0000000000..59b06e8606 --- /dev/null +++ b/vendor/terraform-0.12/terraform-0.12.post-deinstall @@ -0,0 +1,11 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=terraform +MAJOR_VERSION=0.12 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +update-alternatives --remove ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${PACKAGE_NAME}-direnv ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/terraform-0.12/terraform-0.12.post-install b/vendor/terraform-0.12/terraform-0.12.post-install new file mode 100755 index 0000000000..6fddc2b805 --- /dev/null +++ b/vendor/terraform-0.12/terraform-0.12.post-install @@ -0,0 +1,29 @@ +#!/bin/sh +MASTER_PACKAGE_NAME=terraform +PRIORITY="12" +MAJOR_VERSION="0.${PRIORITY}" +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} + +# INSTALL_DIR is where the binary is ultimately installed +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +DIRENV_SUPPORT_DIR=/usr/local/terraform/${MAJOR_VERSION}/bin + +mkdir -p ${INSTALL_DIR} +mkdir -p ${DIRENV_SUPPORT_DIR} + +# --install +# is the symlink people will actually invoke +# is the name for this group of alternatives +# is the location of the actual binary +# is an integer. The alternative with the highest priority +# number will be automatically selected + +## Install terraform-0.12 command +update-alternatives --install /usr/bin/${PACKAGE_NAME} ${PACKAGE_NAME} ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} 1 + +# Install /usr/local/terraform/0.12/bin/terraform for `direnv/use terraform` +update-alternatives --install ${DIRENV_SUPPORT_DIR}/terraform ${PACKAGE_NAME}-direnv ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} 1 + +# Install terraform command +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} ${PRIORITY} +exit 0 diff --git a/vendor/terraform-0.13/Makefile b/vendor/terraform-0.13/Makefile index 089ed1dc59..cb82f54b1c 100644 --- a/vendor/terraform-0.13/Makefile +++ b/vendor/terraform-0.13/Makefile @@ -1,14 +1,21 @@ # Package details export VENDOR ?= hashicorp -export APK_PACKAGE_NAME = terraform_0.13 export PACKAGE_REPO_NAME = terraform +export PACKAGE_EXE = terraform +export MASTER_PACKAGE_NAME = terraform +export MAJOR_VERSION = 0.13 +export PACKAGE_NAME = $(MASTER_PACKAGE_NAME)-$(MAJOR_VERSION) include ../../tasks/Makefile.package include ../../tasks/Makefile.apk +# NOTE: This build uses a custom build template ./APKBUILD export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary export DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(PACKAGE_VERSION)/terraform_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip export AUTO_UPDATE_ENABLED = false +export APKBUILD_DEPENDS += dpkg +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export INSTALL_DIR = /usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin install: mkdir -p $(TMP)/$(PACKAGE_NAME) diff --git a/vendor/terraform-0.13/terraform-0.13.post-deinstall b/vendor/terraform-0.13/terraform-0.13.post-deinstall new file mode 100755 index 0000000000..468c878dbc --- /dev/null +++ b/vendor/terraform-0.13/terraform-0.13.post-deinstall @@ -0,0 +1,11 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=terraform +MAJOR_VERSION=0.13 +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +update-alternatives --remove ${PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${PACKAGE_NAME}-direnv ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/terraform-0.13/terraform-0.13.post-install b/vendor/terraform-0.13/terraform-0.13.post-install new file mode 100755 index 0000000000..aabf92061f --- /dev/null +++ b/vendor/terraform-0.13/terraform-0.13.post-install @@ -0,0 +1,29 @@ +#!/bin/sh +MASTER_PACKAGE_NAME=terraform +PRIORITY="13" +MAJOR_VERSION="0.${PRIORITY}" +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} + +# INSTALL_DIR is where the binary is ultimately installed +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin +DIRENV_SUPPORT_DIR=/usr/local/terraform/${MAJOR_VERSION}/bin + +mkdir -p ${INSTALL_DIR} +mkdir -p ${DIRENV_SUPPORT_DIR} + +# --install +# is the symlink people will actually invoke +# is the name for this group of alternatives +# is the location of the actual binary +# is an integer. The alternative with the highest priority +# number will be automatically selected + +## Install terraform-0.13 command +update-alternatives --install /usr/bin/${PACKAGE_NAME} ${PACKAGE_NAME} ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} 1 + +# Install /usr/local/terraform/0.13/bin/terraform for `direnv/use terraform` +update-alternatives --install ${DIRENV_SUPPORT_DIR}/terraform ${PACKAGE_NAME}-direnv ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} 1 + +# Install terraform command +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} ${PRIORITY} +exit 0 diff --git a/vendor/terraform/Makefile b/vendor/terraform/Makefile index b336e7a84f..077683688f 100644 --- a/vendor/terraform/Makefile +++ b/vendor/terraform/Makefile @@ -1,10 +1,13 @@ +export MASTER_PACKAGE_NAME = terraform +export MAJOR_VERSION = latest + include ../../tasks/Makefile.package include ../../tasks/Makefile.apk -# Package details -export VENDOR ?= hashicorp -export DOWNLOAD_URL ?= https://releases.hashicorp.com/$(PACKAGE_NAME)/$(PACKAGE_VERSION)/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip - ## Run go generate in all packages +export DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(PACKAGE_VERSION)/terraform_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip +export APKBUILD_DEPENDS += dpkg +export APKBUILD_INSTALL_SCRIPTS = $(PACKAGE_NAME).post-install $(PACKAGE_NAME).post-deinstall +export INSTALL_DIR = /usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary install: diff --git a/vendor/terraform/terraform.post-deinstall b/vendor/terraform/terraform.post-deinstall new file mode 100755 index 0000000000..17f8345f1b --- /dev/null +++ b/vendor/terraform/terraform.post-deinstall @@ -0,0 +1,9 @@ +#!/bin/sh +# This is an Alpine `deinstall` hook that removes the alternative +MASTER_PACKAGE_NAME=terraform +MAJOR_VERSION=latest +PACKAGE_NAME=${MASTER_PACKAGE_NAME}-${MAJOR_VERSION} +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +update-alternatives --remove ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${PACKAGE_NAME} --quiet +exit 0 diff --git a/vendor/terraform/terraform.post-install b/vendor/terraform/terraform.post-install new file mode 100755 index 0000000000..ac445f5094 --- /dev/null +++ b/vendor/terraform/terraform.post-install @@ -0,0 +1,23 @@ +#!/bin/sh +MASTER_PACKAGE_NAME=terraform +# Special settings for the base package to be +# intalled as "latest" and automatically selected +PRIORITY="100" +MAJOR_VERSION="latest" +PACKAGE_NAME=${MASTER_PACKAGE_NAME} + +# INSTALL_DIR is where the binary is ultimately installed +INSTALL_DIR=/usr/share/${MASTER_PACKAGE_NAME}/${MAJOR_VERSION}/bin + +mkdir -p ${INSTALL_DIR} + +# --install +# is the symlink people will actually invoke +# is the name for this group of alternatives +# is the location of the actual binary +# is an integer. The alternative with the highest priority +# number will be automatically selected + +# Install terraform command +update-alternatives --install /usr/bin/${MASTER_PACKAGE_NAME} ${MASTER_PACKAGE_NAME} ${INSTALL_DIR}/${MASTER_PACKAGE_NAME} ${PRIORITY} +exit 0 diff --git a/vendor/terraform-0.11/APKBUILD b/vendor/terraform_0.11/APKBUILD similarity index 100% rename from vendor/terraform-0.11/APKBUILD rename to vendor/terraform_0.11/APKBUILD diff --git a/vendor/terraform_0.11/DESCRIPTION b/vendor/terraform_0.11/DESCRIPTION new file mode 100644 index 0000000000..090d78dfcd --- /dev/null +++ b/vendor/terraform_0.11/DESCRIPTION @@ -0,0 +1 @@ +Terraform (Deprecated package. Use terraform-0.11 instead) diff --git a/vendor/terraform_0.11/LICENSE b/vendor/terraform_0.11/LICENSE new file mode 100644 index 0000000000..eb86038d19 --- /dev/null +++ b/vendor/terraform_0.11/LICENSE @@ -0,0 +1 @@ +MPL-2.0 diff --git a/vendor/terraform_0.11/Makefile b/vendor/terraform_0.11/Makefile new file mode 100644 index 0000000000..1c1ff792e8 --- /dev/null +++ b/vendor/terraform_0.11/Makefile @@ -0,0 +1,21 @@ +# Package details +export VENDOR ?= hashicorp +export APK_PACKAGE_NAME = terraform_0.11 +export PACKAGE_REPO_NAME = terraform + +include ../../tasks/Makefile.package +include ../../tasks/Makefile.apk + +export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary +export DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(PACKAGE_VERSION)/terraform_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip +export AUTO_UPDATE_ENABLED = false + +install: + mkdir -p $(TMP)/$(PACKAGE_NAME) + $(CURL) -o $(TMP)/$(PACKAGE_NAME)/$(PACKAGE_NAME).zip $(DOWNLOAD_URL) + unzip -d $(TMP)/$(PACKAGE_NAME) $(TMP)/$(PACKAGE_NAME)/$(PACKAGE_NAME).zip + mv $(TMP)/$(PACKAGE_NAME)/terraform $(INSTALL_PATH)/$(PACKAGE_EXE) + chmod +x $(INSTALL_PATH)/$(PACKAGE_EXE) + +test: + $(PACKAGE_EXE) version diff --git a/vendor/terraform_0.11/RELEASE b/vendor/terraform_0.11/RELEASE new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/vendor/terraform_0.11/RELEASE @@ -0,0 +1 @@ +0 diff --git a/vendor/terraform_0.11/VERSION b/vendor/terraform_0.11/VERSION new file mode 100644 index 0000000000..a95c45d4fb --- /dev/null +++ b/vendor/terraform_0.11/VERSION @@ -0,0 +1 @@ +0.11.14 diff --git a/vendor/terraform-0.11/terraform_0.11.post-deinstall b/vendor/terraform_0.11/terraform_0.11.post-deinstall similarity index 100% rename from vendor/terraform-0.11/terraform_0.11.post-deinstall rename to vendor/terraform_0.11/terraform_0.11.post-deinstall diff --git a/vendor/terraform-0.11/terraform_0.11.post-install b/vendor/terraform_0.11/terraform_0.11.post-install similarity index 100% rename from vendor/terraform-0.11/terraform_0.11.post-install rename to vendor/terraform_0.11/terraform_0.11.post-install diff --git a/vendor/terraform-0.12/APKBUILD b/vendor/terraform_0.12/APKBUILD similarity index 100% rename from vendor/terraform-0.12/APKBUILD rename to vendor/terraform_0.12/APKBUILD diff --git a/vendor/terraform_0.12/DESCRIPTION b/vendor/terraform_0.12/DESCRIPTION new file mode 100644 index 0000000000..27235d1640 --- /dev/null +++ b/vendor/terraform_0.12/DESCRIPTION @@ -0,0 +1 @@ +Terraform (Deprecated package. Use terraform-0.12 instead) diff --git a/vendor/terraform_0.12/LICENSE b/vendor/terraform_0.12/LICENSE new file mode 100644 index 0000000000..eb86038d19 --- /dev/null +++ b/vendor/terraform_0.12/LICENSE @@ -0,0 +1 @@ +MPL-2.0 diff --git a/vendor/terraform_0.12/Makefile b/vendor/terraform_0.12/Makefile new file mode 100644 index 0000000000..c39d8be783 --- /dev/null +++ b/vendor/terraform_0.12/Makefile @@ -0,0 +1,21 @@ +# Package details +export VENDOR ?= hashicorp +export APK_PACKAGE_NAME = terraform_0.12 +export PACKAGE_REPO_NAME = terraform + +include ../../tasks/Makefile.package +include ../../tasks/Makefile.apk + +export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary +export DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(PACKAGE_VERSION)/terraform_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip +export AUTO_UPDATE_ENABLED = false + +install: + mkdir -p $(TMP)/$(PACKAGE_NAME) + $(CURL) -o $(TMP)/$(PACKAGE_NAME)/$(PACKAGE_NAME).zip $(DOWNLOAD_URL) + unzip -d $(TMP)/$(PACKAGE_NAME) $(TMP)/$(PACKAGE_NAME)/$(PACKAGE_NAME).zip + mv $(TMP)/$(PACKAGE_NAME)/terraform $(INSTALL_PATH)/$(PACKAGE_EXE) + chmod +x $(INSTALL_PATH)/$(PACKAGE_EXE) + +test: + $(PACKAGE_EXE) version diff --git a/vendor/terraform_0.12/RELEASE b/vendor/terraform_0.12/RELEASE new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/vendor/terraform_0.12/RELEASE @@ -0,0 +1 @@ +0 diff --git a/vendor/terraform_0.12/VERSION b/vendor/terraform_0.12/VERSION new file mode 100644 index 0000000000..58828a74c7 --- /dev/null +++ b/vendor/terraform_0.12/VERSION @@ -0,0 +1 @@ +0.12.29 diff --git a/vendor/terraform-0.12/terraform_0.12.post-deinstall b/vendor/terraform_0.12/terraform_0.12.post-deinstall similarity index 100% rename from vendor/terraform-0.12/terraform_0.12.post-deinstall rename to vendor/terraform_0.12/terraform_0.12.post-deinstall diff --git a/vendor/terraform-0.12/terraform_0.12.post-install b/vendor/terraform_0.12/terraform_0.12.post-install similarity index 100% rename from vendor/terraform-0.12/terraform_0.12.post-install rename to vendor/terraform_0.12/terraform_0.12.post-install diff --git a/vendor/terraform-0.13/APKBUILD b/vendor/terraform_0.13/APKBUILD similarity index 100% rename from vendor/terraform-0.13/APKBUILD rename to vendor/terraform_0.13/APKBUILD diff --git a/vendor/terraform_0.13/DESCRIPTION b/vendor/terraform_0.13/DESCRIPTION new file mode 100644 index 0000000000..5e63320cb2 --- /dev/null +++ b/vendor/terraform_0.13/DESCRIPTION @@ -0,0 +1 @@ +Terraform (Deprecated package. Use terraform-0.13 instead) diff --git a/vendor/terraform_0.13/LICENSE b/vendor/terraform_0.13/LICENSE new file mode 100644 index 0000000000..eb86038d19 --- /dev/null +++ b/vendor/terraform_0.13/LICENSE @@ -0,0 +1 @@ +MPL-2.0 diff --git a/vendor/terraform_0.13/Makefile b/vendor/terraform_0.13/Makefile new file mode 100644 index 0000000000..089ed1dc59 --- /dev/null +++ b/vendor/terraform_0.13/Makefile @@ -0,0 +1,21 @@ +# Package details +export VENDOR ?= hashicorp +export APK_PACKAGE_NAME = terraform_0.13 +export PACKAGE_REPO_NAME = terraform + +include ../../tasks/Makefile.package +include ../../tasks/Makefile.apk + +export APK_BUILD_TEMPLATE ?= APKBUILD.github-binary +export DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(PACKAGE_VERSION)/terraform_$(PACKAGE_VERSION)_$(OS)_$(ARCH).zip +export AUTO_UPDATE_ENABLED = false + +install: + mkdir -p $(TMP)/$(PACKAGE_NAME) + $(CURL) -o $(TMP)/$(PACKAGE_NAME)/$(PACKAGE_NAME).zip $(DOWNLOAD_URL) + unzip -d $(TMP)/$(PACKAGE_NAME) $(TMP)/$(PACKAGE_NAME)/$(PACKAGE_NAME).zip + mv $(TMP)/$(PACKAGE_NAME)/terraform $(INSTALL_PATH)/$(PACKAGE_EXE) + chmod +x $(INSTALL_PATH)/$(PACKAGE_EXE) + +test: + $(PACKAGE_EXE) version diff --git a/vendor/terraform_0.13/RELEASE b/vendor/terraform_0.13/RELEASE new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/vendor/terraform_0.13/RELEASE @@ -0,0 +1 @@ +0 diff --git a/vendor/terraform_0.13/VERSION b/vendor/terraform_0.13/VERSION new file mode 100644 index 0000000000..54d1a4f2a4 --- /dev/null +++ b/vendor/terraform_0.13/VERSION @@ -0,0 +1 @@ +0.13.0 diff --git a/vendor/terraform-0.13/terraform_0.13.post-deinstall b/vendor/terraform_0.13/terraform_0.13.post-deinstall similarity index 100% rename from vendor/terraform-0.13/terraform_0.13.post-deinstall rename to vendor/terraform_0.13/terraform_0.13.post-deinstall diff --git a/vendor/terraform-0.13/terraform_0.13.post-install b/vendor/terraform_0.13/terraform_0.13.post-install similarity index 100% rename from vendor/terraform-0.13/terraform_0.13.post-install rename to vendor/terraform_0.13/terraform_0.13.post-install