aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2016-03-15 03:50:34 +0800
committerwg <wg@FreeBSD.org>2016-03-15 03:50:34 +0800
commitca8240b653c907bcd8cb8613a6b8c503b02dca56 (patch)
treeef4ab1cf5582ac92853478e617645aa25c85b05f /sysutils
parent6eaffc92b3efedf4797fc2a70313a39e529dcd69 (diff)
downloadfreebsd-ports-graphics-ca8240b653c907bcd8cb8613a6b8c503b02dca56.tar.gz
freebsd-ports-graphics-ca8240b653c907bcd8cb8613a6b8c503b02dca56.tar.zst
freebsd-ports-graphics-ca8240b653c907bcd8cb8613a6b8c503b02dca56.zip
sysutils/sample
A program for examining periodic stack traces of all running processes. WWW: https://github.com/freenas/sample
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/sample/Makefile35
-rw-r--r--sysutils/sample/distinfo2
-rw-r--r--sysutils/sample/pkg-descr3
-rw-r--r--sysutils/sample/pkg-plist3
5 files changed, 44 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index b8ce4d11fe8..3e9d2c77c9f 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -939,6 +939,7 @@
SUBDIR += safecat
SUBDIR += samefile
SUBDIR += samesame
+ SUBDIR += sample
SUBDIR += sas2ircu
SUBDIR += sas3ircu
SUBDIR += savelogs
diff --git a/sysutils/sample/Makefile b/sysutils/sample/Makefile
new file mode 100644
index 00000000000..d63d771f328
--- /dev/null
+++ b/sysutils/sample/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME= sample
+PORTVERSION= 0.02f
+PORTREVISION= 1
+CATEGORIES= sysutils
+
+MAINTAINER= wg@FreeBSD.org
+COMMENT= Examine periodic stack traces of all running processes
+
+LICENSE= BSD3CLAUSE
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libbfd.a:${PORTSDIR}/devel/libbfd \
+ ${LOCALBASE}/lib/libiberty.a:${PORTSDIR}/devel/gnulibiberty \
+ ${LOCALBASE}/lib/libxo.a:${PORTSDIR}/devel/libxo \
+ ${LOCALBASE}/bin/cython:${PORTSDIR}/lang/cython \
+ ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python
+
+USE_GITHUB= yes
+GH_ACCOUNT= freenas
+GH_PROJECT= sample
+GH_TAGNAME= 45e2b86
+
+USES= python:build kmod
+
+MAKE_ENV= SYSDIR=${SRC_BASE}/sys
+
+SSP_UNSAFE= YES
+
+do-install:
+ ${INSTALL_KLD} ${WRKSRC}/driver/sample_driver.ko ${STAGEDIR}${KMODDIR}
+ ${INSTALL_MAN} ${WRKSRC}/sample/sample.8 ${STAGEDIR}${PREFIX}/man/man8
+ ${INSTALL_PROGRAM} ${WRKSRC}/sample/sample ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/sysutils/sample/distinfo b/sysutils/sample/distinfo
new file mode 100644
index 00000000000..67e6e6724fc
--- /dev/null
+++ b/sysutils/sample/distinfo
@@ -0,0 +1,2 @@
+SHA256 (freenas-sample-0.02f-45e2b86_GH0.tar.gz) = 48d03eabd6c2acc3e311c16aac983d5d1aa2eac6577db48d668599f4b5717764
+SIZE (freenas-sample-0.02f-45e2b86_GH0.tar.gz) = 31533
diff --git a/sysutils/sample/pkg-descr b/sysutils/sample/pkg-descr
new file mode 100644
index 00000000000..d2df60606ab
--- /dev/null
+++ b/sysutils/sample/pkg-descr
@@ -0,0 +1,3 @@
+A program for examining periodic stack traces of all running processes.
+
+WWW: https://github.com/freenas/sample
diff --git a/sysutils/sample/pkg-plist b/sysutils/sample/pkg-plist
new file mode 100644
index 00000000000..99f531414f2
--- /dev/null
+++ b/sysutils/sample/pkg-plist
@@ -0,0 +1,3 @@
+/%%KMODDIR%%/sample_driver.ko
+bin/sample
+man/man8/sample.8.gz