head	1.18;
access;
symbols
	RELEASE_8_3_0:1.14
	RELEASE_9_0_0:1.13
	RELEASE_7_4_0:1.12
	RELEASE_8_2_0:1.12
	RELEASE_6_EOL:1.11
	RELEASE_8_1_0:1.10
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3;
locks; strict;
comment	@# @;


1.18
date	2013.03.04.18.06.13;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2012.11.17.06.01.22;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2012.10.07.08.44.21;	author sbz;	state Exp;
branches;
next	1.15;

1.15
date	2012.09.14.10.18.11;	author rm;	state Exp;
branches;
next	1.14;

1.14
date	2012.01.21.17.40.14;	author eadler;	state Exp;
branches;
next	1.13;

1.13
date	2011.03.18.10.04.53;	author sbz;	state Exp;
branches;
next	1.12;

1.12
date	2010.12.02.10.15.10;	author jadawin;	state Exp;
branches;
next	1.11;

1.11
date	2010.10.21.07.29.56;	author jadawin;	state Exp;
branches;
next	1.10;

1.10
date	2010.05.31.02.00.54;	author ade;	state Exp;
branches;
next	1.9;

1.9
date	2010.03.10.16.58.22;	author gahr;	state Exp;
branches;
next	1.8;

1.8
date	2010.03.10.14.24.42;	author gahr;	state Exp;
branches;
next	1.7;

1.7
date	2010.03.10.11.35.22;	author gahr;	state Exp;
branches;
next	1.6;

1.6
date	2009.08.22.00.35.08;	author amdmi3;	state Exp;
branches;
next	1.5;

1.5
date	2009.02.27.20.45.20;	author tabthorpe;	state Exp;
branches;
next	1.4;

1.4
date	2008.12.18.02.33.38;	author linimon;	state Exp;
branches;
next	1.3;

1.3
date	2007.09.06.13.44.01;	author se;	state Exp;
branches;
next	1.2;

1.2
date	2007.09.04.18.47.44;	author se;	state Exp;
branches;
next	1.1;

1.1
date	2007.09.04.18.44.40;	author se;	state Exp;
branches;
next	;


desc
@@


1.18
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313402
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Stefan Esser <se@@FreeBSD.org>
# $FreeBSD: head/security/w3af/Makefile 313402 2013-03-04 10:55:23Z lwhsu $

PORTNAME=	w3af
DISTVERSION=	1.0-rc4
PORTREVISION=	2
CATEGORIES=	security python www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}/${PORTNAME}%20${DISTVERSION}

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

LICENSE=	GPLv2

