diff options
Diffstat (limited to 'sysutils/DTraceToolkit/Makefile')
-rw-r--r-- | sysutils/DTraceToolkit/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sysutils/DTraceToolkit/Makefile b/sysutils/DTraceToolkit/Makefile new file mode 100644 index 000000000000..24d8ecca1c6c --- /dev/null +++ b/sysutils/DTraceToolkit/Makefile @@ -0,0 +1,46 @@ +# 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> |