bb1dae2da8
Add a redis system user and set the home directory to /var/lib/redis Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
32 lines
879 B
Makefile
32 lines
879 B
Makefile
################################################################################
|
|
#
|
|
# redis
|
|
#
|
|
################################################################################
|
|
|
|
REDIS_VERSION = 3.0.3
|
|
REDIS_SITE = http://download.redis.io/releases
|
|
REDIS_LICENSE = BSD-3c (core); MIT and BSD family licenses (Bundled components)
|
|
REDIS_LICENSE_FILES = COPYING
|
|
|
|
define REDIS_USERS
|
|
redis -1 redis -1 * /var/lib/redis /bin/false - Redis Server
|
|
endef
|
|
|
|
# Redis doesn't support DESTDIR (yet, see
|
|
# https://github.com/antirez/redis/pull/609). We set PREFIX
|
|
# instead.
|
|
REDIS_BUILDOPTS = $(TARGET_CONFIGURE_OPTS) \
|
|
PREFIX=$(TARGET_DIR)/usr MALLOC=libc \
|
|
|
|
define REDIS_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(REDIS_BUILDOPTS) -C $(@D)
|
|
endef
|
|
|
|
define REDIS_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(REDIS_BUILDOPTS) -C $(@D) \
|
|
LDCONFIG=true install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|