Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2015 18:18:30 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r388370 - in head/devel: . erlang-recon erlang-recon/files
Message-ID:  <201506021818.t52IIUR3064337@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Tue Jun  2 18:18:29 2015
New Revision: 388370
URL: https://svnweb.freebsd.org/changeset/ports/388370

Log:
  Add devel/erlang-recon, a collection of functions and scripts to
  debug Erlang in production.

Added:
  head/devel/erlang-recon/
  head/devel/erlang-recon/Makefile   (contents, props changed)
  head/devel/erlang-recon/distinfo   (contents, props changed)
  head/devel/erlang-recon/files/
  head/devel/erlang-recon/files/patch-script_app__deps.erl   (contents, props changed)
  head/devel/erlang-recon/pkg-descr   (contents, props changed)
  head/devel/erlang-recon/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Jun  2 17:55:54 2015	(r388369)
+++ head/devel/Makefile	Tue Jun  2 18:18:29 2015	(r388370)
@@ -419,6 +419,7 @@
     SUBDIR += erlang-msgpack
     SUBDIR += erlang-mustache
     SUBDIR += erlang-protobuffs
+    SUBDIR += erlang-recon
     SUBDIR += erlang-syslog
     SUBDIR += esdl
     SUBDIR += etcd

Added: head/devel/erlang-recon/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-recon/Makefile	Tue Jun  2 18:18:29 2015	(r388370)
@@ -0,0 +1,42 @@
+# $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>

Added: head/devel/erlang-recon/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-recon/distinfo	Tue Jun  2 18:18:29 2015	(r388370)
@@ -0,0 +1,2 @@
+SHA256 (ferd-recon-2.2.1_GH0.tar.gz) = f5175ce0944bb0349f6fb766888ee230a91dfe05ba1b8f7a6e4d5380049e354f
+SIZE (ferd-recon-2.2.1_GH0.tar.gz) = 202344

Added: head/devel/erlang-recon/files/patch-script_app__deps.erl
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-recon/files/patch-script_app__deps.erl	Tue Jun  2 18:18:29 2015	(r388370)
@@ -0,0 +1,7 @@
+--- 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.

Added: head/devel/erlang-recon/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-recon/pkg-descr	Tue Jun  2 18:18:29 2015	(r388370)
@@ -0,0 +1,5 @@
+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/

Added: head/devel/erlang-recon/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/erlang-recon/pkg-plist	Tue Jun  2 18:18:29 2015	(r388370)
@@ -0,0 +1,26 @@
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506021818.t52IIUR3064337>