Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2017 05:06:27 +0000 (UTC)
From:      Brad Davis <brd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433531 - in head/net-mgmt: . snap snap/files
Message-ID:  <201702070506.v1756RFN077019@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brd
Date: Tue Feb  7 05:06:27 2017
New Revision: 433531
URL: https://svnweb.freebsd.org/changeset/ports/433531

Log:
  Add a new port of Intel's snap
  
  Approved by:	swills (mentor)

Added:
  head/net-mgmt/snap/
  head/net-mgmt/snap/Makefile   (contents, props changed)
  head/net-mgmt/snap/distinfo   (contents, props changed)
  head/net-mgmt/snap/files/
  head/net-mgmt/snap/files/patch-codegangsta   (contents, props changed)
  head/net-mgmt/snap/pkg-descr   (contents, props changed)
Modified:
  head/net-mgmt/Makefile

Modified: head/net-mgmt/Makefile
==============================================================================
--- head/net-mgmt/Makefile	Tue Feb  7 03:12:38 2017	(r433530)
+++ head/net-mgmt/Makefile	Tue Feb  7 05:06:27 2017	(r433531)
@@ -320,6 +320,7 @@
     SUBDIR += sjitter
     SUBDIR += slate
     SUBDIR += smokeping
+    SUBDIR += snap
     SUBDIR += snmp++
     SUBDIR += snmp4nagios
     SUBDIR += snmptt

Added: head/net-mgmt/snap/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/snap/Makefile	Tue Feb  7 05:06:27 2017	(r433531)
@@ -0,0 +1,66 @@
+# Created by: Brad Davis <brd@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	snap
+PORTVERSION=	0.0.1
+CATEGORIES=	net-mgmt
+
+MAINTAINER=	brd@FreeBSD.org
+COMMENT=	Intels open telemetry framework
+
+#LICENSE=	APACHE2
+
+BUILD_DEPENDS=	go>=1.5:lang/go
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	stdale
+GH_PROJECT=	snap-freebsd
+GH_TAGNAME=	ca8016d
+
+GH_TUPLE=	Sirupsen:logrus:61e43dc:logrus/src/github.com/Sirupsen/logrus \
+		vrischmann:jsonutil:d44b59f:jsonutil/src/github.com/vrischmann/jsonutil \
+		golang:crypto:f18420e:crypto/src/golang.org/x/crypto \
+		appc:spec:e99880c:schema/src/github.com/appc/spec \
+		asaskevich:govalidator:fdf1978:govalidator/src/github.com/asaskevich/govalidator \
+		coreos:go-semver:9474efc:semver/src/github.com/coreos/go-semver \
+		ghodss:yaml:04f3134:yaml/src/github.com/ghodss/yaml \
+		golang:protobuf:8ee7999:protobuf/src/github.com/golang/protobuf \
+		hashicorp:go-msgpack:fa3f638:msgpack/src/github.com/hashicorp/go-msgpack \
+		hashicorp:memberlist:9888dc5:memberlist/src/github.com/hashicorp/memberlist \
+		armon:go-metrics:06b6099:metrics/src/github.com/armon/go-metrics \
+		intelsdi-x:gomit:db68f6f:gomit/src/github.com/intelsdi-x/gomit \
+		julienschmidt:httprouter:8a45e95:httprouter/src/github.com/julienschmidt/httprouter \
+		robfig:cron:9585fd5:cron/src/github.com/robfig/cron \
+		urfave:cli:347a988:cli2/src/github.com/urfave/cli \
+		urfave:negroni:61dbefc:negroni/src/github.com/urfave/negroni \
+		pborman:uuid:1b00554:uuid/src/github.com/pborman/uuid \
+		spf13:pflag:9ff6c69:pflag/src/github.com/spf13/pflag \
+		xeipuuv:gojsonschema:f06f290:gojsonschema/src/github.com/xeipuuv/gojsonschema \
+		xeipuuv:gojsonreference:e02fc20:gojsonreference/src/github.com/xeipuuv/gojsonreference \
+		xeipuuv:gojsonpointer:e0fe6f6:gojsonpointer/src/github.com/xeipuuv/gojsonpointer \
+		golang:net:41bba8d:net/src/golang.org/x/net \
+		abh:errorutil:f9bd360:errorutil/src/go4.org/errorutil \
+		go-yaml:yaml:4c78c97:yaml2/src/gopkg.in/yaml.v2 \
+		go-inf:inf:3887ee9:inf/src/gopkg.in/inf.v0 \
+		grpc:grpc-go:b1efb1e:grpc/src/google.golang.org/grpc \
+		ghodss:yaml:04f3134:yaml/src/github.com/ghodss/yaml
+
+PLIST_FILES=	bin/snapctl bin/snapd
+
+do-build:
+	( cd ${WRKSRC}; ${LN} -s ${WRKSRC} ${WRKSRC}/src/github.com/intelsdi-x/snap )
+	( cd ${WRKSRC}/src/github.com/appc/spec; \
+		${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} GOOS=freebsd CC=clang \
+		go build -o bin/actool github.com/appc/spec/actool )
+	( cd ${WRKSRC}; \
+		${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} GOOS=freebsd CC=clang \
+		go build ${BUILD_FLAGS} -o bin/snapd )
+	( cd ${WRKSRC}/cmd/snapctl; \
+		${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} GOOS=freebsd CC=clang \
+		go build ${BUILD_FLAGS} -o bin/snapctl )
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PORTNAME}ctl/bin/${PORTNAME}ctl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}ctl
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME}d ${STAGEDIR}${PREFIX}/bin/${PORTNAME}d
+
+.include <bsd.port.mk>

