freebsd-ports/sysutils/DTraceToolkit/Makefile
Wesley Shields a993796075 The DTraceToolkit is a collection of useful documented scripts developed
by the OpenSolaris DTrace community.

It's worth noting that not all of these scripts will work.  They are
either too Solaris specific or the probes have not yet been implemented.
As more probes are implemented more scripts will work.

WWW: http://www.opensolaris.org/os/community/dtrace/dtracetoolkit/

PR:		ports/132079
Submitted by:	Steven Kreuzer <skreuzer@exit2shell.com>
2009-02-26 15:05:58 +00:00

46 lines
1 KiB
Makefile

# New ports collection makefile for: DTraceToolkit
# Date created: 2008-12-11
# Whom: Steven Kreuzer <steven@exit2shell.com>
#
# $FreeBSD$
#
PORTNAME= DTraceToolkit
PORTVERSION= 0.99
CATEGORIES= sysutils
MASTER_SITES= http://www.brendangregg.com/ \
http://mirror.transact.net.au/sourceforge/d/dt/dtracetoolkit/
MAINTAINER= steven@exit2shell.com
COMMENT= Collection of useful scripts for DTrace
NO_BUILD= YES
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 701000
IGNORE= needs to have dtrace enabled kernel
.endif
pre-patch:
${REINPLACE_CMD} -e \
"s|\#\!/usr/bin/perl|\#\!${PREFIX}/bin/perl|g" \
${WRKSRC}/hotkernel
${REINPLACE_CMD} -e \
"s|\#\!/usr/bin/sh|\#\!/bin/sh|g" \
${WRKSRC}/procsystime
do-install:
${RM} ${WRKSRC}/hotkernel.bak
${RM} ${WRKSRC}/procsystime.bak
${MKDIR} ${DATADIR}
(cd ${WRKSRC}; ${TAR} cf - . ) | \
(cd ${DATADIR}/; ${TAR} xvf -)
${LN} -fs ${DATADIR}/hotkernel ${PREFIX}/bin/hotkernel
${LN} -fs ${DATADIR}/procsystime ${PREFIX}/bin/procsystime
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>