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>
This commit is contained in:
Mattia Narducci
2024-08-21 20:54:06 +02:00
committed by Peter Korsgaard
parent 8feca04f04
commit b03098645f
2 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -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