pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
terraform014: Use terraform/version.mk and add ALTERNATIVES
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sat Mar 27 15:26:10 2021 +0100
Changeset: 172ecafe5a7b338b33c626d17540dd07b7448320
Modified Files:
terraform014/Makefile
terraform014/PLIST
Added Files:
terraform014/ALTERNATIVES
Log Message:
terraform014: Use terraform/version.mk and add ALTERNATIVES
Please note that now the PKGBASE is also changed to `terraform014'
instead of `terraform'. If you would like to have a `terraform' package please
install `terraform' (this will be probably like `lang/go' though and completely
optional/avoidable to install).
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=172ecafe5a7b338b33c626d17540dd07b7448320
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
terraform014/ALTERNATIVES | 1 +
terraform014/Makefile | 9 +++++++--
terraform014/PLIST | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diffs:
diff --git a/terraform014/ALTERNATIVES b/terraform014/ALTERNATIVES
new file mode 100644
index 0000000000..a9ef6ce541
--- /dev/null
+++ b/terraform014/ALTERNATIVES
@@ -0,0 +1 @@
+bin/terraform @PREFIX@/bin/terraform014
diff --git a/terraform014/Makefile b/terraform014/Makefile
index 4eee37205f..054e44102a 100644
--- a/terraform014/Makefile
+++ b/terraform014/Makefile
@@ -1,6 +1,9 @@
# $NetBSD: Makefile,v 1.16 2021/01/27 13:35:58 leot Exp $
-DISTNAME= terraform-0.14.9
+.include "../../wip/terraform/version.mk"
+
+DISTNAME= terraform-${TERRAFORM014_VERSION}
+PKGNAME= terraform014-${TERRAFORM014_VERSION}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=hashicorp/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -14,10 +17,12 @@ GO_BUILD_PATTERN= .
CHECK_RELRO_SKIP+= bin/terraform
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
INSTALLATION_DIRS+= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/terraform ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/terraform ${DESTDIR}${PREFIX}/bin/terraform${TERRAFORMVERSSUFFIX}
.include "go-modules.mk"
diff --git a/terraform014/PLIST b/terraform014/PLIST
index ead6b2a499..2ae80a9fa1 100644
--- a/terraform014/PLIST
+++ b/terraform014/PLIST
@@ -1,2 +1,2 @@
@comment $NetBSD: PLIST,v 1.3 2020/05/29 06:27:54 adam Exp $
-bin/terraform
+bin/terraform${TERRAFORMVERSSUFFIX}
Home |
Main Index |
Thread Index |
Old Index