Changeset View
Changeset View
Standalone View
Standalone View
sysutils/DTraceToolkit/Makefile
# Created by: Steven Kreuzer <steven@exit2shell.com> | # Created by: Steven Kreuzer <steven@exit2shell.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= dtrace-toolkit | PORTNAME= dtrace-toolkit | ||||
PORTVERSION= 1.0 | PORTVERSION= 1.0 | ||||
PORTREVISION= 4 | PORTREVISION= 5 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MAINTAINER= dteske@FreeBSD.org | MAINTAINER= dteske@FreeBSD.org | ||||
COMMENT= Collection of useful scripts for DTrace | COMMENT= Collection of useful scripts for DTrace | ||||
LICENSE= CDDL | LICENSE= CDDL | ||||
LICENSE_FILE= ${WRKSRC}/Docs/cddl1.txt | LICENSE_FILE= ${WRKSRC}/Docs/cddl1.txt | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | SHEBANG_FILES= Apps/shellsnoop \ | ||||
opensnoop \ | opensnoop \ | ||||
procsystime \ | procsystime \ | ||||
rwsnoop \ | rwsnoop \ | ||||
rwtop \ | rwtop \ | ||||
statsnoop | statsnoop | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
.include <bsd.port.options.mk> | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200031 | |||||
# lstat calls are no longer available on 12.0+ | |||||
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-dtruss | |||||
.endif | |||||
do-install: | do-install: | ||||
@${MKDIR} ${STAGEDIR}${DATADIR} | @${MKDIR} ${STAGEDIR}${DATADIR} | ||||
(cd ${WRKSRC} && ${TAR} --exclude '*.orig' -cf - . ) | \ | (cd ${WRKSRC} && ${TAR} --exclude '*.orig' -cf - . ) | \ | ||||
(cd ${STAGEDIR}${DATADIR}/ && ${TAR} xvf -) | (cd ${STAGEDIR}${DATADIR}/ && ${TAR} xvf -) | ||||
${RLN} -s ${STAGEDIR}${DATADIR}/hotkernel ${STAGEDIR}${PREFIX}/bin/hotkernel | ${RLN} ${STAGEDIR}${DATADIR}/dtruss ${STAGEDIR}${PREFIX}/bin/dtruss | ||||
${RLN} -s ${STAGEDIR}${DATADIR}/procsystime ${STAGEDIR}${PREFIX}/bin/procsystime | ${RLN} ${STAGEDIR}${DATADIR}/hotkernel ${STAGEDIR}${PREFIX}/bin/hotkernel | ||||
${RLN} -s ${STAGEDIR}${DATADIR}/opensnoop ${STAGEDIR}${PREFIX}/bin/opensnoop | ${RLN} ${STAGEDIR}${DATADIR}/procsystime ${STAGEDIR}${PREFIX}/bin/procsystime | ||||
${RLN} -s ${STAGEDIR}${DATADIR}/Apps/shellsnoop ${STAGEDIR}${PREFIX}/bin/shellsnoop | ${RLN} ${STAGEDIR}${DATADIR}/opensnoop ${STAGEDIR}${PREFIX}/bin/opensnoop | ||||
${RLN} ${STAGEDIR}${DATADIR}/Apps/shellsnoop ${STAGEDIR}${PREFIX}/bin/shellsnoop | |||||
mat: Are you sure about the `-s` flag here? I am of what install does when asked to symlink, and to… | |||||
Done Inline Actionsping for this. mat: ping for this. | |||||
Not Done Inline ActionsI suspect the port was previously updated from ln -s to {$RLN} and this was never removed. dch: I suspect the port was previously updated from `ln -s` to `{$RLN}` and this was never removed. | |||||
.for MANPAGE in hotkernel procsystime opensnoop shellsnoop | .for MANPAGE in dtruss hotkernel procsystime opensnoop shellsnoop | ||||
Done Inline ActionsCan you move dtruss to before hotkernel so that the order of entries on this line matches the order of RLN entries above (retaining pre-patch status) dteske: Can you move dtruss to before hotkernel so that the order of entries on this line matches the… | |||||
${INSTALL_MAN} ${WRKSRC}/Man/man1m/${MANPAGE}.1m \ | ${INSTALL_MAN} ${WRKSRC}/Man/man1m/${MANPAGE}.1m \ | ||||
${STAGEDIR}${MAN1PREFIX}/man/man1/${MANPAGE}.1 | ${STAGEDIR}${MAN1PREFIX}/man/man1/${MANPAGE}.1 | ||||
.endfor | .endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Are you sure about the -s flag here? I am of what install does when asked to symlink, and to strip at the same time.