2012-10-07 10:44:21 +02:00
|
|
|
# Created by: Stefan Esser <se@FreeBSD.org>
|
2007-09-04 20:44:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= w3af
|
2010-12-02 11:15:10 +01:00
|
|
|
DISTVERSION= 1.0-rc4
|
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)
2013-10-26 02:52:33 +02:00
|
|
|
PORTREVISION= 3
|
2007-09-04 20:44:41 +02:00
|
|
|
CATEGORIES= security python www
|
2010-03-10 12:35:23 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2010-12-02 11:15:10 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${PORTNAME}%20${DISTVERSION}
|
2007-09-04 20:44:41 +02:00
|
|
|
|
2011-03-18 11:04:54 +01:00
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
2007-09-04 20:44:41 +02:00
|
|
|
COMMENT= Web Application Attack and Audit Framework
|
|
|
|
|
2012-10-07 10:44:21 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
LIB_DEPENDS= tidy:${PORTSDIR}/www/py-utidy
|
2010-12-02 11:15:10 +01:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=2.1:${PORTSDIR}/devel/py-lxml \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:${PORTSDIR}/devel/py-simplejson \
|
2010-03-10 12:35:23 +01:00
|
|
|
${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl \
|
|
|
|
${PYTHON_SITELIBDIR}/SOAPpy:${PORTSDIR}/net/py-soappy \
|
2013-03-04 11:55:23 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
|
2007-09-04 20:44:41 +02:00
|
|
|
${PYTHON_SITELIBDIR}/fpconst.py:${PORTSDIR}/math/py-fpconst \
|
2012-09-14 12:18:11 +02:00
|
|
|
nltk>0:${PORTSDIR}/textproc/nltk \
|
2012-10-07 10:44:21 +02:00
|
|
|
${PYTHON_SITELIBDIR}/numpy/__init__.py:${PORTSDIR}/math/py-numpy \
|
2010-03-10 12:35:23 +01:00
|
|
|
${PYTHON_SITELIBDIR}/pyPdf/pdf.py:${PORTSDIR}/print/py-pdf \
|
|
|
|
${PYTHON_SITELIBDIR}/scapy/main.py:${PORTSDIR}/net/scapy \
|
|
|
|
${PYTHON_SITELIBDIR}/wordnet.py:${PORTSDIR}/textproc/py-wordnet \
|
|
|
|
${PYTHON_SITELIBDIR}/yaml/loader.py:${PORTSDIR}/devel/py-yaml
|
2012-01-21 18:40:15 +01:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2007-09-04 20:44:41 +02:00
|
|
|
|
2010-10-21 09:29:56 +02:00
|
|
|
MAN1PREFIX= ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/plugins/discovery/oHalberd/
|
2012-10-07 10:44:21 +02:00
|
|
|
MAN1= halberd.1
|
2010-10-21 09:29:56 +02:00
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
2007-09-04 20:44:41 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES= gettext
|
2007-09-04 20:44:41 +02:00
|
|
|
USE_BZIP2= yes
|
2013-03-04 11:55:23 +01:00
|
|
|
USE_PYTHON= yes
|
2007-09-04 20:44:41 +02:00
|
|
|
|
2012-10-07 10:44:21 +02:00
|
|
|
OPTIONS_DEFINE= GUI
|
2010-03-10 12:35:23 +01:00
|
|
|
|
2013-09-21 00:55:24 +02:00
|
|
|
NO_STAGE= yes
|
2010-03-10 12:35:23 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-10-07 10:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
2010-03-10 12:35:23 +01:00
|
|
|
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/pygraphviz/graphviz.py:${PORTSDIR}/graphics/py-graphviz \
|
|
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
|
|
|
|
PLIST_SUB+= GUI=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GUI="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-patch:
|
2010-12-02 11:15:10 +01:00
|
|
|
.for f in SOAPpy fpconst-0.7.2 nltk nltk_contrib pyPdf scapy yaml
|
2010-03-10 12:35:23 +01:00
|
|
|
@${RM} -rf ${WRKSRC}/extlib/${f}
|
|
|
|
.endfor
|
2007-09-04 20:44:41 +02:00
|
|
|
@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
|
2007-09-06 15:44:01 +02:00
|
|
|
${XARGS} ${REINPLACE_CMD} -i "" \
|
2007-09-04 20:44:41 +02:00
|
|
|
-E "s!/usr/bin/python2?!${PYTHON_CMD}!"
|
|
|
|
do-build:
|
2010-03-10 15:24:42 +01:00
|
|
|
@${MKDIR} ${WRKDIR}/build
|
2010-03-10 12:35:23 +01:00
|
|
|
@${MKDIR} ${WRKSRC}/build/extlib
|
2010-03-10 17:58:22 +01:00
|
|
|
@${CP} ${WRKSRC}/w3af_console ${WRKDIR}/build/w3af_console.py
|
2012-10-07 10:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
2010-03-10 17:58:22 +01:00
|
|
|
@${CP} ${WRKSRC}/w3af_gui ${WRKDIR}/build/w3af_gui.py
|
2010-03-10 12:35:23 +01:00
|
|
|
.endif
|
|
|
|
.for f in core locales plugins profiles readme scripts tools
|
2010-03-10 17:58:22 +01:00
|
|
|
@${MKDIR} ${WRKDIR}/build/${f}
|
|
|
|
@(cd ${WRKSRC}/${f}/ && ${COPYTREE_SHARE} \* ${WRKDIR}/build/${f})
|
2010-03-10 12:35:23 +01:00
|
|
|
.endfor
|
2010-12-02 11:15:10 +01:00
|
|
|
.for ext in cluster gtkcodebuffer ntlm socksipy xdot
|
2010-03-10 17:58:22 +01:00
|
|
|
@${MKDIR} ${WRKDIR}/build/extlib/${ext}
|
|
|
|
@(cd ${WRKSRC}/extlib/${ext}/ && ${COPYTREE_SHARE} \* ${WRKDIR}/build/extlib/${ext})
|
2007-09-04 20:44:41 +02:00
|
|
|
.endfor
|
2010-03-10 12:35:23 +01:00
|
|
|
@${CP} ${WRKSRC}/extlib/__init__.py ${WRKDIR}/build/extlib/
|
|
|
|
@${PYTHON_CMD} -m compileall ${WRKDIR}/build
|
|
|
|
@${PYTHON_CMD} -O -m compileall ${WRKDIR}/build
|
|
|
|
.for f in w3af_console w3af_gui
|
2010-03-10 17:58:22 +01:00
|
|
|
@${SED} -e 's:%%PATH%%:${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/:' \
|
2007-09-04 20:44:41 +02:00
|
|
|
-e 's:%%PYTHON_CMD%%:${PYTHON_CMD}:' \
|
2010-03-10 12:35:23 +01:00
|
|
|
< ${FILESDIR}/${f}.sh > ${WRKDIR}/${f}.sh
|
|
|
|
.endfor
|
2007-09-04 20:44:41 +02:00
|
|
|
|
|
|
|
do-install:
|
2010-03-10 17:58:22 +01:00
|
|
|
@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/
|
|
|
|
@(cd ${WRKDIR}/build && ${COPYTREE_SHARE} \* ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/)
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/w3af_console.sh ${PREFIX}/bin/w3af_console
|
2012-10-07 10:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
2010-03-10 17:58:22 +01:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/w3af_gui.sh ${PREFIX}/bin/w3af_gui
|
2010-03-10 12:35:23 +01:00
|
|
|
.endif
|
2007-09-04 20:44:41 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|