summaryrefslogtreecommitdiff
path: root/sysutils/sleuthkit/Makefile
blob: 83e16b337139d40f4d6da2f979da69c47d1382b1 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Created by: Pieter Danhieux <opr@bsdaemon.be>
# $FreeBSD$

PORTNAME=	sleuthkit
PORTVERSION=	4.6.6
PORTREVISION=	1
CATEGORIES=	sysutils security
MASTER_SITES=	https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-${PORTVERSION}/

MAINTAINER=	antoine@FreeBSD.org
COMMENT=	Tools and library for filesystem forensic analysis

LICENSE=	CPL IBM GPLv2
LICENSE_COMB=	multi
LICENSE_NAME_CPL=Common Public License
LICENSE_NAME_IBM=IBM Public License
LICENSE_FILE_CPL=${WRKSRC}/licenses/cpl1.0.txt
LICENSE_FILE_IBM=${WRKSRC}/licenses/IBM-LICENSE
LICENSE_PERMS_CPL=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_IBM=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

RUN_DEPENDS=	p5-DateTime-TimeZone>=0:devel/p5-DateTime-TimeZone \
		exif:graphics/exif

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

CPPFLAGS+=	-D_WITH_GETLINE
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_header_libpq_fe_h=no
USES=		compiler:c++11-lang libtool perl5 sqlite
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip
DATADIR=	${PREFIX}/share/tsk

PORTDOCS=	NEWS.txt README.md

OPTIONS_DEFINE=	AFFLIB DOCS LIBEWF LIBVHDI LIBVMDK
AFFLIB_DESC=	Build with AFF support
LIBEWF_DESC=	Build with EWF support
LIBVHDI_DESC=	Build with VHDI support
LIBVMDK_DESC=	Build with VMDK support
OPTIONS_DEFAULT=LIBEWF LIBVHDI LIBVMDK

AFFLIB_LIB_DEPENDS=	libafflib.so:sysutils/afflib
AFFLIB_CONFIGURE_WITH=	afflib=${LOCALBASE}

LIBEWF_LIB_DEPENDS=	libewf.so:devel/libewf
LIBEWF_CONFIGURE_WITH=	libewf=${LOCALBASE}

LIBVHDI_LIB_DEPENDS=	libvhdi.so:devel/libvhdi
LIBVHDI_CONFIGURE_WITH=	libvhdi=${LOCALBASE}

LIBVMDK_LIB_DEPENDS=	libvmdk.so:devel/libvmdk
LIBVMDK_CONFIGURE_WITH=	libvmdk=${LOCALBASE}

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>