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>
This commit is contained in:
Julian Grinblat 2023-02-01 23:59:49 +09:00 committed by Willy Sudiarto Raharjo
parent b10378af26
commit 75d9c2dedd
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 19 additions and 14 deletions

View file

@ -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.

View file

@ -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
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 bin/terraform $PKG/usr/bin/terraform
install -D -m 0755 terraform $PKG/usr/bin/terraform
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \

View file

@ -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"