updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / armitage-svn / PKGBUILD
blob575e909546e375d989364cbbee7d3d4b6f204701
1 # Maintainer: MatToufoutu <mattoufootu[at]gmail.com>
3 pkgname=armitage-svn
4 pkgver=137
5 pkgrel=4
6 pkgdesc="A graphical cyber attack management tool for Metasploit"
7 url="http://www.fastandeasyhacking.com/"
8 arch=('any')
9 license=('GPL')
10 depends=('metasploit' 'subversion')
11 makedepends=('apache-ant' 'zip' 'unzip' 'java-environment')
12 provides=('armitage')
13 install=('armitage.install')
15 source=('armitage.install')
16 md5sums=('5234326f9ff41ff8694cb35a557af895')
18 _svntrunk=http://armitage.googlecode.com/svn/trunk/
19 _svnmod=armitage
21 build() {
22     cd ${srcdir}
23     if [ -d ${_svnmod}/.svn ]; then
24         svn up ${_svnmod}
25     else
26         svn co ${_svntrunk} ${_svnmod}
27     fi
28     cd ${_svnmod}
29     sed -i 's|ant|/usr/share/java/apache-ant/bin/ant|g' package.sh
30     bash package.sh || return 1
31     echo "#!/bin/bash" > ${_svnmod}.sh
32     echo "java -jar /opt/${_svnmod}/${_svnmod}.jar" >> ${_svnmod}.sh
35 package() {
36     mkdir -p ${pkgdir}/{opt/${_svnmod},usr/bin}
37     tar -C ${pkgdir}/opt/ -xzf ${srcdir}/${_svnmod}/${_svnmod}.tgz
38     install -m755 ${srcdir}/${_svnmod}/${_svnmod}.sh ${pkgdir}/usr/bin/${_svnmod}