summaryrefslogtreecommitdiff
path: root/security/tct/Makefile
blob: 2e45ec5bb962ffa76e1e6658f4903f76d58dcd38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.11 2003/07/21 17:20:38 martti Exp $
#

DISTNAME=	tct-1.09
CATEGORIES=	security
MASTER_SITES=	http://www.porcupine.org/forensics/

MAINTAINER=	frazee.23@osu.edu
HOMEPAGE=	http://www.porcupine.org/forensics/tct.html
COMMENT=	Programs to aid post-mortem after a break-in

DEPENDS+=	p5-Date-Manip-[0-9]*:../../devel/p5-Date-Manip

USE_BUILDLINK2=	yes
REPLACE_PERL=	bin/grave-robber bin/mactime bin/strip_tct_home
REPLACE_PERL+=	extras/bdf extras/ils2mac extras/realpath
REPLACE_PERL+=	lazarus/lazarus

do-install:
	${INSTALL_PROGRAM_DIR} ${LOCALBASE}/tct/bin
	cd ${WRKSRC}/bin &&						\
	for f in grave-robber mactime; do				\
		${INSTALL_SCRIPT} $$f ${LOCALBASE}/tct/bin;		\
	done;								\
	for f in file icat ils lastcomm major_minor md5 pcat timeout unrm; do \
		${INSTALL_PROGRAM} $$f ${LOCALBASE}/tct/bin;		\
	done
	cd ${WRKSRC}/extras &&						\
	for f in bdf ils2mac realpath; do				\
		${INSTALL_SCRIPT} $$f ${LOCALBASE}/tct/bin;		\
	done
	${INSTALL_SCRIPT} ${WRKSRC}/lazarus/lazarus ${LOCALBASE}/tct/bin
	${INSTALL_PROGRAM_DIR} ${LOCALBASE}/tct/etc
	cd ${WRKSRC}/etc && ${INSTALL_DATA} magic ${LOCALBASE}/tct/etc
	${INSTALL_DATA_DIR} ${LOCALBASE}/share/doc/tct
	cd ${WRKSRC}/docs &&						\
	for f in README design-notes grave-robber.README lazarus.README mac.README; do \
		${INSTALL_DATA} $$f ${LOCALBASE}/share/doc/tct;		\
	done
	${INSTALL_DATA_DIR} ${PERL5_SITEARCH}
	cd ${WRKSRC}/lib && ${INSTALL_DATA} *.pl ${PERL5_SITEARCH}
	${INSTALL_PROGRAM_DIR} ${LOCALBASE}/tct/conf
	cd ${WRKSRC}/conf && ${INSTALL_DATA} paths.pl *.cf ${LOCALBASE}/tct/conf

.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"