1 # Maintainer: Hilton Medeiros <medeiros.hilton at gmail dot com>
2 # Contributor: David Trail <napalm10 at gmail>
3 # Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
8 pkgdesc="An open source, advanced key-value keystore"
10 url="http://redis.io/"
16 backup=('etc/redis.conf' 'etc/logrotate.d/redis')
19 md5sums=('65a2c0a78168fbdb439ecc1911ab1c29'
20 '9e2d75b7a9dc421122d673fe520ef17f')
22 _gitroot="git://github.com/antirez/redis.git"
27 msg "Connecting to Git server...."
29 if [ -d $_gitname ]; then
30 pushd $_gitname && git pull origin && popd
31 msg "The local files are updated"
36 msg "Git checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf $_gitname-build
40 git clone $_gitname $_gitname-build
45 # Needs `tcl` from [extra]
50 cd "$srcdir/$_gitname-build"
52 make PREFIX="$pkgdir/usr" install
54 sed -i -e 's|daemonize no|daemonize yes|' \
55 -e "s|dir \./|dir /var/lib/$_gitname|" \
56 -e "s|logfile stdout|logfile /var/log/$_gitname.log|" \
58 install -Dm644 $_gitname.conf "$pkgdir/etc/$_gitname.conf"
60 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_gitname/COPYING"
62 install -Dm755 "$srcdir/$_gitname.d" "$pkgdir/etc/rc.d/$_gitname"
63 install -Dm644 "$srcdir/$_gitname.logrotate" "$pkgdir/etc/logrotate.d/$_gitname"