package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / redis / redis.mk
blobe7f429971927d6828f94feabc2d081285ae0b7ba
1 ################################################################################
3 # redis
5 ################################################################################
7 REDIS_VERSION = 3.0.5
8 REDIS_SITE = http://download.redis.io/releases
9 REDIS_LICENSE = BSD-3c (core); MIT and BSD family licenses (Bundled components)
10 REDIS_LICENSE_FILES = COPYING
12 define REDIS_USERS
13 redis -1 redis -1 * /var/lib/redis /bin/false - Redis Server
14 endef
16 # Redis doesn't support DESTDIR (yet, see
17 # https://github.com/antirez/redis/pull/609). We set PREFIX
18 # instead.
19 REDIS_BUILDOPTS = $(TARGET_CONFIGURE_OPTS) \
20 PREFIX=$(TARGET_DIR)/usr MALLOC=libc \
22 define REDIS_BUILD_CMDS
23 $(TARGET_MAKE_ENV) $(MAKE) $(REDIS_BUILDOPTS) -C $(@D)
24 endef
26 define REDIS_INSTALL_TARGET_CMDS
27 $(TARGET_MAKE_ENV) $(MAKE) $(REDIS_BUILDOPTS) -C $(@D) \
28 LDCONFIG=true install
29 $(INSTALL) -D -m 0644 $(@D)/redis.conf \
30 $(TARGET_DIR)/etc/redis.conf
31 endef
33 define REDIS_INSTALL_INIT_SYSV
34 $(INSTALL) -m 0755 -D package/redis/S50redis \
35 $(TARGET_DIR)/etc/init.d/S50redis
36 endef
38 define REDIS_INSTALL_INIT_SYSTEMD
39 $(INSTALL) -D -m 0644 package/redis/redis.service \
40 $(TARGET_DIR)/usr/lib/systemd/system/redis.service
41 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
42 ln -fs ../../../../usr/lib/systemd/system/redis.service \
43 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/redis.service
44 endef
46 $(eval $(generic-package))