Update sysutils/filelight to version 20.04.0
[dports.git] / sysutils / dtrace-toolkit / Makefile
1 # Created by: Steven Kreuzer <steven@exit2shell.com>
2 # $FreeBSD$
3
4 PORTNAME=       dtrace-toolkit
5 PORTVERSION=    1.0
6 PORTREVISION=   5
7 CATEGORIES=     sysutils
8
9 MAINTAINER=     ports@FreeBSD.org
10 COMMENT=        Collection of useful scripts for DTrace
11
12 LICENSE=        CDDL
13 LICENSE_FILE=   ${WRKSRC}/Docs/cddl1.txt
14
15 USES=           perl5 python shebangfix
16 USE_GITHUB=     yes
17 GH_ACCOUNT=     opendtrace
18 GH_PROJECT=     toolkit
19 GH_TAGNAME=     f36d00b
20 USE_RUBY=       yes
21 SHEBANG_LANG=   sh
22 sh_OLD_CMD=     /usr/bin/sh ./sh
23 sh_CMD=         ${SH}
24 perl_OLD_CMD=   \\./perl
25 ruby_OLD_CMD=   \\./ruby
26 SHEBANG_FILES=  Apps/shellsnoop \
27                 Code/Perl/func_abc.pl \
28                 Code/Perl/func_malloc.pl \
29                 Code/Perl/func_slow.pl \
30                 Code/Perl/hello.pl \
31                 Code/Perl/hello_strict.pl \
32                 Code/Python/func_abc.py \
33                 Code/Python/func_slow.py \
34                 Code/Ruby/func_abc.rb \
35                 Code/Ruby/func_slow.rb \
36                 Code/Shell/func_abc.sh \
37                 Code/Shell/func_slow.sh \
38                 Code/Shell/func_waste.sh \
39                 Disk/diskhits \
40                 Disk/iopending \
41                 FS/vopstat \
42                 Include/test.ksh \
43                 Kernel/cpudists \
44                 Kernel/cputimes \
45                 Kernel/dnlcstat \
46                 Mem/xvmstat \
47                 Net/connections \
48                 Net/tcpsnoop \
49                 Net/tcpsnoop_snv \
50                 Net/tcptop \
51                 Net/tcptop_snv \
52                 Proc/dappprof \
53                 Proc/dapptrace \
54                 Proc/fddist \
55                 Proc/lastwords \
56                 Proc/pfilestat \
57                 Proc/sampleproc \
58                 Proc/topsysproc \
59                 System/topsyscall \
60                 Zones/zvmstat \
61                 dexplorer \
62                 dtruss \
63                 dvmstat \
64                 errinfo \
65                 execsnoop \
66                 hotkernel \
67                 hotuser \
68                 install \
69                 iopattern \
70                 iosnoop \
71                 iotop \
72                 opensnoop \
73                 procsystime \
74                 rwsnoop \
75                 rwtop \
76                 statsnoop
77
78 NO_BUILD=       yes
79
80 .include <bsd.port.options.mk>
81
82 .if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200031
83 # lstat calls are no longer available on 12.0+
84 EXTRA_PATCHES=  ${PATCHDIR}/extra-patch-dtruss
85 .endif
86
87 do-install:
88         @${MKDIR} ${STAGEDIR}${DATADIR}
89         (cd ${WRKSRC} && ${TAR} --exclude '*.orig' -cf - . ) | \
90                 (cd ${STAGEDIR}${DATADIR}/ && ${TAR} xvf -)
91         ${RLN} ${STAGEDIR}${DATADIR}/dtruss ${STAGEDIR}${PREFIX}/bin/dtruss
92         ${RLN} ${STAGEDIR}${DATADIR}/hotkernel ${STAGEDIR}${PREFIX}/bin/hotkernel
93         ${RLN} ${STAGEDIR}${DATADIR}/procsystime ${STAGEDIR}${PREFIX}/bin/procsystime
94         ${RLN} ${STAGEDIR}${DATADIR}/opensnoop ${STAGEDIR}${PREFIX}/bin/opensnoop
95         ${RLN} ${STAGEDIR}${DATADIR}/Apps/shellsnoop ${STAGEDIR}${PREFIX}/bin/shellsnoop
96
97 .for MANPAGE in dtruss hotkernel procsystime opensnoop shellsnoop
98         ${INSTALL_MAN} ${WRKSRC}/Man/man1m/${MANPAGE}.1m \
99                 ${STAGEDIR}${MAN1PREFIX}/man/man1/${MANPAGE}.1
100 .endfor
101
102 .include <bsd.port.mk>