updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / w3af-svn / PKGBUILD
blob0c61425d881810d36443fb093cd6fd6126b16d14
1 # Contributor: MatToufoutu <mattoufootu[at]gmail.com>
3 pkgname=w3af-svn
4 pkgver=4334
5 pkgrel=1
6 pkgdesc="Web Application Attack and Audit Framework"
7 url="http://w3af.sourceforge.net/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('python2' 'python-fpconst' 'python2-nltk' 'python-soappy' 'python-pypdf' 'beautiful-soup' 'python2-pyopenssl' 'scapy' 'pysvn-py2' 'python-lxml')
11 makedepends=('subversion')
12 optdepends=(
13         'python-pysqlite: Needed to run the GTK User Interface'
14         'graphviz: Needed to run the GTK User Interface'
15         'pygtk: Needed to run the GTK User Interface'
16         'gtk2: Needed to run the GTK User Interface'
17         'pygtksourceview2: Needed to run the GTK User Interface'
18             )
19 provides=('w3af')
20 options=('!strip')
22 source=('w3af_console.sh'
23         'w3af_gui.sh')
24 md5sums=('6799fbdf3ffe36c117d323225c77d630'
25          'e8dcfffd8f4d6e0242f2ec9170fd55e3')
27 _svntrunk=https://w3af.svn.sourceforge.net/svnroot/w3af/trunk
28 _svnmod=w3af
30 build() {
31     if [ -d $srcdir/.svn ]; then
32         msg2 'Getting latest SVN revision...'
33         svn up $srcdir || (msg 'SVN update failed'; return 1)
34         msg2 'SVN update successful'
35     else
36         msg2 'Checking out SVN...'
37         svn co $_svntrunk $srcdir || (msg 'SVN checkout failed'; return 1)
38         msg2 'SVN checkout successful'
39     fi
42 package() {
43     mkdir -p ${pkgdir}/{usr/bin,/opt/w3af}
44     cp -r ${srcdir}/* ${pkgdir}/opt/w3af/
45     install -m755 ${srcdir}/w3af_console.sh ${pkgdir}/usr/bin/w3af_console
46     install -m755 ${srcdir}/w3af_gui.sh ${pkgdir}/usr/bin/w3af_gui
49 # vim: set ts=4 sw=4 ft=PKGBUILD :