freebsd-ports/sysutils/tct/Makefile
Pav Lucistnik 9e80673370 - Update to 1.14
PR:		ports/66985
Submitted by:	FGM <francisco@gomezmarin.com> (maintainer)
2004-05-21 23:24:04 +00:00

73 lines
2.6 KiB
Makefile

# New ports collection makefile for: tct
# Date created: 21 September 2003
# Whom: Francisco Gomez <francisco@gomezmarin.com>
#
# $FreeBSD$
#
PORTNAME= tct
PORTVERSION= 1.14
CATEGORIES= sysutils
MASTER_SITES= http://www.fish.com/tct/ \
http://www.porcupine.org/forensics/
MAINTAINER= francisco@gomezmarin.com
COMMENT= Analyzer for forensic data
USE_PERL5= yes
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
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>
do-install:
${MKDIR} ${PREFIX}/share/doc/tct/lib
${MKDIR} ${PREFIX}/share/doc/tct/lazarus
${MKDIR} ${PREFIX}/share/doc/tct/etc
${MKDIR} ${PREFIX}/share/doc/tct/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 ${LOCALBASE}/share/doc/tct/lazarus/lazarus
${LN} -s ${PREFIX}/bin/file-tct ${LOCALBASE}/share/doc/tct/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
${CP} -Rp ${WRKSRC}/lib ${PREFIX}/share/doc/tct
${CP} ${WRKSRC}/lib/savecore.pl ${SITE_PERL}
${CP} ${WRKSRC}/conf/paths.pl ${SITE_PERL}
post-install:
.if !defined(NOPORTDOCS)
.for file in ${MYPORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/tct
.endfor
.endif
.for file in ${MAN1:S/file-tct.1//:S/md5-tct.1//}
${INSTALL_MAN} ${WRKSRC}/man/man1/${file} ${PREFIX}/man/man1
.endfor
.for file in ${MAN5}
${INSTALL_MAN} ${WRKSRC}/man/man5/${file} ${PREFIX}/man/man5
.endfor
${MKDIR} ${PREFIX}/share/doc/tct/conf
${CP} ${WRKSRC}/conf/* ${PREFIX}/share/doc/tct/conf
${CP} ${WRKSRC}/etc/magic ${PREFIX}/share/doc/tct/etc
${CP} ${WRKSRC}/src/file/Magdir/magic ${PREFIX}/share/doc/tct/etc
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>