updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / mod_bwshare / PKGBUILD
blob6d30f74d34898a56d8116f6e530224dc452e0eb9
1 #Contributor: Sven Kauber <celeon@gmail.com>
3 pkgname=mod_bwshare
4 pkgver=0.2.1
5 pkgrel=5
6 pkgdesc="An Apache module that throttles HTTP requests for each client IP address independently"
7 arch=('i686')
8 url="http://www.topology.org/src/bwshare/README.html"
9 depends=('apache' 'glibc')
10 install=($pkgname.install)
11 source=('ftp://ftp.uni-duisburg.de/Infosys/servers/Apache/modules/mod_bwshare-0.2.1.zip' 'mod_bwshare.install')
12 # official mirror introduced a humanity test, reverting to a public source
13 # source=(http://www.topology.org/src/bwshare/$pkgname-$pkgver.zip)
14 license=('custom')
15 md5sums=('9f82d3a9649ac9cfbbba0255a210d1d3' '9eb02ff2fbc794416dc50fceaec7d777')
17 build(){
18 cd $srcdir/$pkgname-$pkgver
20 # building the module
21 apxs -c -o mod_bwshare.so mod_bwshare.c
23 install -D -m755 .libs/mod_bwshare.so $pkgdir/usr/lib/httpd/modules/mod_bwshare.so
24 install -D -m644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE