freebsd-ports/sysutils/DTraceToolkit/Makefile
Steven Kreuzer 353b8c5ba6 Add support for opensnoop and shellsnoop
Submitted by:	Daniel O'Connor <doconnor@gsoft.com.au>
2014-06-04 14:26:33 +00:00

39 lines
1 KiB
Makefile

# Created by: Steven Kreuzer <steven@exit2shell.com>
# $FreeBSD$
PORTNAME= DTraceToolkit
PORTVERSION= 0.99
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.brendangregg.com/DTraceToolkit/
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Collection of useful scripts for DTrace
USES= shebangfix
sh_OLD_CMD= /usr/bin/sh
sh_CMD= ${SH}
SHEBANG_LANG+= sh
SHEBANG_FILES= hotkernel procsystime opensnoop Apps/shellsnoop
NO_BUILD= YES
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 701000
IGNORE= needs to have dtrace enabled kernel
.endif
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}; ${TAR} --exclude '*.orig' -cf - . ) | \
(cd ${STAGEDIR}${DATADIR}/; ${TAR} xvf -)
post-install:
${LN} -fs ${DATADIR}/hotkernel ${STAGEDIR}${PREFIX}/bin/hotkernel
${LN} -fs ${DATADIR}/procsystime ${STAGEDIR}${PREFIX}/bin/procsystime
${LN} -fs ${DATADIR}/opensnoop ${STAGEDIR}${PREFIX}/bin/opensnoop
${LN} -fs ${DATADIR}/Apps/shellsnoop ${STAGEDIR}${PREFIX}/bin/shellsnoop
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>