# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	riemann
#	riemann/riemann.shar
#	riemann/pkg-plist
#	riemann/Makefile
#	riemann/pkg-descr
#	riemann/distinfo
#	riemann/files
#	riemann/files/riemann.in
#
echo c - riemann
mkdir -p riemann > /dev/null 2>&1
echo x - riemann/riemann.shar
sed 's/^X//' >riemann/riemann.shar << '675492c40187060b8854850a8e6797f5'
675492c40187060b8854850a8e6797f5
echo x - riemann/pkg-plist
sed 's/^X//' >riemann/pkg-plist << '019126477873cfe866fde8641630fc21'
X%%JAVAJARDIR%%/riemann.jar
X@sample %%ETCDIR%%/riemann.config.sample
X@dir(%%RIEMANN_USER%%,%%RIEMANN_GROUP%%,0750) %%RIEMANN_LOGDIR%%
X@dir(%%RIEMANN_USER%%,%%RIEMANN_GROUP%%,0750) %%RIEMANN_PIDDIR%%
019126477873cfe866fde8641630fc21
echo x - riemann/Makefile
sed 's/^X//' >riemann/Makefile << 'a36182911704503a9f2ef6f36f3539af'
X# Created by: Dave Cottlehuber <dch@skunkwerks.at>
X# $FreeBSD$
X
XPORTNAME=	riemann
XPORTVERSION=	0.2.8
XCATEGORIES=	net-mgmt java
XMASTER_SITES=	http://aphyr.com/${PORTNAME}/
X
XMAINTAINER=	dch@skunkwerks.at
XCOMMENT=	Monitors distributed systems
X
XLICENSE=	EPL
X
XUSES=		tar:bzip2
XNO_BUILD=	yes
XNO_ARCH=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.7+
X
XSUB_FILES=	${PORTNAME}
XSUB_LIST+=	JAVA_HOME=${JAVA_HOME} \
X		RIEMANN_USER=${RIEMANN_USER} \
X		RIEMANN_GROUP=${RIEMANN_GROUP} \
X		RIEMANN_PIDDIR=${RIEMANN_PIDDIR} \
X		RIEMANN_LOGDIR=${RIEMANN_LOGDIR}
X
XPLIST_SUB= 	JAVA_HOME=${JAVA_HOME} \
X		RIEMANN_USER=${RIEMANN_USER} \
X		RIEMANN_GROUP=${RIEMANN_GROUP} \
X		RIEMANN_PIDDIR=${RIEMANN_PIDDIR} \
X		RIEMANN_LOGDIR=${RIEMANN_LOGDIR}
X
XRIEMANN_USER?=	${PORTNAME}
XRIEMANN_GROUP?=	${PORTNAME}
X
X.if ${RIEMANN_USER} == "${PORTNAME}"
XUSERS=	${PORTNAME}
X.endif
X.if ${RIEMANN_GROUP} == "${PORTNAME}"
XGROUPS=	${PORTNAME}
X.endif
X
XUSE_RC_SUBR= ${PORTNAME}
X
XRIEMANN_LOGDIR= /var/log/${PORTNAME}/
XRIEMANN_PIDDIR= /var/run/${PORTNAME}/
X
Xdo-install:
X	@${MKDIR} \
X		${STAGEDIR}${JAVAJARDIR} \
X		${STAGEDIR}${ETCDIR} \
X		${STAGEDIR}${RIEMANN_PIDDIR} \
X		${STAGEDIR}${RIEMANN_LOGDIR}
X	${INSTALL_DATA} \
X				${WRKSRC}/lib/${PORTNAME}.jar \
X		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
X	@${SED} -i -e "s:riemann.log:${RIEMANN_LOGDIR}${PORTNAME}.log:g" \
X		${WRKSRC}/etc/${PORTNAME}.config
X	@${CP} -p ${WRKSRC}/etc/${PORTNAME}.config \
X		${STAGEDIR}${ETCDIR}/${PORTNAME}.config.sample
X
X.include <bsd.port.mk>
a36182911704503a9f2ef6f36f3539af
echo x - riemann/pkg-descr
sed 's/^X//' >riemann/pkg-descr << 'b12c827d8fab0863dec0fade1d0a8f58'
XRiemann provides low-latency, transient shared state for systems with many
Xmoving parts.
X
XRiemann aggregates events from your servers and applications with a powerful
Xstream processing language. Send an email for every exception raised by your
Xcode. Track the latency distribution of your web app. See the top processes
Xon any host, by memory and CPU. Combine statistics from every Riak node in
Xyour cluster and forward to Graphite. Send alerts when a key process fails
Xto check in. Know how many users signed up right this second.
X
XWWW: http://riemann.io/
b12c827d8fab0863dec0fade1d0a8f58
echo x - riemann/distinfo
sed 's/^X//' >riemann/distinfo << '1e89b2f97f8cdc5148e46b8aa34d999e'
XSHA256 (riemann-0.2.8.tar.bz2) = f5bb666acb878e144471f8c6d7f622193840d127aea96924fd8575e1fb6c57dc
XSIZE   (riemann-0.2.8.tar.bz2) = 31826729
1e89b2f97f8cdc5148e46b8aa34d999e
echo c - riemann/files
mkdir -p riemann/files > /dev/null 2>&1
echo x - riemann/files/riemann.in
sed 's/^X//' >riemann/files/riemann.in << '9d56dae7494e3cfc774fb9a6206aca93'
X#!/bin/sh
X
X# $FreeBSD$
X#
X# PROVIDE: riemann
X# REQUIRE: LOGIN NETWORKING SERVERS
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# riemann_enable    (bool):   Set to NO by default.
X# Set it to YES to enable riemann.
X#
X# riemann_config    (string): Optional full path for riemann config file
X# riemann_user      (user):   Set to riemann by default.
X# riemann_group     (group):  Set to riemann by default.
X# riemann_java_home (args):   Specify which JVM to use, if not default.
X# riemann_min_mem   (num):    Minumum JVM heap size, 256m by default.
X# riemann_max_mem   (num):    Maximum JVM heap size, 1g by default.
X# riemann_java_opts (args):   Additional JVM properties or arguments.
X. /etc/rc.subr
X
Xname="riemann"
Xrcvar=riemann_enable
X
Xload_rc_config $name
X
X: ${riemann_enable="NO"}
X: ${riemann_user:="%%RIEMANN_USER%%"}
X: ${riemann_group:="%%RIEMANN_GROUP%%"}
X: ${riemann_config:="%%PREFIX%%/etc/riemann/riemann.config.sample"}
X: ${riemann_java_home:="%%JAVA_HOME%%"}
X: ${riemann_min_mem:="256m"}
X: ${riemann_max_mem:="1g"}
X: ${riemann_java_opts:=" -server \
X        -Xms${riemann_min_mem} \
X        -Xmx${riemann_max_mem} \
X        -Xss256k \
X        -Djava.awt.headless=true \
X        -Djava.net.preferIPv4Stack=true \
X        -XX:+AggressiveOpts \
X        -XX:+CMSClassUnloadingEnabled \
X        -XX:+CMSParallelRemarkEnabled \
X        -XX:+DisableExplicitGC \
X        -XX:+HeapDumpOnOutOfMemoryError \
X        -XX:+UseCMSInitiatingOccupancyOnly \
X        -XX:+UseCompressedOops \
X        -XX:+UseConcMarkSweepGC \
X        -XX:+UseFastAccessorMethods \
X        -XX:+UseParNewGC \
X        -XX:CMSInitiatingOccupancyFraction=75 "}
X
Xriemann_pidfile="%%RIEMANN_PIDDIR%%${name}.pid"
Xcommand="/usr/sbin/daemon"
Xprocname="${riemann_java_home}/bin/java"
Xcommand_args="-f -c -p ${riemann_pidfile} ${procname} ${riemann_java_opts} -jar %%JAVAJARDIR%%/riemann.jar ${riemann_config}"
Xrequired_files="${java_cmd} ${riemann_config}"
X
Xriemann_prestart()
X{
X    	install -o ${riemann_user} /dev/null ${riemann_pidfile}
X}
Xstart_precmd=${name}_prestart
X
Xrun_rc_command "$1"
9d56dae7494e3cfc774fb9a6206aca93
exit