updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / rabbit / PKGBUILD
blob61bf7dabc120226d06493ccf2c838477ec5fee1c
1 # Contributor: jiribb <jiribb@gmail.com>
3 pkgname=rabbit
4 _pkgname=RabbIT
5 pkgver=3.16pre2
6 _pkgver=3.16-pre2
7 pkgrel=3
8 pkgdesc="HTTP/1.1 compliant caching and filtering proxy written in Java"
9 arch=('i686')
10 url="http://www.khelekore.org/rabbit/"
11 license=('custom:AS-IS' 'custom:BSD')
12 groups=()
13 depends=('jre')
14 makedepends=()
15 provides=()
16 conflicts=()
17 replaces=()
18 backup=('etc/rabbit/rabbit.conf')
19 options=()
20 install=rabbit.install
21 source=(http://www.khelekore.org/rabbit//$_pkgname$_pkgver-bin.tar.gz rabbit rabbit.install rc-rabbit)
22 noextract=()
23 md5sums=('8fac6f9855a1619b94e59228d882e206'
24          '9a2c3a7048a6091792159ef179a08924'
25          '590ee66a3ca50eabab8baa2a98602dad'
26          '51ec5f8f310990d80d7640407bfdcaf9')
28 build() {
29   cd "$srcdir/RabbIT3"
31 # prepare directories
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
36 # install license
37   install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
39 # install jar
40   install -D -m644 jars/rabbit3.jar $pkgdir/var/lib/$pkgname/jars/rabbit3.jar
42 # install files
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
49 # install rc script
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
55 # chmod
56   chmod 770 $pkgdir/etc/rabbit
57   chmod 770 $pkgdir/var/{cache/rabbit,log/rabbit}
60 # vim:set ts=2 sw=2 et: