# Description: An open source, advanced key-value store
# URL: https://redis.io
# Maintainer: Tim Biermann, tbier at posteo dot de

name=redis
version=7.0.11
release=1
source=(https://download.redis.io/releases/$name-$version.tar.gz redis.conf
  redis.rc)

build() {
  cd $name-$version/src

  make
  make PREFIX=$PKG/usr/ install

  install -D -m 755 $SRC/redis.rc $PKG/etc/rc.d/redis
  install -D -m 644 -o redis $SRC/redis.conf $PKG/etc/redis.conf
  install -d -m 755 -o redis $PKG/var/lib/redis

  install -d -m 755 $PKG/var/log
  install -m 640 -o redis -g redis /dev/null $PKG/var/log/redis.log
}
