| @@ -1,48 +1,47 @@ | | | @@ -1,48 +1,47 @@ |
1 | # $NetBSD: Makefile,v 1.21 2006/03/01 22:48:05 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.22 2010/01/27 21:18:13 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= tct-1.09 | | 4 | DISTNAME= tct-1.09 |
5 | PKGREVISION= 3 | | 5 | PKGREVISION= 3 |
6 | CATEGORIES= security | | 6 | CATEGORIES= security |
7 | MASTER_SITES= http://www.porcupine.org/forensics/ | | 7 | MASTER_SITES= http://www.porcupine.org/forensics/ |
8 | | | 8 | |
9 | MAINTAINER= frazee.23@osu.edu | | 9 | MAINTAINER= frazee.23@osu.edu |
10 | HOMEPAGE= http://www.porcupine.org/forensics/tct.html | | 10 | HOMEPAGE= http://www.porcupine.org/forensics/tct.html |
11 | COMMENT= Programs to aid post-mortem after a break-in | | 11 | COMMENT= Programs to aid post-mortem after a break-in |
12 | | | 12 | |
| | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
| | | 14 | |
13 | DEPENDS+= p5-Date-Manip-[0-9]*:../../devel/p5-Date-Manip | | 15 | DEPENDS+= p5-Date-Manip-[0-9]*:../../devel/p5-Date-Manip |
14 | | | 16 | |
15 | USE_TOOLS+= perl:run | | 17 | USE_TOOLS+= perl:run |
16 | REPLACE_PERL+= bin/grave-robber bin/mactime bin/strip_tct_home | | 18 | REPLACE_PERL+= bin/grave-robber bin/mactime bin/strip_tct_home |
17 | REPLACE_PERL+= extras/bdf extras/ils2mac extras/realpath | | 19 | REPLACE_PERL+= extras/bdf extras/ils2mac extras/realpath |
18 | REPLACE_PERL+= lazarus/lazarus | | 20 | REPLACE_PERL+= lazarus/lazarus |
19 | | | 21 | |
20 | MAKE_ENV+= PERL5=${PERL5:Q} | | 22 | MAKE_ENV+= PERL5=${PERL5:Q} |
21 | | | 23 | |
| | | 24 | INSTALLATION_DIRS+= tct/bin tct/conf tct/etc share/doc/tct ${PERL5_INSTALLVENDORLIB} |
| | | 25 | |
22 | do-install: | | 26 | do-install: |
23 | ${INSTALL_PROGRAM_DIR} ${PREFIX}/tct/bin | | | |
24 | cd ${WRKSRC}/bin && \ | | 27 | cd ${WRKSRC}/bin && \ |
25 | for f in grave-robber mactime; do \ | | 28 | for f in grave-robber mactime; do \ |
26 | ${INSTALL_SCRIPT} $$f ${PREFIX}/tct/bin; \ | | 29 | ${INSTALL_SCRIPT} $$f ${DESTDIR}${PREFIX}/tct/bin; \ |
27 | done; \ | | 30 | done; \ |
28 | for f in file icat ils lastcomm major_minor md5 pcat timeout unrm; do \ | | 31 | for f in file icat ils lastcomm major_minor md5 pcat timeout unrm; do \ |
29 | ${INSTALL_PROGRAM} $$f ${PREFIX}/tct/bin; \ | | 32 | ${INSTALL_PROGRAM} $$f ${DESTDIR}${PREFIX}/tct/bin; \ |
30 | done | | 33 | done |
31 | cd ${WRKSRC}/extras && \ | | 34 | cd ${WRKSRC}/extras && \ |
32 | for f in bdf ils2mac realpath; do \ | | 35 | for f in bdf ils2mac realpath; do \ |
33 | ${INSTALL_SCRIPT} $$f ${PREFIX}/tct/bin; \ | | 36 | ${INSTALL_SCRIPT} $$f ${DESTDIR}${PREFIX}/tct/bin; \ |
34 | done | | 37 | done |
35 | ${INSTALL_SCRIPT} ${WRKSRC}/lazarus/lazarus ${PREFIX}/tct/bin | | 38 | ${INSTALL_SCRIPT} ${WRKSRC}/lazarus/lazarus ${DESTDIR}${PREFIX}/tct/bin |
36 | ${INSTALL_PROGRAM_DIR} ${PREFIX}/tct/etc | | 39 | cd ${WRKSRC}/etc && ${INSTALL_DATA} magic ${DESTDIR}${PREFIX}/tct/etc |
37 | cd ${WRKSRC}/etc && ${INSTALL_DATA} magic ${PREFIX}/tct/etc | | | |
38 | ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tct | | | |
39 | cd ${WRKSRC}/docs && \ | | 40 | cd ${WRKSRC}/docs && \ |
40 | for f in README design-notes grave-robber.README lazarus.README mac.README; do \ | | 41 | for f in README design-notes grave-robber.README lazarus.README mac.README; do \ |
41 | ${INSTALL_DATA} $$f ${PREFIX}/share/doc/tct; \ | | 42 | ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/doc/tct; \ |
42 | done | | 43 | done |
43 | ${INSTALL_DATA_DIR} ${PERL5_INSTALLVENDORLIB} | | 44 | cd ${WRKSRC}/lib && ${INSTALL_DATA} *.pl ${DESTDIR}${PERL5_INSTALLVENDORLIB} |
44 | cd ${WRKSRC}/lib && ${INSTALL_DATA} *.pl ${PERL5_INSTALLVENDORLIB} | | 45 | cd ${WRKSRC}/conf && ${INSTALL_DATA} paths.pl *.cf ${DESTDIR}${PREFIX}/tct/conf |
45 | ${INSTALL_PROGRAM_DIR} ${PREFIX}/tct/conf | | | |
46 | cd ${WRKSRC}/conf && ${INSTALL_DATA} paths.pl *.cf ${PREFIX}/tct/conf | | | |
47 | | | 46 | |
48 | .include "../../mk/bsd.pkg.mk" | | 47 | .include "../../mk/bsd.pkg.mk" |