diff --git a/sysutils/Makefile b/sysutils/Makefile index b8ce4d11fe85..3e9d2c77c9fb 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 000000000000..d63d771f3280 --- /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 diff --git a/sysutils/sample/distinfo b/sysutils/sample/distinfo new file mode 100644 index 000000000000..67e6e6724fc3 --- /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 000000000000..d2df60606abf --- /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 000000000000..99f531414f2e --- /dev/null +++ b/sysutils/sample/pkg-plist @@ -0,0 +1,3 @@ +/%%KMODDIR%%/sample_driver.ko +bin/sample +man/man8/sample.8.gz