#!/bin/sh

LPKGDIR="$1"
source "${FTOPDIR}/scripts/common-defines.sh"

mkdir -p "${LPKGDIR}/bin" "${LPKGDIR}/app/config/" "${LPKGDIR}/platspec"

cp -v -f redis.service "${LPKGDIR}/platspec/" && \
	cp -v -f redis.conf "${LPKGDIR}/app/config/" && \
	lnxbf_add_conf_files "${LNX_PREFIX}/app/config/redis.conf"
[ $? -ne 0 ] && exit 1

cp -v -P -f src/{redis-check-aof,redis-check-rdb,redis-sentinel} \
	src/{redis-cli,redis-benchmark,redis-server} "${LPKGDIR}/bin/"
exit $?
