From owner-svn-ports-head@FreeBSD.ORG Fri Feb 27 19:35:12 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9FC5CFFF; Fri, 27 Feb 2015 19:35:12 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 89B1FDD0; Fri, 27 Feb 2015 19:35:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1RJZCOx058653; Fri, 27 Feb 2015 19:35:12 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1RJZAsN058637; Fri, 27 Feb 2015 19:35:10 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201502271935.t1RJZAsN058637@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Fri, 27 Feb 2015 19:35:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r380118 - in head: . net-mgmt net-mgmt/riemann net-mgmt/riemann/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-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 19:35:12 -0000 Author: pi Date: Fri Feb 27 19:35:09 2015 New Revision: 380118 URL: https://svnweb.freebsd.org/changeset/ports/380118 QAT: https://qat.redports.org/buildarchive/r380118/ Log: New port: net-mgmt/riemann Riemann monitors low-latency, transient shared state for systems with many moving parts. Riemann aggregates events from your servers and applications with a powerful stream processing language. Send an email for every exception raised by your code. Track the latency distribution of your web app. See the top processes on any host, by memory and CPU. Combine statistics from every Riak node in your cluster and forward to Graphite. Send alerts when a key process fails to check in. Know how many users signed up right this second. WWW: http://riemann.io/ PR: 197403 Submitted by: Dave Cottlehuber Added: head/net-mgmt/riemann/ head/net-mgmt/riemann/Makefile (contents, props changed) head/net-mgmt/riemann/distinfo (contents, props changed) head/net-mgmt/riemann/files/ head/net-mgmt/riemann/files/riemann.in (contents, props changed) head/net-mgmt/riemann/pkg-descr (contents, props changed) head/net-mgmt/riemann/pkg-plist (contents, props changed) Modified: head/GIDs head/UIDs head/net-mgmt/Makefile Modified: head/GIDs ============================================================================== --- head/GIDs Fri Feb 27 19:18:56 2015 (r380117) +++ head/GIDs Fri Feb 27 19:35:09 2015 (r380118) @@ -229,6 +229,7 @@ munin:*:842: dahdi:*:843:asterisk fossy:*:901:www scanlogd:*:902: +riemann:*:908: proxy65:*:909: bacula:*:910: iserv:*:911: Modified: head/UIDs ============================================================================== --- head/UIDs Fri Feb 27 19:18:56 2015 (r380117) +++ head/UIDs Fri Feb 27 19:35:09 2015 (r380118) @@ -234,6 +234,7 @@ tcpcryptd:*:841:841::0:0:tcpcrypt daemon munin:*:842:842::0:0:Munin:/var/munin:/usr/sbin/nologin fossy:*:901:901::0:0:FOSSology user:/usr/local/share/fossology:/usr/local/bin/bash scanlogd:*:902:902::0:0:scanlogd user:/nonexistent:/usr/sbin/nologin +riemann:*:908:908::0:0:Riemann User:/var/empty:/usr/sbin/nologin proxy65:*:909:909::0:0:Proxy65 Daemon:/nonexistent:/usr/sbin/nologin bacula:*:910:910::0:0:Bacula Daemon:/var/db/bacula:/usr/sbin/nologin iserv:*:911:911::0:0:Iserv Daemon:/nonexistent:/usr/sbin/nologin Modified: head/net-mgmt/Makefile ============================================================================== --- head/net-mgmt/Makefile Fri Feb 27 19:18:56 2015 (r380117) +++ head/net-mgmt/Makefile Fri Feb 27 19:35:09 2015 (r380118) @@ -271,6 +271,7 @@ SUBDIR += rate SUBDIR += rcpd SUBDIR += remarp + SUBDIR += riemann SUBDIR += rotorouter SUBDIR += routers2 SUBDIR += routers2-extensions Added: head/net-mgmt/riemann/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/riemann/Makefile Fri Feb 27 19:35:09 2015 (r380118) @@ -0,0 +1,62 @@ +# Created by: Dave Cottlehuber +# $FreeBSD$ + +PORTNAME= riemann +PORTVERSION= 0.2.8 +CATEGORIES= net-mgmt java +MASTER_SITES= http://aphyr.com/${PORTNAME}/ + +MAINTAINER= dch@skunkwerks.at +COMMENT= Monitors distributed systems + +LICENSE= EPL + +USES= tar:bzip2 +NO_BUILD= yes +NO_ARCH= yes +USE_JAVA= yes +JAVA_VERSION= 1.7+ + +SUB_FILES= ${PORTNAME} +SUB_LIST+= JAVA_HOME=${JAVA_HOME} \ + RIEMANN_USER=${RIEMANN_USER} \ + RIEMANN_GROUP=${RIEMANN_GROUP} \ + RIEMANN_PIDDIR=${RIEMANN_PIDDIR} \ + RIEMANN_LOGDIR=${RIEMANN_LOGDIR} + +PLIST_SUB= JAVA_HOME=${JAVA_HOME} \ + RIEMANN_USER=${RIEMANN_USER} \ + RIEMANN_GROUP=${RIEMANN_GROUP} \ + RIEMANN_PIDDIR=${RIEMANN_PIDDIR} \ + RIEMANN_LOGDIR=${RIEMANN_LOGDIR} + +RIEMANN_USER?= ${PORTNAME} +RIEMANN_GROUP?= ${PORTNAME} + +.if ${RIEMANN_USER} == "${PORTNAME}" +USERS= ${PORTNAME} +.endif +.if ${RIEMANN_GROUP} == "${PORTNAME}" +GROUPS= ${PORTNAME} +.endif + +USE_RC_SUBR= ${PORTNAME} + +RIEMANN_LOGDIR= /var/log/${PORTNAME}/ +RIEMANN_PIDDIR= /var/run/${PORTNAME}/ + +do-install: + ${MKDIR} \ + ${STAGEDIR}${JAVAJARDIR} \ + ${STAGEDIR}${ETCDIR} \ + ${STAGEDIR}${RIEMANN_PIDDIR} \ + ${STAGEDIR}${RIEMANN_LOGDIR} + ${INSTALL_DATA} \ + ${WRKSRC}/lib/${PORTNAME}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + ${SED} -i -e "s:riemann.log:${RIEMANN_LOGDIR}${PORTNAME}.log:g" \ + ${WRKSRC}/etc/${PORTNAME}.config + ${CP} -p ${WRKSRC}/etc/${PORTNAME}.config \ + ${STAGEDIR}${ETCDIR}/${PORTNAME}.config.sample + +.include Added: head/net-mgmt/riemann/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/riemann/distinfo Fri Feb 27 19:35:09 2015 (r380118) @@ -0,0 +1,2 @@ +SHA256 (riemann-0.2.8.tar.bz2) = f5bb666acb878e144471f8c6d7f622193840d127aea96924fd8575e1fb6c57dc +SIZE (riemann-0.2.8.tar.bz2) = 31826729 Added: head/net-mgmt/riemann/files/riemann.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/riemann/files/riemann.in Fri Feb 27 19:35:09 2015 (r380118) @@ -0,0 +1,69 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: riemann +# REQUIRE: LOGIN NETWORKING SERVERS +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# riemann_enable (bool): Set to NO by default. +# Set it to YES to enable riemann. +# +# riemann_config (string): Optional full path for riemann config file +# riemann_user (user): Set to riemann by default. +# riemann_group (group): Set to riemann by default. +# riemann_jarfile (string): Optional path to a custom jarfile. +# riemann_java_home (args): Specify which JVM to use, if not default. +# riemann_min_mem (num): Minumum JVM heap size, 256m by default. +# riemann_max_mem (num): Maximum JVM heap size, 1g by default. +# riemann_java_opts (args): Additional JVM properties or arguments. +. /etc/rc.subr + +name="riemann" +rcvar=riemann_enable + +load_rc_config $name + +: ${riemann_enable="NO"} +: ${riemann_user:="%%RIEMANN_USER%%"} +: ${riemann_group:="%%RIEMANN_GROUP%%"} +: ${riemann_config:="%%PREFIX%%/etc/riemann/riemann.config.sample"} +: ${riemann_jarfile:="%%JAVAJARDIR%%/riemann.jar"} +: ${riemann_java_home:="%%JAVA_HOME%%"} +: ${riemann_min_mem:="256m"} +: ${riemann_max_mem:="1g"} +: ${riemann_java_opts:=" -server \ + -Xms${riemann_min_mem} \ + -Xmx${riemann_max_mem} \ + -Xss256k \ + -Djava.awt.headless=true \ + -Djava.net.preferIPv4Stack=true \ + -XX:+AggressiveOpts \ + -XX:+CMSClassUnloadingEnabled \ + -XX:+CMSParallelRemarkEnabled \ + -XX:+DisableExplicitGC \ + -XX:+HeapDumpOnOutOfMemoryError \ + -XX:+UseCMSInitiatingOccupancyOnly \ + -XX:+UseCompressedOops \ + -XX:+UseConcMarkSweepGC \ + -XX:+UseFastAccessorMethods \ + -XX:+UseParNewGC \ + -XX:CMSInitiatingOccupancyFraction=75 "} + +riemann_pidfile="%%RIEMANN_PIDDIR%%${name}.pid" +command="/usr/sbin/daemon" +procname="${riemann_java_home}/bin/java" +command_args="-f -c -p ${riemann_pidfile} ${procname} ${riemann_java_opts} \ + -jar ${riemann_jarfile} ${riemann_config}" +required_files="${java_cmd} ${riemann_config}" + +riemann_prestart() +{ + install -o ${riemann_user} /dev/null ${riemann_pidfile} +} +start_precmd=${name}_prestart + +run_rc_command "$1" Added: head/net-mgmt/riemann/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/riemann/pkg-descr Fri Feb 27 19:35:09 2015 (r380118) @@ -0,0 +1,11 @@ +Riemann monitors low-latency, transient shared state for systems with many +moving parts. + +Riemann aggregates events from your servers and applications with a powerful +stream processing language. Send an email for every exception raised by your +code. Track the latency distribution of your web app. See the top processes +on any host, by memory and CPU. Combine statistics from every Riak node in +your cluster and forward to Graphite. Send alerts when a key process fails +to check in. Know how many users signed up right this second. + +WWW: http://riemann.io/ Added: head/net-mgmt/riemann/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/riemann/pkg-plist Fri Feb 27 19:35:09 2015 (r380118) @@ -0,0 +1,4 @@ +%%JAVAJARDIR%%/riemann.jar +@sample %%ETCDIR%%/riemann.config.sample +@dir(%%RIEMANN_USER%%,%%RIEMANN_GROUP%%,0750) %%RIEMANN_LOGDIR%% +@dir(%%RIEMANN_USER%%,%%RIEMANN_GROUP%%,0750) %%RIEMANN_PIDDIR%%