Commit e0625497 authored by olgeni's avatar olgeni
Browse files

Add devel/erlang-recon, a collection of functions and scripts to

debug Erlang in production.
parent 70e7fdf1
......@@ -419,6 +419,7 @@
SUBDIR += erlang-msgpack
SUBDIR += erlang-mustache
SUBDIR += erlang-protobuffs
SUBDIR += erlang-recon
SUBDIR += erlang-syslog
SUBDIR += esdl
SUBDIR += etcd
......
# $FreeBSD$
PORTNAME= recon
PORTVERSION= 2.2.1
CATEGORIES= devel
PKGNAMEPREFIX= erlang-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Collection of functions and scripts to debug Erlang in production
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= ferd
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s@%%LOCALBASE%%@${LOCALBASE}@" ${WRKSRC}/script/app_deps.erl
@${RM} ${WRKSRC}/script/*.bak ${WRKSRC}/script/*.orig
do-build:
@cd ${WRKSRC} && ./rebar compile doc
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/script
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
${INSTALL_DATA} ${WRKSRC}/script/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/script
.include <bsd.port.mk>
SHA256 (ferd-recon-2.2.1_GH0.tar.gz) = f5175ce0944bb0349f6fb766888ee230a91dfe05ba1b8f7a6e4d5380049e354f
SIZE (ferd-recon-2.2.1_GH0.tar.gz) = 202344
--- script/app_deps.erl.orig 2015-06-02 17:06:36 UTC
+++ script/app_deps.erl
@@ -1,3 +1,4 @@
+#!%%LOCALBASE%%/bin/escript
%%% Run with 'escript app_deps.erl'
%%% Change the path in filelib:wildcard/1 as required to capture
%%% all your dependencies.
Recon is a library to be dropped into any other Erlang project, to
be used to assist DevOps people diagnose problems in production
nodes.
WWW: http://ferd.github.io/recon/
lib/erlang/lib/recon-%%VERSION%%/ebin/recon.app
lib/erlang/lib/recon-%%VERSION%%/ebin/recon.beam
lib/erlang/lib/recon-%%VERSION%%/ebin/recon_alloc.beam
lib/erlang/lib/recon-%%VERSION%%/ebin/recon_lib.beam
lib/erlang/lib/recon-%%VERSION%%/ebin/recon_trace.beam
lib/erlang/lib/recon-%%VERSION%%/script/app_deps.erl
lib/erlang/lib/recon-%%VERSION%%/script/erl_crashdump_analyzer.sh
lib/erlang/lib/recon-%%VERSION%%/script/queue_fun.awk
lib/erlang/lib/recon-%%VERSION%%/src/recon.app.src
lib/erlang/lib/recon-%%VERSION%%/src/recon.erl
lib/erlang/lib/recon-%%VERSION%%/src/recon_alloc.erl
lib/erlang/lib/recon-%%VERSION%%/src/recon_lib.erl
lib/erlang/lib/recon-%%VERSION%%/src/recon_trace.erl
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%PORTDOCS%%%%DOCSDIR%%/edoc-info
%%PORTDOCS%%%%DOCSDIR%%/erlang.png
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/modules-frame.html
%%PORTDOCS%%%%DOCSDIR%%/overview-summary.html
%%PORTDOCS%%%%DOCSDIR%%/overview.edoc
%%PORTDOCS%%%%DOCSDIR%%/packages-frame.html
%%PORTDOCS%%%%DOCSDIR%%/recon.html
%%PORTDOCS%%%%DOCSDIR%%/recon_alloc.html
%%PORTDOCS%%%%DOCSDIR%%/recon_lib.html
%%PORTDOCS%%%%DOCSDIR%%/recon_trace.html
%%PORTDOCS%%%%DOCSDIR%%/stylesheet.css
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment