summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2017-04-12 11:56:19 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-12 21:59:35 +0200
commit818c794dec03bbbd42d7e6514e8b556f9c33d8cd (patch)
treec0cb9d9ed18eae6b135264bac67b02341593d98d
parentc01199a1a6b20ff27ebeb0ed272ff72960a66f75 (diff)
downloadbuildroot-818c794dec03bbbd42d7e6514e8b556f9c33d8cd.tar.gz
buildroot-818c794dec03bbbd42d7e6514e8b556f9c33d8cd.zip
proftpd: add mod_redis support
The mod_redis module enables ProFTPD support for caching data in Redis servers, using the hiredis client library. This is available since proftpd-1.3.6rc5 and later. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/proftpd/Config.in7
-rw-r--r--package/proftpd/proftpd.mk7
2 files changed, 14 insertions, 0 deletions
diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
index dd87eb45aa..07a5d86cc6 100644
--- a/package/proftpd/Config.in
+++ b/package/proftpd/Config.in
@@ -13,4 +13,11 @@ config BR2_PACKAGE_PROFTPD_MOD_REWRITE
help
Compile ProFTPD with mod_rewrite support
+config BR2_PACKAGE_PROFTPD_MOD_REDIS
+ bool "mod_redis support"
+ select BR2_PACKAGE_HIREDIS
+ help
+ The mod_redis module enables ProFTPD support for caching data in Redis
+ servers, using the hiredis client library.
+
endif
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index 5f42408213..3e165c6ada 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -27,6 +27,13 @@ ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y)
PROFTPD_CONF_OPTS += --with-modules=mod_rewrite
endif
+ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REDIS),y)
+PROFTPD_CONF_OPTS += --enable-redis
+PROFTPD_DEPENDENCIES += hiredis
+else
+PROFTPD_CONF_OPTS += --disable-redis
+endif
+
# configure script doesn't handle detection of %llu format string
# support for printing the file size when cross compiling, breaking
# access for large files.
OpenPOWER on IntegriCloud