updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / wifitap / PKGBUILD
blob68634f122e0eb4e296ddc2a40447310584ea0261
1 # Contributor: nofxx <x@nofxx.com>
2 pkgname=wifitap
3 pkgver=0.4.0
4 pkgrel=1
5 pkgdesc="Wifitap is a proof of concept for communication over WiFi networks using traffic injection."
6 arch=('i686' 'x86_64')
7 url="http://sid.rstack.org/index.php/Wifitap_EN"
8 license=('GPL')
9 depends=('python' 'scapy' 'psyco')
10 provides=(wifitap)
11 conflicts=(wifitap)
12 install=
13 source=(http://sid.rstack.org/code/wifitap/$pkgname-$pkgver.tgz)
14 md5sums=('6b5a0ac62b308e48b7cfb9e249b231d9')
16         build() {
17                 cd $startdir/src/$pkgname
18                 install -d $startdir/pkg/usr/bin
19                 for executable in *.py; do
20                         install -Dm755 ${executable} ${startdir}/pkg/usr/share/${pkgname}/${executable} || return 1
21                 done
22                 for doc in AUTHORS COPYING PATCHING TODO prismheaders.patch BUGS Changelog README VERSION; do
23                         install -Dm644 ${doc} ${startdir}/pkg/usr/share/${pkgname}/${doc} || return 1
24                 done
25                 ln -s /usr/share/${pkgname}/${pkgname}.py ${startdir}/pkg/usr/bin/${pkgname}
26                 msg "Wifitap avaiable on '/usr/share/wifitap' and linked on '/usr/bin'"
27                 msg "For PDF/Postcript support, install 'python-pyx' (~50Mb)."
28                 msg "For gnuplot interface support, install 'gnuplot-py' from AUR."
29         }