1 # Contributor: jiribb <jiribb@gmail.com>
8 pkgdesc="HTTP/1.1 compliant caching and filtering proxy written in Java"
10 url="http://www.khelekore.org/rabbit/"
11 license=('custom:AS-IS' 'custom:BSD')
18 backup=('etc/rabbit/rabbit.conf')
20 install=rabbit.install
21 source=(http://www.khelekore.org/rabbit//$_pkgname$_pkgver-bin.tar.gz rabbit rabbit.install rc-rabbit)
23 md5sums=('8fac6f9855a1619b94e59228d882e206'
24 '9a2c3a7048a6091792159ef179a08924'
25 '590ee66a3ca50eabab8baa2a98602dad'
26 '51ec5f8f310990d80d7640407bfdcaf9')
32 mkdir -p $pkgdir/etc/rabbit
33 mkdir -p $pkgdir/var/{cache/rabbit,lib/rabbit,log/rabbit}
34 mkdir -p $pkgdir/usr/share/licenses/$pkgname
37 install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
40 install -D -m644 jars/rabbit3.jar $pkgdir/var/lib/$pkgname/jars/rabbit3.jar
43 cp -R htdocs external_libs $pkgdir/var/lib/$pkgname/
44 cp -R conf/* $pkgdir/etc/rabbit/
45 sed -i 's/directory=\/tmp\/rcache/directory=\/var\/cache\/rabbit/' $pkgdir/etc/rabbit/rabbit.conf
46 sed -i 's/=logs/=\/var\/log\/rabbit/g' $pkgdir/etc/rabbit/rabbit.conf
47 sed -i 's/=conf/=\/etc\/rabbit/g' $pkgdir/etc/rabbit/rabbit.conf
50 install -D -m755 $srcdir/rc-rabbit $pkgdir/etc/rc.d/rabbit
52 # install arguments file
53 install -D -m644 $srcdir/rabbit $pkgdir/etc/conf.d/rabbit
56 chmod 770 $pkgdir/etc/rabbit
57 chmod 770 $pkgdir/var/{cache/rabbit,log/rabbit}
60 # vim:set ts=2 sw=2 et: