diff mbox

[1/1] pure-ftpd: Added pure-ftpd quotas config option

Message ID 1484765931-18410-1-git-send-email-bryce.ferguson@rockwellcollins.com
State Accepted
Headers show

Commit Message

Bryce Ferguson Jan. 18, 2017, 6:58 p.m. UTC
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>
---
 package/pure-ftpd/Config.in    | 7 +++++++
 package/pure-ftpd/pure-ftpd.mk | 4 ++++
 2 files changed, 11 insertions(+)

Comments

Bryce Ferguson Jan. 18, 2017, 7:03 p.m. UTC | #1
On Wed, Jan 18, 2017 at 12:58 PM, Bryce Ferguson
<bryce.ferguson@rockwellcollins.com> wrote:
> 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.

>
> Signed-off-by: Bryce Ferguson <bryce.ferguson@rockwellcollins.com>
> ---
>  package/pure-ftpd/Config.in    | 7 +++++++
>  package/pure-ftpd/pure-ftpd.mk | 4 ++++
>  2 files changed, 11 insertions(+)
>
> diff --git a/package/pure-ftpd/Config.in b/package/pure-ftpd/Config.in
> index 85fdef3..df28c4c 100644
> --- a/package/pure-ftpd/Config.in
> +++ b/package/pure-ftpd/Config.in
> @@ -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
> diff --git a/package/pure-ftpd/pure-ftpd.mk b/package/pure-ftpd/pure-ftpd.mk
> index 80e432a..95e7065 100644
> --- a/package/pure-ftpd/pure-ftpd.mk
> +++ b/package/pure-ftpd/pure-ftpd.mk
> @@ -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
>
Thomas Petazzoni Jan. 24, 2017, 9:24 a.m. UTC | #2
Hello,

On Wed, 18 Jan 2017 12:58:51 -0600, Bryce Ferguson wrote:
> 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>
> ---
>  package/pure-ftpd/Config.in    | 7 +++++++
>  package/pure-ftpd/pure-ftpd.mk | 4 ++++
>  2 files changed, 11 insertions(+)

Applied to master, thanks.

Thomas
diff mbox

Patch

diff --git a/package/pure-ftpd/Config.in b/package/pure-ftpd/Config.in
index 85fdef3..df28c4c 100644
--- a/package/pure-ftpd/Config.in
+++ b/package/pure-ftpd/Config.in
@@ -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
diff --git a/package/pure-ftpd/pure-ftpd.mk b/package/pure-ftpd/pure-ftpd.mk
index 80e432a..95e7065 100644
--- a/package/pure-ftpd/pure-ftpd.mk
+++ b/package/pure-ftpd/pure-ftpd.mk
@@ -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))