Restore DTraceToolkit from r454702.

It's not in base since 2016 r300226 exactly because it is updated more often
than FreeBSD and belongs in ports.
This commit is contained in:
Bryan Drewery 2018-01-25 06:08:08 +00:00
parent 3efba28beb
commit 7d8d2e7ea6
7 changed files with 1119 additions and 1 deletions

1
MOVED
View file

@ -9836,7 +9836,6 @@ net-mgmt/nrpe-ssl|net-mgmt/nrpe3|2018-01-01|nrpe 2.0 not maintained, use nrpe 3.
security/gnupg20|security/gnupg|2018-01-01|Has expired: Will reach EOL upstream on 2017-12-31
dns/dualserver|dns/dnsmasq|2018-01-01|Has expired: Please migrate to dns/dnsmasq; over the years dualserver has become unmaintainable
devel/p5-Parse-Pidl44|devel/p5-Parse-Pidl|2018-01-01|Has expired: use devel/p5-Parse-Pidl instead
sysutils/DTraceToolkit||2018-01-01|Has expired: Now maintained as part of the base system
www/rubygem-jwt2|www/rubygem-jwt|2018-01-02|www/rubygem-jwt has been updated to 2.x
misc/py-qt5-doc||2018-01-02|No longer shipped by upstream
audio/beast||2018-01-05|Has expired: 4.5 years old version, six versions behind, requires old toolchain, and unmaintained.

View file

@ -0,0 +1,90 @@
# Created by: Steven Kreuzer <steven@exit2shell.com>
# $FreeBSD$
PORTNAME= dtrace-toolkit
PORTVERSION= 1.0
PORTREVISION= 3
CATEGORIES= sysutils
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Collection of useful scripts for DTrace
USE_GITHUB= yes
GH_ACCOUNT= opendtrace
GH_PROJECT= toolkit
GH_TAGNAME= f36d00b
USES= shebangfix
SHEBANG_LANG= sh
sh_OLD_CMD= /usr/bin/sh ./sh
sh_CMD= ${SH}
perl_OLD_CMD= \\./perl
ruby_OLD_CMD= \\./ruby
SHEBANG_FILES= Apps/shellsnoop \
Code/Perl/func_abc.pl \
Code/Perl/func_malloc.pl \
Code/Perl/func_slow.pl \
Code/Perl/hello.pl \
Code/Perl/hello_strict.pl \
Code/Python/func_abc.py \
Code/Python/func_slow.py \
Code/Ruby/func_abc.rb \
Code/Ruby/func_slow.rb \
Code/Shell/func_abc.sh \
Code/Shell/func_slow.sh \
Code/Shell/func_waste.sh \
Disk/diskhits \
Disk/iopending \
FS/vopstat \
Include/test.ksh \
Kernel/cpudists \
Kernel/cputimes \
Kernel/dnlcstat \
Mem/xvmstat \
Net/connections \
Net/tcpsnoop \
Net/tcpsnoop_snv \
Net/tcptop \
Net/tcptop_snv \
Proc/dappprof \
Proc/dapptrace \
Proc/fddist \
Proc/lastwords \
Proc/pfilestat \
Proc/sampleproc \
Proc/topsysproc \
System/topsyscall \
Zones/zvmstat \
dexplorer \
dtruss \
dvmstat \
errinfo \
execsnoop \
hotkernel \
hotuser \
install \
iopattern \
iosnoop \
iotop \
opensnoop \
procsystime \
rwsnoop \
rwtop \
statsnoop
NO_BUILD= yes
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}; ${TAR} --exclude '*.orig' -cf - . ) | \
(cd ${STAGEDIR}${DATADIR}/; ${TAR} xvf -)
${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
.for MANPAGE in hotkernel procsystime opensnoop shellsnoop
${INSTALL_MAN} ${WRKSRC}/Man/man1m/${MANPAGE}.1m \
${STAGEDIR}${MAN1PREFIX}/man/man1/${MANPAGE}.1
.endfor
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1463628205
SHA256 (opendtrace-toolkit-1.0-f36d00b_GH0.tar.gz) = 28d2ab2c846792286e30eac8e052313d2f1b1335242be85cfa4b6f52b18165c8
SIZE (opendtrace-toolkit-1.0-f36d00b_GH0.tar.gz) = 438889

View file

@ -0,0 +1,4 @@
The DTraceToolkit is a collection of useful documented scripts developed
by the DTrace community and maintained as part of Open DTrace.
WWW: https://github.com/opendtrace/toolkit

View file

@ -0,0 +1,6 @@
**************************************************************
* At this point it is prudent to remind you that DTrace *
* support in FreeBSD is incomplete and experimental. Many of *
* these scripts will not work as they are either too Solaris *
* specific or use probes which are unsupported at this time. *
**************************************************************

File diff suppressed because it is too large Load diff

View file

@ -209,6 +209,7 @@
SUBDIR += curly
SUBDIR += currtime
SUBDIR += cw
SUBDIR += DtraceToolkit
SUBDIR += daa2iso
SUBDIR += dae
SUBDIR += daemonize