From patchwork Wed Jan 18 18:58:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryce Ferguson X-Patchwork-Id: 716807 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3v3bqM66Qxz9s3T for ; Thu, 19 Jan 2017 05:59:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AFAC9C16F9; Wed, 18 Jan 2017 18:59:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TCM3_hX-sRMD; Wed, 18 Jan 2017 18:59:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D02C6C16D8; Wed, 18 Jan 2017 18:59:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id C71861C0176 for ; Wed, 18 Jan 2017 18:59:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C20F2920FC for ; Wed, 18 Jan 2017 18:59:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fKD3EAzcBAxB for ; Wed, 18 Jan 2017 18:58:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com [205.175.225.240]) by hemlock.osuosl.org (Postfix) with ESMTPS id 86CF0920F8 for ; Wed, 18 Jan 2017 18:58:58 +0000 (UTC) Received: from unknown (HELO crulimr01.rockwellcollins.com) ([131.198.26.129]) by secvs01.rockwellcollins.com with ESMTP; 18 Jan 2017 12:58:57 -0600 X-Received: from largo.rockwellcollins.com (unknown [192.168.140.76]) by crulimr01.rockwellcollins.com (Postfix) with ESMTP id 12F036033F; Wed, 18 Jan 2017 12:58:57 -0600 (CST) From: Bryce Ferguson To: buildroot@buildroot.org Date: Wed, 18 Jan 2017 12:58:51 -0600 Message-Id: <1484765931-18410-1-git-send-email-bryce.ferguson@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 Cc: Bryce Ferguson Subject: [Buildroot] [PATCH 1/1] pure-ftpd: Added pure-ftpd quotas config option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- 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))