diff options
author | Paresh Chaudhary <paresh.chaudhary@rockwellcollins.com> | 2018-08-14 13:15:25 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-08-14 22:14:45 +0200 |
commit | c4f39476fdb2867a05c267c62ee1ac1aaa00e69c (patch) | |
tree | 8d2f1d6b28dcf55f4b19eb8fa2117595011c9464 | |
parent | b6f33738676fe91d1207de927f5bd045e41830da (diff) | |
download | buildroot-c4f39476fdb2867a05c267c62ee1ac1aaa00e69c.tar.gz buildroot-c4f39476fdb2867a05c267c62ee1ac1aaa00e69c.zip |
package/proftpd: add BR2_PACKAGE_PROFTPD_MOD_SFTP
This patch adds BR2_PACKAGE_PROFTPD_MOD_SFTP support and also
changes the .mk file to add required modules as a list in a
separate variable. This new variable will help in future to add
more module support in proftpd package.
Signed-off-by: Paresh Chaudhary <paresh.chaudhary@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r-- | package/proftpd/Config.in | 6 | ||||
-rw-r--r-- | package/proftpd/proftpd.mk | 12 |
2 files changed, 17 insertions, 1 deletions
diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in index e979d407cf..e7e3c13780 100644 --- a/package/proftpd/Config.in +++ b/package/proftpd/Config.in @@ -20,4 +20,10 @@ config BR2_PACKAGE_PROFTPD_MOD_REDIS The mod_redis module enables ProFTPD support for caching data in Redis servers, using the hiredis client library. +config BR2_PACKAGE_PROFTPD_MOD_SFTP + bool "mod_sftp support" + select BR2_PACKAGE_OPENSSL + help + Compile ProFTPD with mod_sftp support + endif diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk index 3e165c6ada..b02320f4c0 100644 --- a/package/proftpd/proftpd.mk +++ b/package/proftpd/proftpd.mk @@ -24,7 +24,7 @@ PROFTPD_CONF_OPTS = \ --with-gnu-ld ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y) -PROFTPD_CONF_OPTS += --with-modules=mod_rewrite +PROFTPD_MODULES += mod_rewrite endif ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REDIS),y) @@ -34,6 +34,16 @@ else PROFTPD_CONF_OPTS += --disable-redis endif +ifeq ($(BR2_PACKAGE_PROFTPD_MOD_SFTP),y) +PROFTPD_CONF_OPTS += --enable-openssl +PROFTPD_MODULES += mod_sftp +PROFTPD_DEPENDENCIES += openssl +else +PROFTPD_CONF_OPTS += --disable-openssl +endif + +PROFTPD_CONF_OPTS += --with-modules=$(subst $(space),:,$(PROFTPD_MODULES)) + # configure script doesn't handle detection of %llu format string # support for printing the file size when cross compiling, breaking # access for large files. |