summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2015-05-11 13:02:21 +0000
committerbsiegert <bsiegert@pkgsrc.org>2015-05-11 13:02:21 +0000
commitd7f2a9b9bfa55c7239202e8bbf0135ded1318ee8 (patch)
tree99f9875f4cc513ee77758222f9612c23d9883db1 /net
parente1695917348a3933b2f565a023685f658968f9ea (diff)
downloadpkgsrc-d7f2a9b9bfa55c7239202e8bbf0135ded1318ee8.tar.gz
Add a package for the metadata module that is part of the Google Cloud
Platform support for Go. This is needed to break apart a circular dependency.
Diffstat (limited to 'net')
-rw-r--r--net/Makefile3
-rw-r--r--net/gcloud-golang-metadata/DESCR5
-rw-r--r--net/gcloud-golang-metadata/Makefile28
-rw-r--r--net/gcloud-golang-metadata/PLIST7
-rw-r--r--net/gcloud-golang-metadata/buildlink3.mk15
-rw-r--r--net/gcloud-golang-metadata/distinfo5
6 files changed, 62 insertions, 1 deletions
diff --git a/net/Makefile b/net/Makefile
index 55462da4918..a3d51bac594 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1067 2015/04/30 06:22:33 mef Exp $
+# $NetBSD: Makefile,v 1.1068 2015/05/11 13:02:21 bsiegert Exp $
#
COMMENT= Networking tools
@@ -145,6 +145,7 @@ SUBDIR+= freerdp
SUBDIR+= ftplibpp
SUBDIR+= ftpproxy
SUBDIR+= gated
+SUBDIR+= gcloud-golang-metadata
SUBDIR+= get-flash-videos
SUBDIR+= get_iplayer
SUBDIR+= gethost
diff --git a/net/gcloud-golang-metadata/DESCR b/net/gcloud-golang-metadata/DESCR
new file mode 100644
index 00000000000..cbb80c5c0d4
--- /dev/null
+++ b/net/gcloud-golang-metadata/DESCR
@@ -0,0 +1,5 @@
+Package metadata provides access to Google Compute Engine (GCE) metadata
+and API service accounts.
+
+This package is a wrapper around the GCE metadata service, as documented
+at https://developers.google.com/compute/docs/metadata.
diff --git a/net/gcloud-golang-metadata/Makefile b/net/gcloud-golang-metadata/Makefile
new file mode 100644
index 00000000000..a6e180b8e85
--- /dev/null
+++ b/net/gcloud-golang-metadata/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2015/05/11 13:02:21 bsiegert Exp $
+#
+
+DISTNAME= gcloud-golang
+PKGNAME= gcloud-golang-metadata-20150310
+GITHUB_PROJECT= ${DISTNAME}
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=GoogleCloudPlatform/}
+GITHUB_TAG= 9e1852f597
+
+MAINTAINER= bsiegert@NetBSD.org
+HOMEPAGE= http://golang.org/
+COMMENT= Google Compute Engine metadata package
+LICENSE= modified-bsd
+
+GO_SRCPATH= google.golang.org/cloud
+GO_BUILD_PATTERN= ${GO_SRCPATH}/compute/metadata
+GO_DIST_BASE= ${DISTNAME}-${GITHUB_TAG}*
+
+# Remove all code except compute/metadata and internal
+pre-patch:
+ ${RM} -fr ${WRKSRC}/[^ci]* ${WRKSRC}/cloud*go
+ ${RM} -fr ${WRKSRC}/internal/datastore
+ ${RM} -fr ${WRKSRC}/internal/testutil
+
+.include "../../net/go-net/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/gcloud-golang-metadata/PLIST b/net/gcloud-golang-metadata/PLIST
new file mode 100644
index 00000000000..06331c36cba
--- /dev/null
+++ b/net/gcloud-golang-metadata/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2015/05/11 13:02:21 bsiegert Exp $
+gopkg/pkg/${GO_PLATFORM}/google.golang.org/cloud/compute/metadata.a
+gopkg/pkg/${GO_PLATFORM}/google.golang.org/cloud/internal.a
+gopkg/src/google.golang.org/cloud/compute/metadata/go13.go
+gopkg/src/google.golang.org/cloud/compute/metadata/metadata.go
+gopkg/src/google.golang.org/cloud/container/container.go
+gopkg/src/google.golang.org/cloud/internal/cloud.go
diff --git a/net/gcloud-golang-metadata/buildlink3.mk b/net/gcloud-golang-metadata/buildlink3.mk
new file mode 100644
index 00000000000..bafa1f5a7c4
--- /dev/null
+++ b/net/gcloud-golang-metadata/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/05/11 13:02:21 bsiegert Exp $
+
+BUILDLINK_TREE+= gcloud-golang-metadata
+
+.if !defined(GCLOUD_GOLANG_METADATA_BUILDLINK3_MK)
+GCLOUD_GOLANG_METADATA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gcloud-golang-metadata+= gcloud-golang-metadata>=20150310
+BUILDLINK_PKGSRCDIR.gcloud-golang-metadata?= ../../net/gcloud-golang-metadata
+BUILDLINK_DEPMETHOD.gcloud-golang-metadata?= build
+
+.include "../../net/go-net/buildlink3.mk"
+.endif # GCLOUD_GOLANG_METADATA_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -gcloud-golang-metadata
diff --git a/net/gcloud-golang-metadata/distinfo b/net/gcloud-golang-metadata/distinfo
new file mode 100644
index 00000000000..8a733d7ecfb
--- /dev/null
+++ b/net/gcloud-golang-metadata/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2015/05/11 13:02:21 bsiegert Exp $
+
+SHA1 (gcloud-golang-9e1852f597.tar.gz) = 6c0ae291809c101ef2ddb1cd1d8c1bfc3fdcf53e
+RMD160 (gcloud-golang-9e1852f597.tar.gz) = 1da0c142082903868c2e878ba3101c1773d9cfb6
+Size (gcloud-golang-9e1852f597.tar.gz) = 88037 bytes