summaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
author Julian Grinblat <julian@dotcore.co.il>2023-02-01 23:59:49 +0900
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-04 07:20:00 +0700
commit75d9c2deddc97baf1170434088d48abd101af57a (patch)
tree497dce9a5ed73e2524b4a06b744ad6fa0b9304fd /development
parentb10378af2674aeac5a4a38b0fd36cafa0d96802d (diff)
downloadslackbuilds-75d9c2deddc97baf1170434088d48abd101af57a.tar.gz
slackbuilds-75d9c2deddc97baf1170434088d48abd101af57a.tar.xz
development/terraform: Updated for version 1.3.7.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/terraform/README4
-rw-r--r--development/terraform/terraform.SlackBuild25
-rw-r--r--development/terraform/terraform.info6
3 files changed, 20 insertions, 15 deletions
diff --git a/development/terraform/README b/development/terraform/README
index c94072c75e..8caabd3aa2 100644
--- a/development/terraform/README
+++ b/development/terraform/README
@@ -2,3 +2,7 @@ Terraform is an open-source infrastructure as code software tool
created by HashiCorp. It enables users to define and provision a
datacenter infrastructure using a high-level configuration language
known as Hashicorp Configuration Language, or optionally JSON.
+
+Warning: This SlackBuild requires network access when it runs, meaning
+it downloads files from the Internet with root access. You should
+decide for yourself whether or not you think this is a good idea.
diff --git a/development/terraform/terraform.SlackBuild b/development/terraform/terraform.SlackBuild
index 37795cb07a..103ac6809b 100644
--- a/development/terraform/terraform.SlackBuild
+++ b/development/terraform/terraform.SlackBuild
@@ -25,11 +25,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=terraform
-VERSION=${VERSION:-1.1.7}
+VERSION=${VERSION:-1.3.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-XC_OS=linux
+GOOS=linux
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -40,9 +40,9 @@ if [ -z "$ARCH" ]; then
fi
case "$ARCH" in
- x86_64) XC_ARCH=amd64 ;;
- i586) XC_ARCH=386 ;;
- *) XC_ARCH=$ARCH ;;
+ x86_64) GOARCH=amd64 ;;
+ i586) GOARCH=386 ;;
+ *) GOARCH=$ARCH ;;
esac
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
@@ -72,14 +72,15 @@ find -L . \
GOPATH=$TMP/go
mkdir -p $GOPATH
-PATH=$PATH:$GOPATH/bin \
GOPATH=$GOPATH \
-XC_ARCH=$XC_ARCH \
-XC_OS=$XC_OS \
-TF_RELEASE=1 \
-./scripts/build.sh
-
-install -D -m 0755 bin/terraform $PKG/usr/bin/terraform
+GOOS=$GOOS \
+GOARCH=$GOARCH \
+CGO_ENABLED=0 \
+go build \
+ -mod=readonly \
+ -ldflags='-w -s' # In release mode we don't want debug information in the binary
+
+install -D -m 0755 terraform $PKG/usr/bin/terraform
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
diff --git a/development/terraform/terraform.info b/development/terraform/terraform.info
index 19d3176cc9..c18b561a9c 100644
--- a/development/terraform/terraform.info
+++ b/development/terraform/terraform.info
@@ -1,8 +1,8 @@
PRGNAM="terraform"
-VERSION="1.1.7"
+VERSION="1.3.7"
HOMEPAGE="https://www.terraform.io/"
-DOWNLOAD="https://github.com/hashicorp/terraform/archive/v1.1.7/terraform-1.1.7.tar.gz"
-MD5SUM="880cea671a5c5e8bfb230760ea3f1750"
+DOWNLOAD="https://github.com/hashicorp/terraform/archive/v1.3.7/terraform-1.3.7.tar.gz"
+MD5SUM="adeeceb280d6e0d24459bee8ada3d9ed"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="google-go-lang"