浏览代码

pure-ftpd: Added pure-ftpd quotas config option

Added the pure-ftp quotas option.  When selected, the --with-quotas
compiler option is passed which enables the quota feature

Note that this increases the size of the pure-ftpd executable by
about 20%.

Signed-off-by: Bryce Ferguson <bryce.ferguson@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Bryce Ferguson 8 年之前
父节点
当前提交
4a25798caf
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 8 0
      package/pure-ftpd/Config.in
  2. 4 0
      package/pure-ftpd/pure-ftpd.mk

+ 8 - 0
package/pure-ftpd/Config.in

@@ -20,4 +20,12 @@ config BR2_PACKAGE_PURE_FTPD_FTPWHO
 	  client sessions.  Only the system administrator may run this.  Output
 	  client sessions.  Only the system administrator may run this.  Output
 	  can be text (default), HTML, XML data and parser-optimized.
 	  can be text (default), HTML, XML data and parser-optimized.
 
 
+config BR2_PACKAGE_PURE_FTPD_QUOTAS
+	bool "quotas"
+	help
+	  Enable virtual quotas. With virtual quotas, restrictions can
+	  be placed on the maximum number of files a user can store in
+	  his account. In addition, restrictions can also be placed
+	  on the total size.
+
 endif
 endif

+ 4 - 0
package/pure-ftpd/pure-ftpd.mk

@@ -49,4 +49,8 @@ ifeq ($(BR2_PACKAGE_PURE_FTPD_FTPWHO),y)
 PURE_FTPD_CONF_OPTS += --with-ftpwho
 PURE_FTPD_CONF_OPTS += --with-ftpwho
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_PURE_FTPD_QUOTAS),y)
+PURE_FTPD_CONF_OPTS += --with-quotas
+endif
+
 $(eval $(autotools-package))
 $(eval $(autotools-package))