updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / speedpwn-git / PKGBUILD
blobbcef60bb26dd840d2edfad944a8b5cb8525faf11
1 # Maintainer: Max Roder <maxroder@web.de>
3 pkgname='speedpwn-git'
4 pkgver=20120103
5 pkgrel=2
6 pkgdesc='Active WPA/2 Bruteforcer, original created to prove weak standard key generation in different ISP labeled routers'
7 arch=('i686' 'x86_64')
8 url="http://gitorious.org/${pkgname}"
9 license=('GPL')
10 depends=('openssl')
11 conflicts=('speedpwn')
12 source=('http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz')
13 sha256sums=('b136b549b7d2a2751c21793100075ea43b28de9af4c1969508bb95bcc92224ad')
14 _gitroot='git://gitorious.org/speedpwn/speedpwn.git'
15 _gitname='speedpwn'
17 build() {
18         cd ${srcdir}
19         msg "Connecting to GIT server...."
20         if [ -d ${_gitname} ] ; then
21                 cd ${_gitname} && git pull origin
22                 msg "The local files are updated."
23         else
24                 git clone --depth=1 ${_gitroot} ${_gitname}
25         fi
26         msg "GIT checkout done or server timeout"
28         # Prepare...
29         cd ${srcdir}/aircrack-ng-1.1/src/
30         cp ../../speedpwn/* .
31         cd osdep
32         make
34         # Make
35         cd ${srcdir}/aircrack-ng-1.1/src/
36         gcc -lssl -lcrypto -o speedpwn speedpwn.c common.c osdep/libosdep.a crypto_branch.c
39 package() {
40         cd ${srcdir}
41         install -Dm 755 aircrack-ng-1.1/src/speedpwn ${pkgdir}/usr/bin/speedpwn
42         install -Dm 755 speedpwn/speedport-arcadyan.pl ${pkgdir}/usr/bin/speedport-arcadyan.pl
43         install -Dm 644 speedpwn/README ${pkgdir}/usr/share/doc/speedpwn/README
46 # vim:set ts=2 sw=2 et: