updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / htb-tools / PKGBUILD
blob07f6d51d738c3dc323b92a5752aae92c2f2a81e4
1 # Maintainer: kfgz <kfgz at interia dot pl>
2 # Contributor: Catalin Stoian <unixlust[at]unixlust.ath.cx>
4 pkgname=htb-tools
5 pkgver=0.3.0a
6 pkgrel=2
7 pkgdesc="a tool to help simplify the difficult process of bandwidth allocation"
8 arch=('i686' 'x86_64')
9 license=('GPL2')
10 url="http://htb-tools.skydevel.ro/"
11 backup=('etc/htb/eth0-qos.cfg')
12 makedepends=('flex')
13 #source=(http://htb-tools.skydevel.ro/HTB-tools-${pkgver}.tar.gz
14 source=(http://kfgz.mydevil.net/HTB-tools-${pkgver}.tar.gz
15         http://unixlust.googlepages.com/bitops.h)
16 md5sums=('21ab90029ae491b05d5fa45eabaa1a4e'
17          '962daca65477787ec8fd8c805aca0c70')
18          
19 build() {
20   cd "${srcdir}"/HTB-tools-${pkgver}
21   mkdir -p "${srcdir}"/HTB-tools-${pkgver}/include/asm
22   install -m644 "${srcdir}"/bitops.h "${srcdir}"/HTB-tools-${pkgver}/include/asm/bitops.h
23   make
26 package() {
27   cd "${srcdir}"/HTB-tools-${pkgver}
28   install -dm755 "${pkgdir}"/{sbin,/usr/share/{doc/htb,man/man8},etc/{rc.d,htb}}
29   install -m644 cfg/eth0-qos.cfg "${pkgdir}"/etc/htb
30   install -m644 docs/HowTo/HTB-tools-howto.txt "${pkgdir}"/usr/share/doc/htb
31   install -m644 INSTALL "${pkgdir}"/usr/share/doc/htb
32   install -m755 sys/scripts/rc.htb "${pkgdir}"/etc/rc.d/htbd
33   make OUT_DIR="${pkgdir}"/sbin MAN_DIR="${pkgdir}"/usr/share/man install