浏览代码

package/proftpd: add option to enable mod_lang

ProFTPD's mod_lang module handles RFC 2640 LANG and OPTS UTF8 commands
allowing localization of greetings and command responses and the use of
character sets beyond 7 bit ASCII for directory and file names.

Signed-off-by: Mattia Narducci <mattianarducci1@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Mattia Narducci 11 月之前
父节点
当前提交
b03098645f
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 7 0
      package/proftpd/Config.in
  2. 7 0
      package/proftpd/proftpd.mk

+ 7 - 0
package/proftpd/Config.in

@@ -16,6 +16,13 @@ config BR2_PACKAGE_PROFTPD_MOD_CAP
 	help
 	  Compile ProFTPD with mod_cap support
 
+config BR2_PACKAGE_PROFTPD_MOD_LANG
+	bool "mod_lang support"
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+	help
+	  The mod_lang module enables ProFTPD support for RFC 2640 LANG
+	  and OPTS UTF8 commands.
+
 config BR2_PACKAGE_PROFTPD_MOD_REWRITE
 	bool "mod_rewrite support"
 	help

+ 7 - 0
package/proftpd/proftpd.mk

@@ -49,6 +49,13 @@ else
 PROFTPD_CONF_OPTS += --disable-cap
 endif
 
+ifeq ($(BR2_PACKAGE_PROFTPD_MOD_LANG),y)
+PROFTPD_CONF_OPTS += --enable-nls
+ifneq ($(BR2_ENABLE_LOCALE),y)
+PROFTPD_DEPENDENCIES += libiconv
+endif
+endif
+
 ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y)
 PROFTPD_MODULES += mod_rewrite
 endif