Skip to contentSkip to conversation

pure-ftpd: Added pure-ftpd quotas config option

PATCH New Bryce Ferguson 2 participants 3 messages Jan 18, 2017 – Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

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

---
 package/pure-ftpd/Config.in    | 7 +++++++
 package/pure-ftpd/pure-ftpd.mk | 4 ++++
 2 files changed, 11 insertions(+)
package/pure-ftpd/Config.in +7 -0
index 85fdef3..df28c4c 100644
@@ -20,4 +20,11 @@ config BR2_PACKAGE_PURE_FTPD_FTPWHO
 	  client sessions.  Only the system administrator may run this.  Output
 	  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
package/pure-ftpd/pure-ftpd.mk +4 -0
index 80e432a..95e7065 100644
@@ -49,4 +49,8 @@ ifeq ($(BR2_PACKAGE_PURE_FTPD_FTPWHO),y)
 PURE_FTPD_CONF_OPTS += --with-ftpwho
 endif
 
+ifeq ($(BR2_PACKAGE_PURE_FTPD_QUOTAS),y)
+PURE_FTPD_CONF_OPTS += --with-quotas
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 pure-ftpd: Added pure-ftpd quotas config option

Quoted 5 lines · Bryce Ferguson

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%.

Added the note about the executable size difference as per Baruch's comments (https://patchwork.ozlabs.org/patch/711541/) and marked original as superseded.

Quoted 39 lines
---
 package/pure-ftpd/Config.in    | 7 +++++++
 package/pure-ftpd/pure-ftpd.mk | 4 ++++
 2 files changed, 11 insertions(+)
package/pure-ftpd/Config.in +7 -0
index 85fdef3..df28c4c 100644
@@ -20,4 +20,11 @@ config BR2_PACKAGE_PURE_FTPD_FTPWHO
          client sessions.  Only the system administrator may run this.  Output
          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
package/pure-ftpd/pure-ftpd.mk +4 -1
index 80e432a..95e7065 100644
@@ -49,4 +49,8 @@ ifeq ($(BR2_PACKAGE_PURE_FTPD_FTPWHO),y)
 PURE_FTPD_CONF_OPTS += --with-ftpwho
 endif
 
+ifeq ($(BR2_PACKAGE_PURE_FTPD_QUOTAS),y)
+PURE_FTPD_CONF_OPTS += --with-quotas
+endif
+
 $(eval $(autotools-package))
--

1.9.1

Signature · 7 lines
Bryce Ferguson
Software Engineer
Airborne Information Solutions \ Secure Platforms

400 Collins Rd NE Cedar Rapids, Iowa 52498

Bryce.Ferguson at rockwellcollins.com
#2 lore raw

PATCH 1/1 pure-ftpd: Added pure-ftpd quotas config option

In reply to Bryce Ferguson

Hello,

Quoted 11 lines · Bryce Ferguson

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%.

---
 package/pure-ftpd/Config.in    | 7 +++++++
 package/pure-ftpd/pure-ftpd.mk | 4 ++++
 2 files changed, 11 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com