1 ################################################################################
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
13 redis
-1 redis
-1 * /var
/lib
/redis
/bin
/false
- Redis Server
16 # Redis doesn't support DESTDIR (yet, see
17 # https://github.com/antirez/redis/pull/609). We set PREFIX
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
)
26 define REDIS_INSTALL_TARGET_CMDS
27 $(TARGET_MAKE_ENV
) $(MAKE
) $(REDIS_BUILDOPTS
) -C
$(@D
) \
29 $(INSTALL
) -D
-m
0644 $(@D
)/redis.conf \
30 $(TARGET_DIR
)/etc
/redis.conf
33 define REDIS_INSTALL_INIT_SYSV
34 $(INSTALL
) -m
0755 -D package
/redis
/S50redis \
35 $(TARGET_DIR
)/etc
/init.d
/S50redis
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
46 $(eval
$(generic-package
))