updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / niceshaper / PKGBUILD
blob7a3a89d45e9f09c616fc35f902341e891c7d795c
1 # Contributor: xnitropl <xnitropl at gmail dot com>
2 pkgname=niceshaper
3 pkgver=0.6rc8
4 pkgrel=1
5 pkgdesc="A tool for bandwidth allocation. Allows dynamic traffic shaping, which is more effective than traditional, static HTB shaping."
6 url="http://niceshaper.jedwabny.net"
7 arch=('i686' 'x86_64')
8 license=('GPLv2')
9 depends=('iptables')
10 makedepends=('gcc')
11 source=(http://niceshaper.jedwabny.net/files/$pkgname$pkgver.tar.bz2)
12 md5sums=('32aab12fe08aa77c4244c9c3db1c082b')
14 build() {
15   cd $srcdir
16   make || return 1
18   mkdir -p $pkgdir/usr/bin
19   install -m755 niceshaper $pkgdir/usr/bin
21   mkdir -p $pkgdir/etc/niceshaper0.6
22   install -m644 etc/niceshaper0.6/class.ns $pkgdir/etc/niceshaper0.6/sample-class.ns
23   install -m644 etc/niceshaper0.6/config.ns $pkgdir/etc/niceshaper0.6/sample-config.ns
25   mkdir -p $pkgdir/usr/share/doc
26   cp -r docs $pkgdir/usr/share/doc/$pkgname
27   cp COPYING $pkgdir/usr/share/doc/$pkgname
29 # vim:set ts=2 sw=2 et: