diff --git a/sysutils/erl-stats_hero/Makefile b/sysutils/erl-stats_hero/Makefile new file mode 100644 index 00000000000..a1425737317 --- /dev/null +++ b/sysutils/erl-stats_hero/Makefile @@ -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 diff --git a/sysutils/erl-stats_hero/distinfo b/sysutils/erl-stats_hero/distinfo new file mode 100644 index 00000000000..cab5f328023 --- /dev/null +++ b/sysutils/erl-stats_hero/distinfo @@ -0,0 +1,2 @@ +SHA256 (stats_hero-0.0.1.tar.gz) = /Rk05uhn0LNF/WJ20z2nqrpHDRIJMWaC9TyYYslS6Eg= +SIZE (stats_hero-0.0.1.tar.gz) = 23993 diff --git a/sysutils/erl-stats_hero/patches/patch-rebar_config b/sysutils/erl-stats_hero/patches/patch-rebar_config new file mode 100644 index 00000000000..c7502db59e1 --- /dev/null +++ b/sysutils/erl-stats_hero/patches/patch-rebar_config @@ -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}, diff --git a/sysutils/erl-stats_hero/patches/patch-src_stats_hero_app_src b/sysutils/erl-stats_hero/patches/patch-src_stats_hero_app_src new file mode 100644 index 00000000000..c320fad9123 --- /dev/null +++ b/sysutils/erl-stats_hero/patches/patch-src_stats_hero_app_src @@ -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, diff --git a/sysutils/erl-stats_hero/pkg/DESCR b/sysutils/erl-stats_hero/pkg/DESCR new file mode 100644 index 00000000000..75ee9d4e1ea --- /dev/null +++ b/sysutils/erl-stats_hero/pkg/DESCR @@ -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. diff --git a/sysutils/erl-stats_hero/pkg/PLIST b/sysutils/erl-stats_hero/pkg/PLIST new file mode 100644 index 00000000000..e76e9b35068 --- /dev/null +++ b/sysutils/erl-stats_hero/pkg/PLIST @@ -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