Skip to contentSkip to conversation

package/proftpd: add option to enable mod_lang

PATCH In review Mattia Narducci 2 participants 2 messages Aug 21, 2024 – Feb 3, 2025

lore
Share & tools
lore
#0 lore raw

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

---
 package/proftpd/Config.in  | 7 +++++++
 package/proftpd/proftpd.mk | 7 +++++++
 2 files changed, 14 insertions(+)
package/proftpd/Config.in +7 -0
index 9d99ff70c4..1f8f2bd305 100644
@@ -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
package/proftpd/proftpd.mk +7 -0
index cd7d232672..9f64cb43a0 100644
@@ -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
Signature · 9 lines
2.45.2




_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · Mattia Narducci

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.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot