Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

PKGBUILD-aircrack-patched-airtun-ng-wpa

By: a guest on Jan 18th, 2011  |  syntax: None  |  size: 1.33 KB  |  hits: 547  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # contributor: nofxx <x@nofxx.com>
  2. # modifier: x-demon <x-demon{at}x-demon.org
  3. pkgname=aircrack-ng-unstable-svn
  4. pkgver=1844
  5. pkgrel=1
  6. pkgdesc="Wifi security suite - WEP / WPA crack tools -- with SQLite3 and unstable (read experimental) tools"
  7. arch=('i686' 'x86_64')
  8. url="http://www.aircrack-ng.org"
  9. license=('GPL2')
  10. depends=('openssl' 'sqlite3' 'wireless_tools' 'autoconf' 'libtool')
  11. makedepends=('subversion')
  12. provides=('aircrack-ng' 'aircrack-ng-svn')
  13. #replaces=('aircrack-ng-svn')
  14. conflicts=('aircrack-ng')
  15. source=()
  16. md5sums=()
  17.  
  18. _svntrunk="http://trac.aircrack-ng.org/svn/trunk"
  19. _svnmod=aircrack
  20.  
  21. build() {
  22.   cd $startdir/src
  23.   msg "Connecting to SVN server...."
  24.   if [ -d $_svnmod/.svn ]; then
  25.     (cd $_svnmod && svn up -r $pkgver)
  26.   else
  27.     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  28.   fi
  29.  
  30.   msg "SVN checkout done or server timeout"
  31.   msg "Starting make..."
  32.   svn export $_svnmod $_svnmod-build
  33.   cd $_svnmod-build
  34.   #
  35.   # BUILD
  36.   #
  37.   cd src
  38.   wget http://trac.aircrack-ng.org/raw-attachment/ticket/667/ticket-667.patch
  39.   wget http://trac.aircrack-ng.org/raw-attachment/ticket/74/airtun-ng-wpa.patch
  40.   patch -p0 < ticket-667.patch
  41.   patch -p0 < airtun-ng-wpa.patch
  42.   cd ..
  43.   make SQLITE=true UNSTABLE=true || return 1
  44.   make prefix=/usr SQLITE=true UNSTABLE=true DESTDIR=$startdir/pkg/ install
  45. }