diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-07-05 18:02:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-07-05 18:09:08 +0000 |
commit | d3f3951d4d91b7ec8756278793e6f60dcc344e0c (patch) | |
tree | 3cc9e1f14ffc149ae0a9cd0d42ed76b56c0a5f68 /testing | |
parent | 5b7befa1b989315a57f4fb49b8381ce06ded96c9 (diff) | |
download | aports-d3f3951d4d91b7ec8756278793e6f60dcc344e0c.tar.bz2 aports-d3f3951d4d91b7ec8756278793e6f60dcc344e0c.tar.xz |
testing/terraform: Cleanup for more current conventions
Diffstat (limited to 'testing')
-rw-r--r-- | testing/terraform/APKBUILD | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/testing/terraform/APKBUILD b/testing/terraform/APKBUILD index 8ff388167a..83f722e44c 100644 --- a/testing/terraform/APKBUILD +++ b/testing/terraform/APKBUILD @@ -14,41 +14,40 @@ install="" subpackages="" source="${pkgname}-${pkgver}.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz" -_builddir="${srcdir}/terraform-${pkgver}" +builddir="${srcdir}/terraform-${pkgver}" _godir="${srcdir}/go" _gourl="github.com/hashicorp/terraform" -_providers="provider-atlas provider-aws provider-azure provider-azurerm provider-chef provider-clc provider-cloudflare provider-cloudstack provider-cobbler provider-consul provider-datadog provider-digitalocean provider-dme provider-dnsimple provider-docker provider-dyn provider-fastly provider-github provider-google provider-heroku provider-influxdb provider-librato provider-mailgun provider-mysql provider-null provider-openstack provider-packet provider-postgresql provider-powerdns provider-rundeck provider-softlayer provider-statuscake provider-template provider-terraform provider-tls provider-triton provider-ultradns provider-vcd provider-vsphere" -_provisioners="provisioner-chef provisioner-file provisioner-local-exec provisioner-remote-exec" +_providers="provider-atlas provider-aws provider-azure provider-azurerm + provider-chef provider-clc provider-cloudflare provider-cloudstack + provider-cobbler provider-consul provider-datadog provider-digitalocean + provider-dme provider-dnsimple provider-docker provider-dyn provider-fastly + provider-github provider-google provider-heroku provider-influxdb + provider-librato provider-mailgun provider-mysql provider-null + provider-openstack provider-packet provider-postgresql provider-powerdns + provider-rundeck provider-softlayer provider-statuscake provider-template + provider-terraform provider-tls provider-triton provider-ultradns + provider-vcd provider-vsphere" -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +_provisioners="provisioner-chef provisioner-file provisioner-local-exec + provisioner-remote-exec" build() { mkdir -p ${_godir}/bin ${_godir}/src/github.com/hashicorp - ln -sf ${_builddir} ${_godir}/src/github.com/hashicorp/terraform + ln -sf ${builddir} ${_godir}/src/github.com/hashicorp/terraform cd ${_godir}/src/${_gourl} export GOPATH="${_godir}" go generate $(go list ./... | grep -v /vendor/) - go install -v ${_gourl} + go install -v ${_gourl} || return 1 - for binary in ${_providers} - do - go install -v ${_gourl}/builtin/bins/${binary} + for binary in ${_providers}; do + go install -v ${_gourl}/builtin/bins/${binary} || return 1 done - for binary in ${_provisioners} - do - go install -v ${_gourl}/builtin/bins/${binary} + for binary in ${_provisioners}; do + go install -v ${_gourl}/builtin/bins/${binary} || return 1 done } @@ -60,14 +59,12 @@ package() { install -Dm755 terraform \ "${pkgdir}/usr/bin/terraform" || return 1 - for binary in ${_providers} - do + for binary in ${_providers}; do install -Dm755 ${binary} \ "${pkgdir}/usr/bin/terraform-${binary}" || return 1 done - for binary in ${_provisioners} - do + for binary in ${_provisioners}; do install -Dm755 ${binary} \ "${pkgdir}/usr/bin/terraform-${binary}" || return 1 done |