aboutsummaryrefslogtreecommitdiff
path: root/security/py-plaso/Makefile
blob: 4ac046af70e0c7fb1601fdfb90087d5d2f38512e (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
60
61
62
63
64
65
66
67
68
69
# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$

PORTNAME=	plaso
PORTVERSION=	20170930
PORTREVISION=	1
CATEGORIES=	security python
MASTER_SITES=	https://github.com/log2timeline/plaso/releases/download/${PORTVERSION}/ \
		LOCAL/antoine
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	antoine@FreeBSD.org
COMMENT=	Automatic creation of a super timeline

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	hachoir-core>=0:devel/hachoir-core \
		hachoir-metadata>=0:sysutils/hachoir-metadata \
		hachoir-parser>=0:devel/hachoir-parser \
		libesedb>=e:devel/libesedb \
		libevt>=a:devel/libevt \
		libevtx>=a:devel/libevtx \
		libfwsi>=e:devel/libfwsi \
		liblnk>=0:devel/liblnk \
		libmsiecf>=a:devel/libmsiecf \
		libolecf>=a:devel/libolecf \
		libregf>=a:devel/libregf \
		libscca>=a:devel/libscca \
		${PYTHON_PKGNAMEPREFIX}artifacts>=0:security/py-artifacts \
		${PYTHON_PKGNAMEPREFIX}bencode.py>=0:converters/py-bencode.py \
		${PYTHON_PKGNAMEPREFIX}binplist>=0:devel/py-binplist \
		${PYTHON_PKGNAMEPREFIX}construct>=0:devel/py-construct \
		${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil \
		${PYTHON_PKGNAMEPREFIX}dfdatetime>=0:security/py-dfdatetime \
		${PYTHON_PKGNAMEPREFIX}dfvfs>=0:security/py-dfvfs \
		${PYTHON_PKGNAMEPREFIX}dfwinreg>=0:security/py-dfwinreg \
		${PYTHON_PKGNAMEPREFIX}dpkt>=0:net/py-dpkt \
		${PYTHON_PKGNAMEPREFIX}efilter>=0:devel/py-efilter \
		${PYTHON_PKGNAMEPREFIX}pefile>=0:devel/py-pefile \
		${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil \
		${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing \
		${PYTHON_PKGNAMEPREFIX}pytsk>=0:sysutils/py-pytsk \
		${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz \
		${PYTHON_PKGNAMEPREFIX}pyzmq>=0:net/py-pyzmq \
		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests \
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3 \
		${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0:textproc/py-xlsxwriter \
		${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml \
		${PYTHON_PKGNAMEPREFIX}yara>=0:security/py-yara
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock

NO_ARCH=	yes
USES=		python:2.7
USE_LOCALE=	en_US.UTF-8
USE_PYTHON=	distutils autoplist
TEST_ENV=	${MAKE_ENV} PYTHONHTTPSVERIFY=0

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 3300
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pyliblzma>=0:archivers/py-pyliblzma
.endif

do-test:
	@${TOUCH} ${TEST_WRKSRC}/utils/__init__.py
	@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} run_tests.py)

.include <bsd.port.post.mk>