Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2016 08:18:30 +0000 (UTC)
From:      Olivier Cochard <olivier@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417144 - in head/sysutils: . bstack
Message-ID:  <201606200818.u5K8IUUp015006@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olivier
Date: Mon Jun 20 08:18:29 2016
New Revision: 417144
URL: https://svnweb.freebsd.org/changeset/ports/417144

Log:
  New port: sysutils/bstack
  
  bstack - gstack for FreeBSD
  
  This is a port of gstack, a script build around gdb on RedHat and other
  Linux distros, to FreeBSD.
  
  bstack take a PID as only parameter and print out the back trace of that
  running process. If the process is multithread, the backtrace of all
  threads is printed.
  
  It works with the last version of GDB
  
  WWW: https://github.com/pizzamig/bstack
  
  PR:		209398
  Submitted by:	luca.pizzamiglio@gmail.com
  Approved by:	jadawin (mentor)
  Differential Revision:	https://reviews.freebsd.org/D6899

Added:
  head/sysutils/bstack/
  head/sysutils/bstack/Makefile   (contents, props changed)
  head/sysutils/bstack/distinfo   (contents, props changed)
  head/sysutils/bstack/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Mon Jun 20 08:12:45 2016	(r417143)
+++ head/sysutils/Makefile	Mon Jun 20 08:18:29 2016	(r417144)
@@ -103,6 +103,7 @@
     SUBDIR += bsdmoted
     SUBDIR += bsdploy
     SUBDIR += bsdstats
+    SUBDIR += bstack
     SUBDIR += btsixad
     SUBDIR += bulk_extractor
     SUBDIR += burp

Added: head/sysutils/bstack/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/bstack/Makefile	Mon Jun 20 08:18:29 2016	(r417144)
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME=	bstack
+PORTVERSION=	0.1
+CATEGORIES=	sysutils
+
+MAINTAINER=	luca.pizzamiglio@gmail.com
+COMMENT=	Debug tool that shows the stack trace of a running process
+
+LICENSE=	BSD3CLAUSE
+
+RUN_DEPENDS=	gdb:devel/gdb
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	pizzamig
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+PLIST_FILES=	bin/bstack \
+		%%DATADIR%%/gdb_bstack
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|;' ${WRKSRC}/bstack
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/bstack \
+		${STAGEDIR}${PREFIX}/bin/bstack
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/gdb_bstack \
+		${STAGEDIR}${DATADIR}/gdb_bstack
+
+.include <bsd.port.mk>

Added: head/sysutils/bstack/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/bstack/distinfo	Mon Jun 20 08:18:29 2016	(r417144)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1466409420
+SHA256 (pizzamig-bstack-0.1_GH0.tar.gz) = 358ab23ba0ce99260a3239797bdc5fc10cf14bce00ec7b3ff1ab2f1fbe8ffccd
+SIZE (pizzamig-bstack-0.1_GH0.tar.gz) = 1868

Added: head/sysutils/bstack/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/bstack/pkg-descr	Mon Jun 20 08:18:29 2016	(r417144)
@@ -0,0 +1,12 @@
+bstack - gstack for FreeBSD
+
+This is a port of gstack, a script build around gdb on RedHat and other
+Linux distros, to FreeBSD.
+
+bstack take a PID as only parameter and print out the back trace of that
+running process. If the process is multithread, the backtrace of all
+threads is printed.
+
+It works with the last version of GDB
+
+WWW: https://github.com/pizzamig/bstack



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