LIB_DEPENDS=	tidy:${PORTSDIR}/www/py-utidy
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>=2.1:${PORTSDIR}/devel/py-lxml \
		${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:${PORTSDIR}/devel/py-simplejson \
		${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl \
		${PYTHON_SITELIBDIR}/SOAPpy:${PORTSDIR}/net/py-soappy \
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
		${PYTHON_SITELIBDIR}/fpconst.py:${PORTSDIR}/math/py-fpconst \
		nltk>0:${PORTSDIR}/textproc/nltk \
		${PYTHON_SITELIBDIR}/numpy/__init__.py:${PORTSDIR}/math/py-numpy \
		${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
RUN_DEPENDS:=	${BUILD_DEPENDS}

MAN1PREFIX=	${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/plugins/discovery/oHalberd/
MAN1=		halberd.1
MANCOMPRESSED=	no

WRKSRC=		${WRKDIR}/${PORTNAME}
USE_GETTEXT=	yes
USE_BZIP2=	yes
USE_PYTHON=	yes

OPTIONS_DEFINE=	GUI

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGUI}
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:
.for f in SOAPpy fpconst-0.7.2 nltk nltk_contrib pyPdf scapy yaml
	@@${RM} -rf ${WRKSRC}/extlib/${f}
.endfor
	@@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
		${XARGS} ${REINPLACE_CMD} -i "" \
			-E "s!/usr/bin/python2?!${PYTHON_CMD}!"
do-build:
	@@${MKDIR} ${WRKDIR}/build
	@@${MKDIR} ${WRKSRC}/build/extlib
	@@${CP} ${WRKSRC}/w3af_console ${WRKDIR}/build/w3af_console.py
.if ${PORT_OPTIONS:MGUI}
	@@${CP} ${WRKSRC}/w3af_gui ${WRKDIR}/build/w3af_gui.py
.endif
.for f in core locales plugins profiles readme scripts tools
	@@${MKDIR} ${WRKDIR}/build/${f}
	@@(cd ${WRKSRC}/${f}/ && ${COPYTREE_SHARE} \* ${WRKDIR}/build/${f})
.endfor
.for ext in cluster gtkcodebuffer ntlm socksipy xdot
	@@${MKDIR} ${WRKDIR}/build/extlib/${ext}
	@@(cd ${WRKSRC}/extlib/${ext}/ && ${COPYTREE_SHARE} \* ${WRKDIR}/build/extlib/${ext})
.endfor
	@@${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
	@@${SED} -e 's:%%PATH%%:${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/:' \
		-e 's:%%PYTHON_CMD%%:${PYTHON_CMD}:' \
		< ${FILESDIR}/${f}.sh > ${WRKDIR}/${f}.sh
.endfor

do-install:
	@@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/
	@@(cd ${WRKDIR}/build && ${COPYTREE_SHARE} \* ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/)
	@@${INSTALL_SCRIPT} ${WRKDIR}/w3af_console.sh ${PREFIX}/bin/w3af_console
.if ${PORT_OPTIONS:MGUI}
	@@${INSTALL_SCRIPT} ${WRKDIR}/w3af_gui.sh ${PREFIX}/bin/w3af_gui
.endif

.include <bsd.port.mk>
@


1.17
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/security/w3af/Makefile 305443 2012-10-07 08:44:21Z sbz $
d21 1
a21 1
		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
d38 1
a38 1
USE_PYTHON=	2.5+
@


1.16
log
@SVN rev 305443 on 2012-10-07 08:44:21Z by sbz

- Convert to new options framework
- Add LICENSE
- Add math/py-numpy build depends
- Bump PORTREVISION
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.15
log
@SVN rev 304266 on 2012-09-14 10:18:11Z by rm

- chase textproc/nltk update (upstream switched to setuptools)

Reported by:    beat
Approved by:	portmgr (beat)
@
text
@d1 1
a1 4
# New ports collection makefile for:	w3af
# Date created:				Wed Aug 29 21:44:33 CEST 2007
# Whom:					Stefan Esser <se@@FreeBSD.org>
#
a2 1
#
d6 1
a6 1
PORTREVISION=	1
a9 1
DISTNAME=	${PORTNAME}-${DISTVERSION}
d14 3
a16 1
LIB_DEPENDS=	tidy-0.99.0:${PORTSDIR}/www/py-utidy
d24 1
d32 1
a32 1
MAN1=	halberd.1
d40 1
a40 1
OPTIONS=	GUI "Support for graphical user interface" off
d44 1
a44 1
.if defined(WITH_GUI)
d63 1
a63 1
.if defined(WITH_GUI)
d87 1
a87 1
.if defined(WITH_GUI)
@


1.14
log
@At the moment 1385 ports use BUILD_DEPENDS= ${RUN_DEPENDS} and 450
ports use BUILD_DEPENDS:= ${RUN_DEPENDS}. This patch fixes ports that are
currently broken. This is a temporary measure until we organically stop using
:= or someone(s) spend a lot of time changing all the ports over.

Explicit duplication > := > = and this just moves ports one step to the left

Approved by:	portmgr
@
text
@d10 1
d26 1
a26 1
		${PYTHON_SITELIBDIR}/nltk/util.py:${PORTSDIR}/textproc/nltk \
@


1.13
log
@Update my MAINTAINER address to sbz at FreeBSD.org.

Approved by:	jadawin@@ (mentor)
@
text
@d30 1
a30 1
RUN_DEPENDS=	${BUILD_DEPENDS}
@


1.12
log
@- Update to 1.0-rc4

PR:		ports/152417
Submitted by:	Sofian Brabez <sbrabez AT gmail.com>
@
text
@d15 1
a15 1
MAINTAINER=	sbrabez@@gmail.com
@


1.11
log
@- Update to 1.0-rc3

PR:		ports/151440
Submitted by:	Sofian Brabez <sbrabez _AT_ gmail.com>
@
text
@d9 1
a9 1
DISTVERSION=	1.0-rc3
d12 1
a12 1
MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}/${PORTNAME}%20${DISTVERSION}%20%5bmoyogui%5d
d19 2
a20 1
BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/BeautifulSoup.py:${PORTSDIR}/www/py-beautifulsoup \
a24 1
		${PYTHON_SITELIBDIR}/json.py:${PORTSDIR}/devel/py-json-py \
d54 1
a54 1
.for f in SOAPpy fpconst-0.7.2 jsonpy nltk nltk_contrib pyPdf scapy yaml
a56 2
	@@${MV} ${WRKSRC}/extlib/pygoogle/build/lib/* ${WRKSRC}/extlib/pygoogle/
	@@${RM} -rf ${WRKSRC}/extlib/pygoogle/build
d71 1
a71 1
.for ext in cluster gtkcodebuffer ntlm pygoogle socksipy xdot
@


1.10
log
@Bounce PORTREVISION for gettext-related ports.  Have fun, ya'll.
@
text
@d9 1
a9 2
DISTVERSION=	1.0-rc2
PORTREVISION=	1
d12 2
a13 2
MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}/${PORTNAME}%20${DISTVERSION}%20%5bshorty%5d
DISTNAME=	${PORTNAME}_${DISTVERSION}
d32 4
d57 2
a61 1

d73 1
a73 1
.for ext in cluster pygoogle socksipy xdot
@


1.9
log
@- Respect PREFIX, hopefully fixing the previous commit.

Reported by:	QAT
@
text
@d10 1
@


1.8
log
@- Fix previous commit (missing ${MKDIR})
@
text
@d60 1
a60 1
	@@${CP} -R ${WRKSRC}/w3af_console ${WRKDIR}/build/w3af_console.py
d62 1
a62 1
	@@${CP} -R ${WRKSRC}/w3af_gui ${WRKDIR}/build/w3af_gui.py
d65 2
a66 1
	@@${CP} -R ${WRKSRC}/${f} ${WRKDIR}/build/
d69 2
a70 1
	@@${CP} -R ${WRKSRC}/extlib/${ext} ${WRKDIR}/build/extlib/
d76 1
a76 1
	@@${SED} -e 's:%%PATH%%:${PYTHON_SITELIBDIR}/${PORTNAME}/:' \
d82 3
a84 3
	@@${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}/
	@@${CP} -R ${WRKDIR}/build/* ${PYTHON_SITELIBDIR}/${PORTNAME}/
	@@${INSTALL_SCRIPT} ${WRKDIR}/w3af_console.sh ${LOCALBASE}/bin/w3af_console
d86 1
a86 1
	@@${INSTALL_SCRIPT} ${WRKDIR}/w3af_gui.sh ${LOCALBASE}/bin/w3af_gui
@


1.7
log
@- Update to 1.0-rc2

PR:		144396
Submitted by:	Niels Heinen <niels@@heinen.ws>
Reviewed by:	Sofian Brabez <sbrabez@@gmail.com> (maintainer)
Approved by:	jadawin (wants his PRs, can't commit right now)
@
text
@d58 1
@


1.6
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d9 1
a9 1
PORTVERSION=	0.1.20070610
d11 3
a13 2
MASTER_SITES=	SF/${PORTNAME}/OldFiles
DISTNAME=	${PORTNAME}-10Jun2007
d18 5
a22 2
LIB_DEPENDS=	tidy-0.99.0:$(PORTSDIR)/www/py-utidy
BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/SOAPpy:${PORTSDIR}/net/py-soappy \
d24 6
a29 2
		${PYTHON_SITELIBDIR}/wordnet.py:${PORTSDIR}/textproc/py-wordnet
#		${PYTHON_SITELIBDIR}/google.py:${PORTSDIR}/net/py-google \
d33 1
d37 16
a52 1
post-patch:
d58 7
a64 4
	${MKDIR} ${WRKDIR}/build
	${CP} -R ${WRKSRC}/w3af ${WRKDIR}/build/w3af.py
.for f in core plugins scripts tools webroot
	${CP} -R ${WRKSRC}/${f} ${WRKDIR}/build/
d66 8
a73 10
# The next 5 lines are temporary, until dependency on py-google port works
	${MKDIR} ${WRKDIR}/build/extlib
	${RM} -rf ${WRKSRC}/extlib/pygoogle/build
	${RM} -rf ${WRKSRC}/extlib/pygoogle/doc
	${CP} -R ${WRKSRC}/extlib/pygoogle ${WRKDIR}/build/extlib
	${CP} ${WRKSRC}/extlib/__init__.py ${WRKDIR}/build/extlib
# ----
	${PYTHON_CMD} -m compileall ${WRKDIR}/build
	${PYTHON_CMD} -O -m compileall ${WRKDIR}/build
	${SED} -e 's:%%PATH%%:${PYTHON_SITELIBDIR}/${PORTNAME}/:' \
d75 2
a76 1
		< ${FILESDIR}/w3af.sh > ${WRKDIR}/w3af.sh
d79 6
a84 3
	${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}/
	${CP} -R ${WRKDIR}/build/* ${PYTHON_SITELIBDIR}/${PORTNAME}/
	${INSTALL_SCRIPT} ${WRKDIR}/w3af.sh ${LOCALBASE}/bin/w3af
@


1.5
log
@- Pass maintainership to submitter

Submitted by:	Sofian Brabez via private email
@
text
@d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=w3af
@


1.4
log
@Reset se@@FreeBSD.org due to maintainer-timeouts and no response to email.

Hat:	portmgr
@
text
@d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
@


1.3
log
@Fix build on -stable. Pointed out by Pointyhat via Pav. (Thanks!)
@
text
@d15 1
a15 1
MAINTAINER=	se@@FreeBSD.org
@


1.2
log
@Remove spurious backslash.
@
text
@d31 1
a31 1
		${XARGS} ${REINPLACE_CMD} -I "" \
@


1.1
log
@New port of w3af, the Web Application Audit and Attack Framework.
This is a Python based package of tools that can be used to assess
the security of a web server (including automated advanced tests,
e.g. for XSS or SQL injection vulnerabilities).

I did not get this port to work with the py-google port, there for
a local copy of pygoogle is included and packaged with this port.
@
text
@d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
@