Added: head/net-mgmt/snap/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/snap/distinfo	Tue Feb  7 05:06:27 2017	(r433531)
@@ -0,0 +1,55 @@
+TIMESTAMP = 1486406648
+SHA256 (stdale-snap-freebsd-0.0.1-ca8016d_GH0.tar.gz) = 15cd2e1619052cb96e714a530de548d52791a865cf33dc9e522a994bbe3b8117
+SIZE (stdale-snap-freebsd-0.0.1-ca8016d_GH0.tar.gz) = 3242257
+SHA256 (Sirupsen-logrus-61e43dc_GH0.tar.gz) = 7701ae9c69201a4aacdc51a7dfffc2dafe0b21a90455b7716f91c40ad2b9ff51
+SIZE (Sirupsen-logrus-61e43dc_GH0.tar.gz) = 25130
+SHA256 (vrischmann-jsonutil-d44b59f_GH0.tar.gz) = d5e5145b4fb4b08d660487f632e0e1dfeb617910e9e4a1d6724897c8d33bbbf9
+SIZE (vrischmann-jsonutil-d44b59f_GH0.tar.gz) = 2117
+SHA256 (golang-crypto-f18420e_GH0.tar.gz) = 69d5a5cec778e1cb96170427c7d82df20b355a9f1e73cbf2f96693ceffb94017
+SIZE (golang-crypto-f18420e_GH0.tar.gz) = 897955
+SHA256 (appc-spec-e99880c_GH0.tar.gz) = d7833829d9c78e79390b84c2be69fd88a4f1c79447d11ef65cc7e6607f9a0e41
+SIZE (appc-spec-e99880c_GH0.tar.gz) = 301067
+SHA256 (asaskevich-govalidator-fdf1978_GH0.tar.gz) = a737458db0245eb21e9f297d0fea54901bf77315c0033790353a18402b468b30
+SIZE (asaskevich-govalidator-fdf1978_GH0.tar.gz) = 36730
+SHA256 (coreos-go-semver-9474efc_GH0.tar.gz) = 27ed117c423bc148e27ee01133451a3d31e027ef763bd41a62a172892a790a3c
+SIZE (coreos-go-semver-9474efc_GH0.tar.gz) = 8467
+SHA256 (ghodss-yaml-04f3134_GH0.tar.gz) = af38d66c0f4b8d92879673d6dccc5d01af06294e274c64c25f778ab476e678ca
+SIZE (ghodss-yaml-04f3134_GH0.tar.gz) = 11775
+SHA256 (golang-protobuf-8ee7999_GH0.tar.gz) = 0ce842e7fd80d4e230b0740de2a657172748220050343c6482ed56d6828322af
+SIZE (golang-protobuf-8ee7999_GH0.tar.gz) = 245224
+SHA256 (hashicorp-go-msgpack-fa3f638_GH0.tar.gz) = 6353c623d5d58c7ca03e2bdac63f9da7da8848fb1f5f7f239b33e3ce6fe6c6bd
+SIZE (hashicorp-go-msgpack-fa3f638_GH0.tar.gz) = 49496
+SHA256 (hashicorp-memberlist-9888dc5_GH0.tar.gz) = 83b49325a1d39435d2a16ef0b4f4f089089372303792412a1d67ed17dc1d4b72
+SIZE (hashicorp-memberlist-9888dc5_GH0.tar.gz) = 56809
+SHA256 (armon-go-metrics-06b6099_GH0.tar.gz) = 9536fa2418200cc060edeb24fa3c778abbed7dfce626784663aa39b411477a8a
+SIZE (armon-go-metrics-06b6099_GH0.tar.gz) = 13229
+SHA256 (intelsdi-x-gomit-db68f6f_GH0.tar.gz) = 184b30ec9c693bcb9f256bfcac2c10fb68de4ac35598cf03bf35729e7035ed99
+SIZE (intelsdi-x-gomit-db68f6f_GH0.tar.gz) = 9915
+SHA256 (julienschmidt-httprouter-8a45e95_GH0.tar.gz) = 981709f3681a5db5c931de1c75bdf980e3cd0584765e9b2b5f5bb773a8786818
+SIZE (julienschmidt-httprouter-8a45e95_GH0.tar.gz) = 21980
+SHA256 (robfig-cron-9585fd5_GH0.tar.gz) = 5d294e774d792c05f18dd53f86bf1890f937b8b3dbe4fee275b899e47df590c3
+SIZE (robfig-cron-9585fd5_GH0.tar.gz) = 14446
+SHA256 (urfave-cli-347a988_GH0.tar.gz) = fbc3438537fe0ee03191a1db6886a4dc601c610fbd6054a9b4b6b71aa319c8ff
+SIZE (urfave-cli-347a988_GH0.tar.gz) = 56013
+SHA256 (urfave-negroni-61dbefc_GH0.tar.gz) = 5b307e5efa385e2c05d05ffe047d82f4ea9c03b2fe4f7122b37d0a98d2ee5cdc
+SIZE (urfave-negroni-61dbefc_GH0.tar.gz) = 26340
+SHA256 (pborman-uuid-1b00554_GH0.tar.gz) = 2f336288b45feb462702a69bfc0216d1ead9de8c776721801df30a1ad5a218f1
+SIZE (pborman-uuid-1b00554_GH0.tar.gz) = 12801
+SHA256 (spf13-pflag-9ff6c69_GH0.tar.gz) = c681cdbf4fd4e399059f51a7561c7d3065aee3c3e65cfb4a86e8759de18f9dd6
+SIZE (spf13-pflag-9ff6c69_GH0.tar.gz) = 38872
+SHA256 (xeipuuv-gojsonschema-f06f290_GH0.tar.gz) = e7a8ac07c188107604b7e1551e491f1483ea13370aa841d048e7164d65db3188
+SIZE (xeipuuv-gojsonschema-f06f290_GH0.tar.gz) = 43909
+SHA256 (xeipuuv-gojsonreference-e02fc20_GH0.tar.gz) = a8f56d61304b3fc3c473a2b57b4afde4a19247d1ecb49438302b81dd6b05278a
+SIZE (xeipuuv-gojsonreference-e02fc20_GH0.tar.gz) = 6837
+SHA256 (xeipuuv-gojsonpointer-e0fe6f6_GH0.tar.gz) = 32b3a48ba572cafeebf0ba45f5f917aa0170a06f3de7c8e612ed16b4e29e69ad
+SIZE (xeipuuv-gojsonpointer-e0fe6f6_GH0.tar.gz) = 6820
+SHA256 (golang-net-41bba8d_GH0.tar.gz) = 003c999bb8c3d73cc3dae0ca48e8afcb77cf58cb6e2b25b4486ff602deacb8eb
+SIZE (golang-net-41bba8d_GH0.tar.gz) = 770083
+SHA256 (abh-errorutil-f9bd360_GH0.tar.gz) = 54b1403930e6dd8521b9232e5bd7214e6ddb9ae1f4fb93442b2a6dcb4145eaf2
+SIZE (abh-errorutil-f9bd360_GH0.tar.gz) = 1635
+SHA256 (go-yaml-yaml-4c78c97_GH0.tar.gz) = e03fd1fc17f99724f0a766cdce6d762d0025fb9cb3c576566a09e8d617463a1e
+SIZE (go-yaml-yaml-4c78c97_GH0.tar.gz) = 60727
+SHA256 (go-inf-inf-3887ee9_GH0.tar.gz) = 27a6402a60d6b1ff2074e54fd45d7921a13e28ee37097dc24de577887c0da2fb
+SIZE (go-inf-inf-3887ee9_GH0.tar.gz) = 13070
+SHA256 (grpc-grpc-go-b1efb1e_GH0.tar.gz) = 37157cf108821f9fa9c939fcb379c8a82d76148de983712059bf8940d8b2500f
+SIZE (grpc-grpc-go-b1efb1e_GH0.tar.gz) = 221443

