pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add go-collectd, go language bindings towards collectd.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Thu Jan 19 18:23:18 2017 +0100
Changeset:	4a1c0c406d1785a77f12baf363ae930ae35886bc

Added Files:
	go-collectd/DESCR
	go-collectd/Makefile
	go-collectd/PLIST
	go-collectd/buildlink3.mk
	go-collectd/distinfo

Log Message:
Add go-collectd, go language bindings towards collectd.

This version is from 20150830.

This is a very simple package and very much a Work in Progress, so
expect things to move around and be renamed a lot.

The repository is organized as follows:
 * Package collectd.org/api declares data structures you may already
   know from the collectd source code itself, such as ValueList.
 * Package collectd.org/exec declares some utilities for writing
   binaries to be executed with the exec plugin. It provides some
   utilities (getting the hostname, e.g.) and an executor which you
   may use to easily schedule function calls.
 * Package collectd.org/format declares functions for formatting
   ValueLists in other format. Right now, only PUTVAL is implemented.
   Eventually I plan to add parsers for some formats, such as the
   JSON export.
 * Package collectd.org/network implements collectd's binary network
   protocol. It offers client and server implementations, see
   network.Client and network.ListenAndWrite() for more details.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4a1c0c406d1785a77f12baf363ae930ae35886bc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 go-collectd/DESCR         | 17 +++++++++++++++++
 go-collectd/Makefile      | 20 ++++++++++++++++++++
 go-collectd/PLIST         | 37 +++++++++++++++++++++++++++++++++++++
 go-collectd/buildlink3.mk | 15 +++++++++++++++
 go-collectd/distinfo      |  6 ++++++
 5 files changed, 95 insertions(+)

diffs:
diff --git a/go-collectd/DESCR b/go-collectd/DESCR
new file mode 100644
index 0000000..6d32490
--- /dev/null
+++ b/go-collectd/DESCR
@@ -0,0 +1,17 @@
+This is a very simple package and very much a Work in Progress, so
+expect things to move around and be renamed a lot.
+
+The repository is organized as follows:
+ * Package collectd.org/api declares data structures you may already
+   know from the collectd source code itself, such as ValueList.
+ * Package collectd.org/exec declares some utilities for writing
+   binaries to be executed with the exec plugin. It provides some
+   utilities (getting the hostname, e.g.) and an executor which you
+   may use to easily schedule function calls.
+ * Package collectd.org/format declares functions for formatting
+   ValueLists in other format. Right now, only PUTVAL is implemented.
+   Eventually I plan to add parsers for some formats, such as the
+   JSON export.
+ * Package collectd.org/network implements collectd's binary network
+   protocol. It offers client and server implementations, see
+   network.Client and network.ListenAndWrite() for more details.
diff --git a/go-collectd/Makefile b/go-collectd/Makefile
new file mode 100644
index 0000000..819113d
--- /dev/null
+++ b/go-collectd/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+#
+
+DISTNAME=		go-collectd
+PKGNAME=		go-collectd-20150830
+CATEGORIES=		sysutils
+MASTER_SITES=		${MASTER_SITE_GITHUB:=collectd/}
+GITHUB_PROJECT=		${DISTNAME}
+GITHUB_TAG=		a1cfcc9efe
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://github.com/collectd/go-collectd
+COMMENT=		Go language bindings for collectd
+LICENSE=		modified-bsd
+
+GO_SRCPATH=		collectd.org
+GO_DIST_BASE=		${DISTNAME}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-collectd/PLIST b/go-collectd/PLIST
new file mode 100644
index 0000000..9699876
--- /dev/null
+++ b/go-collectd/PLIST
@@ -0,0 +1,37 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/collectd.org/api.a
+gopkg/pkg/${GO_PLATFORM}/collectd.org/cdtime.a
+gopkg/pkg/${GO_PLATFORM}/collectd.org/exec.a
+gopkg/pkg/${GO_PLATFORM}/collectd.org/export.a
+gopkg/pkg/${GO_PLATFORM}/collectd.org/format.a
+gopkg/pkg/${GO_PLATFORM}/collectd.org/network.a
+gopkg/src/collectd.org/LICENSE
+gopkg/src/collectd.org/README.md
+gopkg/src/collectd.org/api/json.go
+gopkg/src/collectd.org/api/json_test.go
+gopkg/src/collectd.org/api/main.go
+gopkg/src/collectd.org/api/main_test.go
+gopkg/src/collectd.org/cdtime/cdtime.go
+gopkg/src/collectd.org/cdtime/cdtime_test.go
+gopkg/src/collectd.org/exec/exec.go
+gopkg/src/collectd.org/exec/exec_test.go
+gopkg/src/collectd.org/export/export.go
+gopkg/src/collectd.org/export/export_test.go
+gopkg/src/collectd.org/format/graphite.go
+gopkg/src/collectd.org/format/graphite_test.go
+gopkg/src/collectd.org/format/putval.go
+gopkg/src/collectd.org/network/buffer.go
+gopkg/src/collectd.org/network/buffer_test.go
+gopkg/src/collectd.org/network/client.go
+gopkg/src/collectd.org/network/client_test.go
+gopkg/src/collectd.org/network/crypto.go
+gopkg/src/collectd.org/network/crypto_test.go
+gopkg/src/collectd.org/network/fuzz.go
+gopkg/src/collectd.org/network/fuzz_test.go
+gopkg/src/collectd.org/network/main.go
+gopkg/src/collectd.org/network/parse.go
+gopkg/src/collectd.org/network/parse_test.go
+gopkg/src/collectd.org/network/server.go
+gopkg/src/collectd.org/network/server_test.go
+gopkg/src/collectd.org/network/testdata/packet1.bin
+gopkg/src/collectd.org/network/testdata/packet2.bin
diff --git a/go-collectd/buildlink3.mk b/go-collectd/buildlink3.mk
new file mode 100644
index 0000000..b5ef101
--- /dev/null
+++ b/go-collectd/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-collectd
+
+.if !defined(GO_COLLECTD_BUILDLINK3_MK)
+GO_COLLECTD_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-collectd=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-collectd?=	build
+
+BUILDLINK_API_DEPENDS.go-collectd+=	go-collectd>=20150830
+BUILDLINK_PKGSRCDIR.go-collectd?=	../../sysutils/go-collectd
+.endif	# GO_COLLECTD_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-collectd
diff --git a/go-collectd/distinfo b/go-collectd/distinfo
new file mode 100644
index 0000000..b3cedda
--- /dev/null
+++ b/go-collectd/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-collectd-c19ea48.tar.gz) = 66f8c97fa116792d45357e544d7e84be91c8ac8b
+RMD160 (go-collectd-c19ea48.tar.gz) = 7db5754f4174650254dff9e8267a68f1e00c5d3d
+SHA512 (go-collectd-c19ea48.tar.gz) = 8e1db7d0e7b34b24cbf0b3a4ec3bf4617705e9def77c82f1fadcbca1d1f9dcfe5ad7b33e71c1f0affc959e14fcfaf3c797a4ff2a5cf89ea566583136f1abae1a
+Size (go-collectd-c19ea48.tar.gz) = 39721 bytes


Home | Main Index | Thread Index | Old Index