import erl-stats_hero

The stats_hero application can help you instrument your Erlang
application with metrics that will be reported to estatsd and browsable
in Graphite.

ok aja@
This commit is contained in:
jasper 2013-03-08 12:09:13 +00:00
parent 4fa6d61719
commit 95fb827640
6 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,38 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/03/08 12:09:13 jasper Exp $
COMMENT= general purpose stats and collection for Erlang
VERSION= 0.0.1
DISTNAME= stats_hero-${VERSION}
PKGNAME= erl-${DISTNAME}
CATEGORIES= sysutils lang/erlang
HOMEPAGE= https://github.com/opscode/stats_hero
# Apache2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://distfiles.nl/
BUILD_DEPENDS= devel/rebar
RUN_DEPENDS= devel/erl-meck \
textproc/erl-edown
ALL_TARGET= compile
REGRESS_TARGET= eunit
ERL_LIBDIR= ${PREFIX}/lib/erlang/lib/${DISTNAME}
SUBST_VARS+= VERSION
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/stats_hero.app.src
do-install:
${INSTALL_DATA_DIR} ${ERL_LIBDIR}/{ebin,include,src}
${INSTALL_DATA} ${WRKSRC}/ebin/*.{app,beam} ${ERL_LIBDIR}/ebin/
${INSTALL_DATA} ${WRKSRC}/include/*.hrl ${ERL_LIBDIR}/include/
${INSTALL_DATA} ${WRKSRC}/src/*.erl ${ERL_LIBDIR}/src/
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (stats_hero-0.0.1.tar.gz) = /Rk05uhn0LNF/WJ20z2nqrpHDRIJMWaC9TyYYslS6Eg=
SIZE (stats_hero-0.0.1.tar.gz) = 23993

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-rebar_config,v 1.1.1.1 2013/03/08 12:09:13 jasper Exp $
--- rebar.config.orig Mon Feb 25 16:27:33 2013
+++ rebar.config Mon Feb 25 16:27:39 2013
@@ -1,15 +1,6 @@
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
-{deps, [
-
- {meck, ".*",
- {git, "git://github.com/eproxus/meck.git", {branch, "master"}}},
-
- {edown, ".*",
- {git, "git://github.com/seth/edown.git", {branch, "master"}}}
- ]}.
-
{cover_enabled, true}.
{edoc_opts, [{doclet, edown_doclet},

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_stats_hero_app_src,v 1.1.1.1 2013/03/08 12:09:13 jasper Exp $
--- src/stats_hero.app.src.orig Mon Feb 25 16:26:58 2013
+++ src/stats_hero.app.src Mon Feb 25 16:27:21 2013
@@ -18,7 +18,7 @@
{application, stats_hero,
[
{description, "Metrics and logging helper app for Opscode Erlang projects"},
- {vsn, git},
+ {vsn, "${VERSION}"},
{registered, [stats_hero_monitor, stats_hero_worker_sup]},
{applications, [
kernel,

View File

@ -0,0 +1,3 @@
The stats_hero application can help you instrument your Erlang
application with metrics that will be reported to estatsd and browsable
in Graphite.

View File

@ -0,0 +1,21 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/08 12:09:13 jasper Exp $
lib/erlang/lib/stats_hero-${VERSION}/
lib/erlang/lib/stats_hero-${VERSION}/ebin/
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero.app
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero.beam
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero_app.beam
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero_monitor.beam
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero_sender.beam
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero_sender_sup.beam
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero_sup.beam
lib/erlang/lib/stats_hero-${VERSION}/ebin/stats_hero_worker_sup.beam
lib/erlang/lib/stats_hero-${VERSION}/include/
lib/erlang/lib/stats_hero-${VERSION}/include/stats_hero.hrl
lib/erlang/lib/stats_hero-${VERSION}/src/
lib/erlang/lib/stats_hero-${VERSION}/src/stats_hero.erl
lib/erlang/lib/stats_hero-${VERSION}/src/stats_hero_app.erl
lib/erlang/lib/stats_hero-${VERSION}/src/stats_hero_monitor.erl
lib/erlang/lib/stats_hero-${VERSION}/src/stats_hero_sender.erl
lib/erlang/lib/stats_hero-${VERSION}/src/stats_hero_sender_sup.erl
lib/erlang/lib/stats_hero-${VERSION}/src/stats_hero_sup.erl
lib/erlang/lib/stats_hero-${VERSION}/src/stats_hero_worker_sup.erl