summaryrefslogtreecommitdiff
path: root/security/w3af/Makefile
blob: b2a6732737cf481461713fb989fb5ef7403118e6 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Created by: Stefan Esser <se@FreeBSD.org>
# $FreeBSD$

PORTNAME=	w3af
PORTVERSION=	1.6.49
PORTREVISION=	7
CATEGORIES=	security python www

MAINTAINER=	dbaio@FreeBSD.org
COMMENT=	Web Application Attack and Audit Framework

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/doc/GPL

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>=2.1:devel/py-lxml@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:devel/py-simplejson@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}openssl>=0:security/py-openssl@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}soappy>=0:net/py-soappy@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}fpconst>0:math/py-fpconst@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}nltk>0:textproc/py-nltk@${PY_FLAVOR} \
		${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}pdf>0:print/py-pdf@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}scapy>0:net/scapy@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}wordnet>0:textproc/py-wordnet@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pyClamd>=0.2.2:security/py-pyclamd@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pygithub>=1.21:devel/py-pygithub@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}GitPython>=0.3.2:devel/py-gitpython@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pybloomfiltermmap>=0.3.11:devel/py-pybloomfiltermmap@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}esmre>=0.3.1:textproc/py-esmre@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}phply>=0.9.1:devel/py-phply@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}stopit>=1.1.0:devel/py-stopit@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}chardet>=2.1.1:textproc/py-chardet@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}tblib>=0.2.0:devel/py-tblib@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pdfminer>=20140328:textproc/py-pdfminer@${PY_FLAVOR} \
		${PY_FUTURES} \
		${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>=0.3.3:net/py-ndg_httpsclient@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pyasn1>=0.1.3:devel/py-pyasn1@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}lxml>=0.3.2:devel/py-lxml@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}guess-language>=0.2:textproc/py-guess-language@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}cluster>=1.1.1b3:devel/py-cluster@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}msgpack>=0.4.4:devel/py-msgpack@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}python-ntlm>=1.0.1:net/py-python-ntlm@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}halberd>=0.2.4:security/py-halberd@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}darts.util.lru>=0.5:devel/py-darts.util.lru@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}Jinja2>=2.7.3:devel/py-Jinja2@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}vulndb>=0.0.17:security/py-vulndb@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}markdown>=2.6.1:textproc/py-markdown@${PY_FLAVOR}

USES=		gettext python:2.7 shebangfix

USE_GITHUB=	yes
GH_ACCOUNT=	andresriancho

USE_PYTHON=	flavors
SHEBANG_FILES=	tools/* w3af_console w3af_gui
NO_BUILD=	yes

OPTIONS_DEFINE=	DOCS
OPTIONS_SUB=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|msgpack-python|msgpack|' ${WRKSRC}/w3af/core/controllers/dependency_check/requirements.py

do-install:
	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
	@(cd ${WRKSRC}/w3af && ${COPYTREE_SHARE} \* \
		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME})
	${INSTALL_SCRIPT} ${WRKSRC}/w3af_console \
		${STAGEDIR}${PREFIX}/bin/w3af_console
	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
.for f in base64decode base64encode gencc md5hash sha1hash urldecode urlencode
	 ${INSTALL_SCRIPT} ${WRKSRC}/tools/${f} \
		${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/${f}
.endfor
.for f in extras profiles scripts
	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/${f}
	@(cd ${WRKSRC}/${f}/ && ${COPYTREE_SHARE} \* \
		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/${f})
.endfor

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for d in CHANGELOG CONTRIBUTORS INSTALL README TODO
	${INSTALL_DATA} ${WRKSRC}/doc/${d} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>