Skip to contentSkip to conversation

proftpd: add mod_redis support

PATCH New Vicente Olivert Riera 2 participants 2 messages Apr 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
Note to maintainer: this patch depends on the proftpd-1.3.6 bump:
http://patchwork.ozlabs.org/patch/748931/

---
 package/proftpd/Config.in  | 7 +++++++
 package/proftpd/proftpd.mk | 7 +++++++
 2 files changed, 14 insertions(+)
package/proftpd/Config.in +7 -0
index dd87eb4..07a5d86 100644
@@ -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
package/proftpd/proftpd.mk +7 -0
index 5f42408..3e165c6 100644
@@ -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.
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/1 proftpd: add mod_redis support

Hello,

Quoted 4 lines · Vicente Olivert Riera

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.

Quoted 8 lines

---
Note to maintainer: this patch depends on the proftpd-1.3.6 bump:
http://patchwork.ozlabs.org/patch/748931/

---
 package/proftpd/Config.in  | 7 +++++++
 package/proftpd/proftpd.mk | 7 +++++++
 2 files changed, 14 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com