updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / pyloris / PKGBUILD
blobb968a4c663b3ce3aaf60b5030c1d34de5ee395ed
1 # Contributor: Changaco <changaco ατ changaco δοτ net>
3 pkgname=pyloris
4 pkgver=3.2
5 pkgrel=3
6 pkgdesc="A scriptable tool for testing a server's vulnerability to connection exhaustion denial of service (DoS) attacks"
7 arch=('any')
8 url="http://motomastyle.com/pyloris"
9 license=('BSD')
10 depends=('python2' 'tk')
11 source=("http://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver.tgz")
12 md5sums=('7cd0fcaaca1a68f7be9ebe45a3ebf7b7')
14 build() { 
15         cd $srcdir/$pkgname-$pkgver
16         mkdir -p $pkgdir/usr/share/$pkgname $pkgdir/usr/share/licenses/$pkgname $pkgdir/usr/share/doc/$pkgname $pkgdir/usr/bin
17         install -t $pkgdir/usr/share/doc/$pkgname doc/*
18         install -t $pkgdir/usr/share/licenses/$pkgname license/*
19         rm -rf doc license
20         install -t $pkgdir/usr/share/$pkgname *
21         ln -s /usr/share/$pkgname/$pkgname.py $pkgdir/usr/bin/$pkgname
22         sed -i 's|^#! */usr/bin/env python|#!/usr/bin/env python2|' $pkgdir/usr/share/$pkgname/*.py