aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/tct/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/tct/Makefile')
-rw-r--r--sysutils/tct/Makefile91
1 files changed, 49 insertions, 42 deletions
diff --git a/sysutils/tct/Makefile b/sysutils/tct/Makefile
index d441766f30dc..dfed1b9b1050 100644
--- a/sysutils/tct/Makefile
+++ b/sysutils/tct/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= tct
-PORTVERSION= 1.14
+PORTVERSION= 1.15
CATEGORIES= sysutils
MASTER_SITES= http://www.porcupine.org/forensics/
@@ -14,61 +14,68 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Analyzer for forensic data
USE_PERL5= yes
-PKGMESSAGE= ${WRKSRC}/pkg-message
+MAKE_ENV= OPT="${CFLAGS}"
-MAN1= file-tct.1 ils.1 mactime.1 md5-tct.1 pcat.1 grave-robber.1 lastcomm.1 major_minor.1 timeout.1 icat.1 lazarus.1 unrm.1
+MAN1= file-tct.1 grave-robber.1 icat.1 ils.1 lastcomm.1 lazarus.1 \
+ mactime.1 major_minor.1 md5-tct.1 pcat.1 timeout.1 unrm.1
MAN5= magic.5 tm-format.5
-MYPORTDOCS= CHANGES COPYRIGHT INSTALL LICENSE MANIFEST OS-NOTES README.FIRST TODO docs/README docs/design-notes docs/lazarus.README docs/grave-robber.README docs/mac.README
-
.include <bsd.port.pre.mk>
+.if defined(WITH_LSOF)
+RUN_DEPENDS+= ${LOCALBASE}/sbin/lsof:${PORTSDIR}/sysutils/lsof
+.endif
+
post-patch:
- ${SED} -e 's,/usr/local,${PREFIX},g' pkg-message > ${PKGMESSAGE}
+ @${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|^CC|#CC|g ; \
+ s|^DEBUG|#DEBUG|g ; \
+ s|^OPT|#OPT|g'
+ @${REINPLACE_CMD} -e '/TCT_HOME/s|$$cwd|${DATADIR}|g' ${WRKSRC}/reconfig
+ @${REINPLACE_CMD} -e 's|/usr/local/bin|${LOCALBASE}/bin|g ; \
+ s|/usr/X11R6/bin|${X11BASE}/bin|g' ${WRKSRC}/conf/paths.pl
+ @${RM} ${WRKSRC}/conf/paths.pl.bak
do-install:
- @${MKDIR} ${DOCSDIR}/lib
- @${MKDIR} ${DOCSDIR}/lazarus
- @${MKDIR} ${DOCSDIR}/etc
- @${MKDIR} ${DOCSDIR}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/file ${PREFIX}/bin/file-tct
- ${INSTALL_DATA} -m 555 ${WRKSRC}/bin/grave-robber ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/icat ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/ils ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/lastcomm ${PREFIX}/bin
- ${INSTALL_DATA} -m 555 ${WRKSRC}/bin/mactime ${PREFIX}/bin
- ${INSTALL_DATA} -m 555 ${WRKSRC}/lazarus/lazarus ${PREFIX}/bin
- ${LN} -s ${PREFIX}/bin/lazarus ${DOCSDIR}/lazarus/lazarus
- ${LN} -s ${PREFIX}/bin/file-tct ${DOCSDIR}/bin/file
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/major_minor ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/md5 ${PREFIX}/bin/md5-tct
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/pcat ${PREFIX}/bin
- ${INSTALL_DATA} -m 555 ${WRKSRC}/bin/strip_tct_home ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/unrm ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/timeout ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/man/man1/file.1 ${PREFIX}/man/man1/file-tct.1
- ${INSTALL_MAN} ${WRKSRC}/man/man1/md5.1 ${PREFIX}/man/man1/md5-tct.1
- @${MKDIR} ${DOCSDIR}/lib
- ${INSTALL_DATA} ${WRKSRC}/lib/* ${DOCSDIR}/lib
+.for f in icat ils lastcomm major_minor pcat unrm timeout
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${PREFIX}/bin/${f}
+.endfor
+.for f in file grave-robber mactime strip_tct_home
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${PREFIX}/bin/${f}
+.endfor
+.for f in file md5
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${PREFIX}/bin/${f}-tct
+.endfor
+ ${INSTALL_SCRIPT} ${WRKSRC}/lazarus/lazarus ${PREFIX}/bin
+ @${MKDIR} ${DATADIR}/bin
+ ${LN} -s ${PREFIX}/bin/file-tct ${DATADIR}/bin/file
@${MKDIR} ${PREFIX}/${SITE_PERL_REL}
${INSTALL_SCRIPT} ${WRKSRC}/lib/savecore.pl ${PREFIX}/${SITE_PERL_REL}
${INSTALL_SCRIPT} ${WRKSRC}/conf/paths.pl ${PREFIX}/${SITE_PERL_REL}
-
-post-install:
-.if !defined(NOPORTDOCS)
-.for file in ${MYPORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+ @${MKDIR} ${DATADIR}/conf
+ ${INSTALL_DATA} ${WRKSRC}/conf/* ${DATADIR}/conf
+ @${MKDIR} ${DATADIR}/etc
+ ${INSTALL_DATA} ${WRKSRC}/etc/magic ${DATADIR}/etc
+ @${MKDIR} ${DATADIR}/lazarus
+ ${LN} -s ${PREFIX}/bin/lazarus ${DATADIR}/lazarus/lazarus
+ @${MKDIR} ${DATADIR}/lib
+ ${INSTALL_DATA} ${WRKSRC}/lib/* ${DATADIR}/lib
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/file.1 ${MANPREFIX}/man/man1/file-tct.1
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/md5.1 ${MANPREFIX}/man/man1/md5-tct.1
.for f in ${MAN1:S/file-tct.1//:S/md5-tct.1//}
- ${INSTALL_MAN} ${WRKSRC}/man/man1/${f} ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/${f} ${MANPREFIX}/man/man1
.endfor
.for f in ${MAN5}
- ${INSTALL_MAN} ${WRKSRC}/man/man5/${f} ${PREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/man/man5/${f} ${MAN5PREFIX}/man/man5
.endfor
- @${MKDIR} ${DOCSDIR}/conf
- ${INSTALL_DATA} ${WRKSRC}/conf/* ${DOCSDIR}/conf
- ${INSTALL_DATA} ${WRKSRC}/etc/magic ${DOCSDIR}/etc
- @${CAT} ${PKGMESSAGE}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for f in CHANGES COPYRIGHT INSTALL LICENSE MANIFEST OS-NOTES README.FIRST TODO
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.for f in README design-notes grave-robber.README lazarus.README mac.README
+ ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
+.endfor
+.endif
.include <bsd.port.post.mk>