Added: head/net-mgmt/snap/files/patch-codegangsta
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/snap/files/patch-codegangsta	Tue Feb  7 05:06:27 2017	(r433531)
@@ -0,0 +1,165 @@
+--- cmd/snapctl/commands.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/commands.go
+@@ -24,7 +24,7 @@ import (
+ 	"strings"
+ 	"text/tabwriter"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ )
+ 
+ var (
+--- cmd/snapctl/config.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/config.go
+@@ -28,7 +28,7 @@ import (
+ 	"strconv"
+ 	"text/tabwriter"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ 	"github.com/intelsdi-x/snap/core/ctypes"
+ )
+ 
+--- cmd/snapctl/flags.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/flags.go
+@@ -19,7 +19,7 @@ limitations under the License.
+ 
+ package main
+ 
+-import "github.com/codegangsta/cli"
++import "github.com/urfave/cli"
+ 
+ var (
+ 
+--- cmd/snapctl/main.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/main.go
+@@ -28,7 +28,7 @@ import (
+ 
+ 	"golang.org/x/crypto/ssh/terminal"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ 	"github.com/intelsdi-x/snap/mgmt/rest/client"
+ )
+ 
+--- cmd/snapctl/metric.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/metric.go
+@@ -28,7 +28,7 @@ import (
+ 	"text/tabwriter"
+ 	"time"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ 	"github.com/intelsdi-x/snap/mgmt/rest/client"
+ 	"github.com/intelsdi-x/snap/mgmt/rest/rbody"
+ 
+--- cmd/snapctl/plugin.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/plugin.go
+@@ -28,7 +28,7 @@ import (
+ 	"text/tabwriter"
+ 	"time"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ )
+ 
+ func loadPlugin(ctx *cli.Context) error {
+--- cmd/snapctl/task.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/task.go
+@@ -33,7 +33,7 @@ import (
+ 	"text/tabwriter"
+ 	"time"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ 	"github.com/intelsdi-x/snap/mgmt/rest/client"
+ 	"github.com/intelsdi-x/snap/scheduler/wmap"
+ 	"github.com/robfig/cron"
+--- cmd/snapctl/tribe.go.orig	2017-01-20 05:00:46 UTC
++++ cmd/snapctl/tribe.go
+@@ -27,7 +27,7 @@ import (
+ 	"sort"
+ 	"text/tabwriter"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ 	"github.com/intelsdi-x/snap/mgmt/tribe/agreement"
+ )
+ 
+--- control/flags.go.orig	2017-01-20 05:00:46 UTC
++++ control/flags.go
+@@ -22,7 +22,7 @@ package control
+ import (
+ 	"fmt"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ )
+ 
+ var (
+--- mgmt/rest/flags.go.orig	2017-01-20 05:00:46 UTC
++++ mgmt/rest/flags.go
+@@ -22,7 +22,7 @@ package rest
+ import (
+ 	"fmt"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ )
+ 
+ var (
+--- mgmt/rest/log_handler.go.orig	2017-01-20 05:00:46 UTC
++++ mgmt/rest/log_handler.go
+@@ -23,7 +23,7 @@ import (
+ 	"net/http"
+ 
+ 	log "github.com/Sirupsen/logrus"
+-	"github.com/codegangsta/negroni"
++	"github.com/urfave/negroni"
+ )
+ 
+ // Logger is a snap middleware that logs to a logrus facility
+--- mgmt/rest/server.go.orig	2017-02-06 20:08:19 UTC
++++ mgmt/rest/server.go
+@@ -32,7 +32,7 @@ import (
+ 	"time"
+ 
+ 	log "github.com/Sirupsen/logrus"
+-	"github.com/codegangsta/negroni"
++	"github.com/urfave/negroni"
+ 	"github.com/julienschmidt/httprouter"
+ 
+ 	"github.com/intelsdi-x/snap/core"
+--- mgmt/tribe/flags.go.orig	2017-01-20 05:00:46 UTC
++++ mgmt/tribe/flags.go
+@@ -22,7 +22,7 @@ package tribe
+ import (
+ 	"fmt"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ )
+ 
+ var (
+--- scheduler/flags.go.orig	2017-01-20 05:00:46 UTC
++++ scheduler/flags.go
+@@ -22,7 +22,7 @@ package scheduler
+ import (
+ 	"fmt"
+ 
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ )
+ 
+ var (
+--- snapd.go.orig	2017-01-20 05:00:46 UTC
++++ snapd.go
+@@ -37,7 +37,7 @@ import (
+ 	"golang.org/x/crypto/ssh/terminal"
+ 
+ 	log "github.com/Sirupsen/logrus"
+-	"github.com/codegangsta/cli"
++	"github.com/urfave/cli"
+ 	"github.com/vrischmann/jsonutil"
+ 
+ 	"github.com/intelsdi-x/snap/control"

Added: head/net-mgmt/snap/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/snap/pkg-descr	Tue Feb  7 05:06:27 2017	(r433531)
@@ -0,0 +1,12 @@
+Snap is an open telemetry framework designed to simplify the collection,
+processing and publishing of system data through a single API. The goals
+of this project are to:
+
+- Empower systems to expose a consistent set of telemetry data
+- Simplify telemetry ingestion across ubiquitous storage systems
+- Allow flexible processing of telemetry data on agent (e.g. filtering
+  and decoration)
+- Provide powerful clustered control of telemetry workflows across small
+  or large clusters
+
+WWW: https://github.com/intelsdi-x/snap



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702070506.v1756RFN077019>