aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/terraform/Manifest2
-rw-r--r--app-admin/terraform/terraform-0.9.6.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/app-admin/terraform/Manifest b/app-admin/terraform/Manifest
new file mode 100644
index 0000000..e8cbe52
--- /dev/null
+++ b/app-admin/terraform/Manifest
@@ -0,0 +1,2 @@
+DIST terraform-0.9.6.tar.gz 16880898 SHA256 2af004ee5a155317e6df0158a5d9121d15aa349202ca7d7dd8321f2d9af2218c SHA512 63bbb018555a0b391fffb3fdb93d068d1ab368c170f84bf121b9c94f4e8fad0f6706545fbb8d8a37b8d78b03e8e1ee66e3595d369765223b511d63c7e67fa2b8 WHIRLPOOL bb1ded855d8137c857c5bfa5da70cd9407b6f2c0141c3a644ca594d2e1cfdfd640ad3ec951771c177f7e8d592004ff31315c6c8ffebad05c25a33bede565be62
+EBUILD terraform-0.9.6.ebuild 1921 SHA256 156538047597c210a585f56ce85a6066a7e44cf2abec5e32a3697a367b8a1ba2 SHA512 e0d39decd9313b3d0668b9a8782065621fa44fa148772a1c2bc6de75bde89f83aeffdbe775e46f715233a04e9be1023af79ac1d689a78e0abca0fc9df8fd93e6 WHIRLPOOL a1e8d484ec64a745ff1d0da34a84019d6d8bf648c3190b772897e517a2c78cbb52b3ae2dc8eb28eff54e024fd794206046d35bc7da7f9c92a6ad42ecce86def7
diff --git a/app-admin/terraform/terraform-0.9.6.ebuild b/app-admin/terraform/terraform-0.9.6.ebuild
new file mode 100644
index 0000000..c6e671c
--- /dev/null
+++ b/app-admin/terraform/terraform-0.9.6.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+GOLANG_PKG_IMPORTPATH="github.com/hashicorp"
+GOLANG_PKG_ARCHIVEPREFIX="v"
+#GOLANG_PKG_USE_GENERATE=1
+GOLANG_PKG_HAVE_TEST=1
+
+inherit golang-single
+
+DESCRIPTION="Terraform builds, changes, and combines infrastructure safely and efficiently"
+HOMEPAGE="http://www.terraform.io"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="amd64 x86 arm"
+
+COMMON_IUSE="chef"
+IUSE_PROVIDERS="atlas aws azure azurerm cloudflare cloudstack consul digitalocean dme dnsimple docker dyn google heroku librato mailgun +null openstack packet rundeck softlayer statuscake +template +tls vsphere vcd postgresql mysql powerdns"
+IUSE_PROVISIONERS="+file +local-exec +remote-exec"
+IUSE+=" $IUSE_PROVIDERS $IUSE_PROVISIONERS $COMMON_IUSE"
+
+# go-tools and codecgen are required by "go:generate stringer" directive
+#DEPEND="dev-go/go-tools
+# dev-go/codecgen"
+
+src_compile() {
+ # build terraform binary
+ golang-single_src_compile
+
+ # build providers binaries
+ GOLANG_PKG_BUILDPATH+=" /builtin/bins/provider-${PN}"
+ local PROVIDERS="${IUSE_PROVIDERS} ${COMMON_IUSE}"
+ for provider in ${PROVIDERS}; do
+ provider="${provider//\+/}"
+ eval use ${provider} || continue
+
+ einfo "Building provider: ${provider}"
+ GOLANG_PKG_BUILDPATH+=" /builtin/bins/provider-${provider}"
+ done
+
+ # build provisioner binaries
+ local PROVISIONERS="${IUSE_PROVISIONERS} ${COMMON_IUSE}"
+ for provisioner in ${PROVISIONERS}; do
+ provisioner="${provisioner//\+/}"
+ eval use ${provisioner} || continue
+
+ einfo "Building provisioner: ${provisioner}"
+ GOLANG_PKG_BUILDPATH+=" /builtin/bins/provisioner-${provisioner}"
+ done
+ golang-single_src_compile
+}
+
+src_install() {
+ golang-single_src_install
+
+ # prefixing all the binaries
+ for pkg in "${ED}"/usr/bin/*; do
+ [[ "${PN}" == ${pkg##*/} ]] && continue
+ mv "${pkg}" "${ED}"/usr/bin/${PN}-${pkg##*/} || die
+ done
+}