bbc042b91e
Release notes: https://www.reddit.com/r/redis/comments/5r8wxn/redis_327_is_out_important_security_fixes_inside/ From the notes: Upgrade urgency HIGH. This release fixes important security and correctness issues. It is especially important to upgrade for Redis Cluster users and for users running Redis in their laptop since a cross-scripting attack is fixed in this release. [Peter: extend description] Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# redis
|
|
#
|
|
################################################################################
|
|
|
|
REDIS_VERSION = 3.2.7
|
|
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
|
|
|
|
# Uses __atomic_fetch_add_4
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
REDIS_LIBATOMIC = -latomic
|
|
endif
|
|
|
|
# Redis doesn't support DESTDIR (yet, see
|
|
# https://github.com/antirez/redis/pull/609). We set PREFIX
|
|
# instead.
|
|
REDIS_BUILDOPTS = $(TARGET_CONFIGURE_OPTS) \
|
|
LDFLAGS="$(TARGET_LDFLAGS) $(REDIS_LIBATOMIC)" \
|
|
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
|
|
$(INSTALL) -D -m 0644 $(@D)/redis.conf \
|
|
$(TARGET_DIR)/etc/redis.conf
|
|
endef
|
|
|
|
define REDIS_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 -D package/redis/S50redis \
|
|
$(TARGET_DIR)/etc/init.d/S50redis
|
|
endef
|
|
|
|
define REDIS_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 package/redis/redis.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/redis.service
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
ln -fs ../../../../usr/lib/systemd/system/redis.service \
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/redis.service
|
|
endef
|
|
|
|
$(eval $(generic-package))
|