pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
terraform-provider-local: Start using terraform/provider.mk
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sun Mar 28 00:23:29 2021 +0100
Changeset: 7d6ff499e726562edfc130c505ec4127afcffe39
Modified Files:
terraform-provider-local/Makefile
Log Message:
terraform-provider-local: Start using terraform/provider.mk
(Please note that terraform/provider.mk should be included before
lang/go/go-{module,package}.mk so the terraform/provider.mk do-install:
target is used instead of go-{module,package}.mk one!)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d6ff499e726562edfc130c505ec4127afcffe39
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
terraform-provider-local/Makefile | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
diffs:
diff --git a/terraform-provider-local/Makefile b/terraform-provider-local/Makefile
index 373d7a8b52..6b9683e83e 100644
--- a/terraform-provider-local/Makefile
+++ b/terraform-provider-local/Makefile
@@ -10,30 +10,15 @@ HOMEPAGE= https://www.terraform.io/docs/providers/local/
COMMENT= Terraform provider for local resources
LICENSE= mpl-2.0
-DEPENDS+= terraform-[0-9]*:../../net/terraform
-
GO_BUILD_PATTERN= .
UNLIMIT_RESOURCES= datasize virtualsize
-TERRAFORM_PROVIDER_REGISTRY= registry.terraform.io
+TERRAFORM_PROVIDER_BIN= terraform-provider-local
TERRAFORM_PROVIDER_NAME= hashicorp/local
-TERRAFORM_PROVIDER_VERSION= ${PKGVERSION_NOREV}
-TERRAFORM_PROVIDER_DIR= share/terraform/plugins/${TERRFORM_PROVIDER_REGISTRY}/${TERRAFORM_PROVIDER_NAME}/${TERRAFORM_PROVIDER_VERSION}/${GO_PLATFORM}
-
-PLIST_SUBST+= TERRAFORM_PROVIDER_NAME=${TERRAFORM_PROVIDER_NAME}
-PLIST_SUBST+= TERRAFORM_PROVIDER_VERSION=${TERRAFORM_PROVIDER_VERSION}
-
-PRINT_PLIST_AWK+= { sub("${TERRAFORM_PROVIDER_NAME}", "$${TERRAFORM_PROVIDER_NAME}") }
-PRINT_PLIST_AWK+= { sub("${TERRAFORM_PROVIDER_VERSION}", "$${TERRAFORM_PROVIDER_VERSION}") }
-
-INSTALLATION_DIRS+= ${TERRAFORM_PROVIDER_DIR}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/terraform-provider-local \
- ${DESTDIR}${PREFIX}/${TERRAFORM_PROVIDER_DIR}
.include "go-modules.mk"
+.include "../../wip/terraform/provider.mk"
.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index