aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/sleuthkit/Makefile
blob: 45aa79ebe056307edeeb65cb1eef21157d9a29fe (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:    The Sleuth Kit
# Date created:             2003-08-12
# Whom:                 Pieter Danhieux <opr@bsdaemon.be>
#
# $FreeBSD$
#

PORTNAME=   sleuthkit
PORTVERSION=    2.06
CATEGORIES= sysutils security
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= danfe@FreeBSD.org
COMMENT=    The @stake Sleuth Kit for forensic analysis

CONFLICTS=  ja-ls-[0-9]*

USE_PERL5=  yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500033
BROKEN=     Does not build on pre-GEOM versions of FreeBSD
.endif

PROGS=      dcalc dcat disk_sreset disk_stat dls dstat ffind \
        fls fsstat hfind icat ifind ils img_stat istat \
        jcat jls md5 mmls mmstat sha1 sigfind srch_strings
SCRIPTS=    mactime sorter
DOCS=       CHANGES.txt README.txt docs/*
MAN1=       dcalc.1 dcat.1 disk_sreset.1 disk_stat.1 dls.1 \
        dstat.1 ffind.1 fls.1 fsstat.1 hfind.1 icat.1 ifind.1 \
        ils.1 img_stat.1 istat.1 jcat.1 jls.1 mactime.1 mmls.1 \
        sigfind.1 sorter.1

post-patch:
    @${REINPLACE_CMD} -E -e 's/^CC[[:space:]]*=/CC \?=/' \
        -e 's/[[:space:]]+file test[[:space:]]*$$//' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e '/^CC[[:space:]]*=/d' -e 's/\$$(OPT) \$$(DEBUG)//' \
        -e 's/^CFLAGS[[:space:]]*=/CFLAGS \+=/' \
        ${WRKSRC}/src/disktools/Makefile ${WRKSRC}/src/fstools/Makefile \
        ${WRKSRC}/src/hashtools/Makefile ${WRKSRC}/src/imgtools/Makefile \
        ${WRKSRC}/src/auxtools/Makefile ${WRKSRC}/src/mmtools/Makefile \
        ${WRKSRC}/src/srchtools/Makefile
    @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
        -e '8s|-g -Wall|${CFLAGS}| ; 9s|-g -Wall|${CXXFLAGS}|' \
        ${WRKSRC}/src/afflib/Makefile.defs ${WRKSRC}/src/afflib/Makefile

do-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
    cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${PROGS} ${PREFIX}/bin
    cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
    cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1

.include <bsd.port.post.mk>