Patchwork quota: added linuxquota package

login
register
mail settings
Submitter Jarkko Sakkinen
Date May 25, 2012, 6:19 p.m.
Message ID <1337969963-16988-1-git-send-email-jarkko.sakkinen@intel.com>
Download mbox | patch
Permalink /patch/161391/
State Superseded
Headers show

Comments

Jarkko Sakkinen - May 25, 2012, 6:19 p.m.
This patch adds linuxquota packaging. The package
depends on BR2_INET_RPC and BR2_UTIL_LINUX_MOUNT.

[Update: I added check for util-linux mount because
it support usrquota and grpquota mount options.]

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.fi>
---
 package/Config.in       |    3 +++
 package/quota/Config.in |    9 +++++++++
 package/quota/quota.mk  |   19 +++++++++++++++++++
 3 files changed, 31 insertions(+)
 create mode 100644 package/quota/Config.in
 create mode 100644 package/quota/quota.mk

Patch

diff --git a/package/Config.in b/package/Config.in
index fb1b08f..eb76e14 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -632,6 +632,9 @@  if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/module-init-tools/Config.in"
 source "package/procps/Config.in"
 source "package/psmisc/Config.in"
+endif
+source "package/quota/Config.in"
+if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/rsyslog/Config.in"
 source "package/sysklogd/Config.in"
 source "package/sysvinit/Config.in"
diff --git a/package/quota/Config.in b/package/quota/Config.in
new file mode 100644
index 0000000..fe347c3
--- /dev/null
+++ b/package/quota/Config.in
@@ -0,0 +1,9 @@ 
+config BR2_PACKAGE_QUOTA
+	bool "quota"
+	depends on BR2_PACKAGE_UTIL_LINUX_MOUNT && BR2_INET_RPC
+	help
+		Implementation of the disk quota system.
+		http://sourceforge.net/projects/linuxquota/
+
+comment "quota requires a toolchain with RPC support and util-linux mount"
+	depends on !BR2_PACKAGE_UTIL_LINUX_MOUNT || !BR2_INET_RPC
diff --git a/package/quota/quota.mk b/package/quota/quota.mk
new file mode 100644
index 0000000..90254ba
--- /dev/null
+++ b/package/quota/quota.mk
@@ -0,0 +1,19 @@ 
+#############################################################
+#
+# QUOTA
+#
+#############################################################
+
+QUOTA_VERSION = 4.00
+QUOTA_SOURCE = quota-$(QUOTA_VERSION).tar.gz
+QUOTA_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/linuxquota/quota-tools/$(QUOTA_VERSION)
+
+QUOTA_CONF_OPT = \
+	--prefix=$(TARGET_DIR) \
+	--exec-prefix=$(TARGET_DIR)
+
+QUOTA_MAKE_OPT = \
+	CC="$(TARGET_CC)" \
+	CXX="$(TARGET_CXX)"
+
+$(eval $(call AUTOTARGETS))