Add go-consul-api package

This commit is contained in:
gavan 2017-08-17 01:21:41 +00:00
parent 967053b9f7
commit a441cf94c2
5 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,3 @@
This package provides the consulapi package which attempts to provide programmatic access to the full Consul API.
Currently, all of the Consul APIs included in version 0.4 are supported.

View file

@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.1 2017/08/17 01:21:41 gavan Exp $
DISTNAME= consul-api-0.0.20150107
PKGNAME= go-${DISTNAME}
MASTER_SITES= ${MASTER_SITE_GITHUB:=armon/}
CATEGORIES= devel
GITHUB_TAG= dcfedd50ed5334f96adee43fc88518a4f095e15c
GITHUB_PROJECT= ${PKGBASE:S/^go-//}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/armon/consul-api
COMMENT= Golang API client for Consul
LICENSE= mpl-2.0
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
GO_SRCPATH= github.com/armon/consul-api
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"

23
devel/go-consul-api/PLIST Normal file
View file

@ -0,0 +1,23 @@
@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:21:41 gavan Exp $
gopkg/pkg/${GO_PLATFORM}/github.com/armon/consul-api.a
gopkg/src/github.com/armon/consul-api/LICENSE
gopkg/src/github.com/armon/consul-api/README.md
gopkg/src/github.com/armon/consul-api/acl.go
gopkg/src/github.com/armon/consul-api/acl_test.go
gopkg/src/github.com/armon/consul-api/agent.go
gopkg/src/github.com/armon/consul-api/agent_test.go
gopkg/src/github.com/armon/consul-api/api.go
gopkg/src/github.com/armon/consul-api/api_test.go
gopkg/src/github.com/armon/consul-api/catalog.go
gopkg/src/github.com/armon/consul-api/catalog_test.go
gopkg/src/github.com/armon/consul-api/event.go
gopkg/src/github.com/armon/consul-api/event_test.go
gopkg/src/github.com/armon/consul-api/health.go
gopkg/src/github.com/armon/consul-api/health_test.go
gopkg/src/github.com/armon/consul-api/kv.go
gopkg/src/github.com/armon/consul-api/kv_test.go
gopkg/src/github.com/armon/consul-api/session.go
gopkg/src/github.com/armon/consul-api/session_test.go
gopkg/src/github.com/armon/consul-api/status.go
gopkg/src/github.com/armon/consul-api/status_test.go
@pkgdir bin

View file

@ -0,0 +1,17 @@
# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:21:41 gavan Exp $
BUILDLINK_TREE+= go-consul-api
.if !defined(GO_CONSUL_API_BUILDLINK3_MK)
GO_CONSUL_API_BUILDLINK3_MK:=
BUILDLINK_CONTENTS_FILTER.go-consul-api= ${EGREP} gopkg/
BUILDLINK_DEPMETHOD.go-consul-api?= build
BUILDLINK_API_DEPENDS.go-consul-api+= go-consul-api>=0.0
BUILDLINK_PKGSRCDIR.go-consul-api?= ../../devel/go-consul-api
.endif # GO_CONSUL_API_BUILDLINK3_MK
BUILDLINK_TREE+= -go-consul-api

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2017/08/17 01:21:41 gavan Exp $
SHA1 (consul-api-0.0.20150107-dcfedd50ed5334f96adee43fc88518a4f095e15c.tar.gz) = d2476f2bbd9365b0d556534f18084adceaf85663
RMD160 (consul-api-0.0.20150107-dcfedd50ed5334f96adee43fc88518a4f095e15c.tar.gz) = 90d00ed33e3f68acddd244f2f302e6789b3a678e
SHA512 (consul-api-0.0.20150107-dcfedd50ed5334f96adee43fc88518a4f095e15c.tar.gz) = 726be126a64bd295165e884ffef255e3949c2334947e62cf73325f70d20913c7cc3a705266c4424ade82a8974f5b24e6bf728d8d3d40ad1adbbd26bb558f7cad
Size (consul-api-0.0.20150107-dcfedd50ed5334f96adee43fc88518a4f095e15c.tar.gz) = 17984 bytes