diff --git a/sysutils/Makefile b/sysutils/Makefile index 63e5522645d6..905fcbee8d91 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -711,6 +711,7 @@ SUBDIR += pslist SUBDIR += psmisc SUBDIR += pstack + SUBDIR += pstacku SUBDIR += pstree SUBDIR += ptools SUBDIR += puppet diff --git a/sysutils/pstack/Makefile b/sysutils/pstack/Makefile index 23a73d9c3ec9..0b72fe68776f 100644 --- a/sysutils/pstack/Makefile +++ b/sysutils/pstack/Makefile @@ -17,6 +17,7 @@ GH_COMMIT= 874a052 GH_TAGNAME= 874a052 USES= uidfix ONLY_FOR_ARCHS= amd64 i386 +CONFLICTS= pstacku-[0-9]* MAKE_ARGS+= BINDIR=${PREFIX}/bin MAKE_ARGS+= MANDIR=${PREFIX}/man/man MAKE_ARGS+= LIBDIR=${PREFIX}/lib diff --git a/sysutils/pstacku/Makefile b/sysutils/pstacku/Makefile new file mode 100644 index 000000000000..189b64c96849 --- /dev/null +++ b/sysutils/pstacku/Makefile @@ -0,0 +1,24 @@ +# Created by: Juergen Lock +# $FreeBSD$ + +PORTNAME= pstacku +PORTVERSION= 0.9.2 +CATEGORIES= sysutils +MASTER_SITES= https://kib.kiev.ua/kib/${PORTNAME}/ \ + http://kib.kiev.ua/kib/${PORTNAME}/ + +MAINTAINER= nox@FreeBSD.org +COMMENT= Retrieve process stack traces + +LICENSE= BSD2CLAUSE + +LIB_DEPENDS= libunwind.so:${PORTSDIR}/devel/libunwind + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--with-libunwind=${LOCALBASE} +ONLY_FOR_ARCHS= amd64 i386 +CONFLICTS= pstack-[0-9]* + +PLIST_FILES= bin/pstack man/man1/pstack.1.gz + +.include diff --git a/sysutils/pstacku/distinfo b/sysutils/pstacku/distinfo new file mode 100644 index 000000000000..9bdea5472b65 --- /dev/null +++ b/sysutils/pstacku/distinfo @@ -0,0 +1,2 @@ +SHA256 (pstacku-0.9.2.tar.gz) = e5b1ea4ee6e07de2988f8d03da752097c887f204c84a0faac6271420f70639e8 +SIZE (pstacku-0.9.2.tar.gz) = 303413 diff --git a/sysutils/pstacku/pkg-descr b/sysutils/pstacku/pkg-descr new file mode 100644 index 000000000000..ffa220b87ed9 --- /dev/null +++ b/sysutils/pstacku/pkg-descr @@ -0,0 +1,8 @@ +"pstack" is a workalike for the Solaris program of the same name. +Running pstack on a process produces a stack trace of +each thread in that process. + +It's useful for finding out what wedged processes are up to, getting +profiles of applications, and just satisfying one's curiosity. + +WWW: https://www.kib.kiev.ua/git/gitweb.cgi?p=pstacku.git;a=tree