From owner-svn-ports-all@freebsd.org Wed Jun 8 21:10:41 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EEC09B6FDDE; Wed, 8 Jun 2016 21:10:41 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA1B41A8D; Wed, 8 Jun 2016 21:10:41 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u58LAfVc013597; Wed, 8 Jun 2016 21:10:41 GMT (envelope-from girgen@FreeBSD.org) Received: (from girgen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u58LAeNa013591; Wed, 8 Jun 2016 21:10:40 GMT (envelope-from girgen@FreeBSD.org) Message-Id: <201606082110.u58LAeNa013591@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: girgen set sender to girgen@FreeBSD.org using -f From: Palle Girgensohn Date: Wed, 8 Jun 2016 21:10:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416565 - in head/net-mgmt: . kapacitor kapacitor/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2016 21:10:42 -0000 Author: girgen Date: Wed Jun 8 21:10:40 2016 New Revision: 416565 URL: https://svnweb.freebsd.org/changeset/ports/416565 Log: Add kapacitor to the ports tree. Kapacitor is InfluxDB's native data processing engine. It can process both stream and batch data from InfluxDB. Kapacitor lets you plug in your own custom logic or user defined functions to process alerts with dynamic thresholds, match metrics for patterns or compute statistical anomalies. WWW: https://influxdata.com/time-series-platform/kapacitor/ PR: 210094 Submitted by: Stefan Lambrev Added: head/net-mgmt/kapacitor/ head/net-mgmt/kapacitor/Makefile (contents, props changed) head/net-mgmt/kapacitor/distinfo (contents, props changed) head/net-mgmt/kapacitor/files/ head/net-mgmt/kapacitor/files/kapacitord.in (contents, props changed) head/net-mgmt/kapacitor/pkg-descr (contents, props changed) head/net-mgmt/kapacitor/pkg-plist (contents, props changed) Modified: head/net-mgmt/Makefile Modified: head/net-mgmt/Makefile ============================================================================== --- head/net-mgmt/Makefile Wed Jun 8 20:35:51 2016 (r416564) +++ head/net-mgmt/Makefile Wed Jun 8 21:10:40 2016 (r416565) @@ -96,6 +96,7 @@ SUBDIR += irrtoolset SUBDIR += isic SUBDIR += jnettop + SUBDIR += kapacitor SUBDIR += kismet SUBDIR += klg SUBDIR += lanmap Added: head/net-mgmt/kapacitor/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/kapacitor/Makefile Wed Jun 8 21:10:40 2016 (r416565) @@ -0,0 +1,60 @@ +# Created by: Stefan Lambrev +# $FreeBSD$ + +PORTNAME= kapacitor +PORTVERSION= 0.13.1 +DISTVERSIONPREFIX= v +CATEGORIES= net-mgmt + +MAINTAINER= cheffo@freebsd-bg.org +COMMENT= Time-series data collection + +LICENSE= MIT + +BUILD_DEPENDS= go>=1.5.0:lang/go + +ONLY_FOR_ARCHS= i386 amd64 armv6 + +USE_RC_SUBR= kapacitord + +USE_GITHUB= yes + +GH_ACCOUNT= influxdata:DEFAULT +GH_TUPLE= golang:crypto:b6789ab:crypto \ + stretchr:testify:6cb3b85:testify + +SUB_FILES= kapacitord +SUB_LIST+= KAPACITORD_PIDDIR=${KAPACITORD_PIDDIR} +PLIST_SUB= KAPACITORD_PIDDIR=${KAPACITORD_PIDDIR} + +STRIP= # stripping can break go binaries + +post-patch: + @${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} \ + ${WRKSRC}/src/github.com/stretchr \ + ${WRKSRC}/src/golang.org/x + @cd ${WRKSRC} && ${MV} CHANGELOG.md CONTRIBUTING.md DESIGN.md Dockerfile_build_ubuntu32 \ + Dockerfile_build_ubuntu64 Dockerfile_build_ubuntu64_git LICENSE LICENSE_OF_DEPENDENCIES.md \ + README.md alert.go batch.go build.py build.sh circle-test.sh circle.yml client clock cmd \ + default.go derivative.go doc.go edge.go edge_test.go etc eval.go examples expr.go expvar \ + global_stats.go gobuild.sh group_by.go http_out.go influxdb_out.go influxql.gen.go \ + influxql.gen.go.tmpl influxql.go install-deps.sh integrations join.go log.go models \ + node.go noop.go output.go pipeline query.go replay.go result.go sample.go scripts services \ + shift.go stats.go stream.go task.go task_master.go test.sh tick tickdoc.conf timer \ + tmpldata udf udf.go udf_test.go union.go update_tick_docs.sh vendor vendor.yml where.go \ + window.go window_test.go \ + ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} + @${MV} ${WRKSRC_testify} ${WRKSRC}/src/github.com/stretchr/testify ;\ + ${MV} ${WRKSRC_crypto} ${WRKSRC}/src/golang.org/x/crypto + +do-build: + @cd ${WRKSRC}/src/github.com/influxdata/${PORTNAME} && ${SETENV} GOPATH=${WRKSRC} go install ./... + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME}d ${STAGEDIR}${PREFIX}/bin/${PORTNAME}d + ${INSTALL_DATA} \ + ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/etc/${PORTNAME}/${PORTNAME}.conf \ + ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample + +.include Added: head/net-mgmt/kapacitor/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/kapacitor/distinfo Wed Jun 8 21:10:40 2016 (r416565) @@ -0,0 +1,7 @@ +TIMESTAMP = 1465294291 +SHA256 (influxdata-kapacitor-v0.13.1_GH0.tar.gz) = 5ea34857f7c2aa6270acdead5953c7fe6f1f3aa065d8f7188eb712ad597631c2 +SIZE (influxdata-kapacitor-v0.13.1_GH0.tar.gz) = 1493172 +SHA256 (golang-crypto-b6789ab_GH0.tar.gz) = 8e59ebf79fa9bb4554f2e5c9b271e3a8774e9624019f96fe527c598109710227 +SIZE (golang-crypto-b6789ab_GH0.tar.gz) = 1026715 +SHA256 (stretchr-testify-6cb3b85_GH0.tar.gz) = abae34a655da56b099f25f622e0f5db982c691cb77384e8ac0bda5fe80c7d177 +SIZE (stretchr-testify-6cb3b85_GH0.tar.gz) = 81558 Added: head/net-mgmt/kapacitor/files/kapacitord.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/kapacitor/files/kapacitord.in Wed Jun 8 21:10:40 2016 (r416565) @@ -0,0 +1,39 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: kapacitord +# REQUIRE: DAEMON NETWORKING +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable telegrafb: +# kapacitord_enable="YES" +# +# kapacitord_enable (bool): Set to YES to enable telegraf +# Default: NO +# kapacitord_conf (str): telegraf configuration file +# Default: ${PREFIX}/etc/telegraf.conf +# kapacitord_flags (str): Extra flags passed to telegraf + +. /etc/rc.subr + +name="kapacitord" +rcvar=kapacitord_enable +load_rc_config $name + +: ${kapacitord_enable:="NO"} +: ${kapacitord_flags:=""} +: ${kapacitord_conf:="%%PREFIX%%/etc/kapacitor.conf"} + +# daemon +start_precmd=kapacitord_prestart +pidfile="/var/run/${name}.pid" +command=/usr/sbin/daemon +command_args="-crP ${pidfile} %%PREFIX%%/bin/${name} ${kapacitord_flags} -config=${kapacitord_conf} 2>> /var/log/kapacitord.log" + +kapacitord_prestart() { +# Have to empty rc_flags so they don't get passed to daemon(8) + rc_flags="" +} + +run_rc_command "$1" Added: head/net-mgmt/kapacitor/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/kapacitor/pkg-descr Wed Jun 8 21:10:40 2016 (r416565) @@ -0,0 +1,6 @@ +Kapacitor is InfluxDB's native data processing engine. It can process both +stream and batch data from InfluxDB. Kapacitor lets you plug in your own custom +logic or user defined functions to process alerts with dynamic thresholds, +match metrics for patterns or compute statistical anomalies. + +WWW: https://influxdata.com/time-series-platform/kapacitor/ Added: head/net-mgmt/kapacitor/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/kapacitor/pkg-plist Wed Jun 8 21:10:40 2016 (r416565) @@ -0,0 +1,3 @@ +bin/kapacitor +bin/kapacitord +@sample etc/kapacitor.conf.sample