Patchwork quota: new package (v8)

login
register
mail settings
Submitter Jarkko Sakkinen
Date June 2, 2012, 11:40 a.m.
Message ID <1338637230-6694-1-git-send-email-jarkko.sakkinen@intel.com>
Download mbox | patch
Permalink /patch/162408/
State Accepted
Headers show

Comments

Jarkko Sakkinen - June 2, 2012, 11:40 a.m.
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
---
 package/Config.in       |    3 +++
 package/quota/Config.in |   13 +++++++++++++
 package/quota/quota.mk  |   18 ++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/quota/Config.in
 create mode 100644 package/quota/quota.mk
 
 [update: TARGET_CFLAGS]
Arnout Vandecappelle - June 4, 2012, 11:40 p.m.
On 06/02/12 13:40, Jarkko Sakkinen wrote:
> Signed-off-by: Jarkko Sakkinen<jarkko.sakkinen@intel.com>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

  Nice!

[snip]
Peter Korsgaard - June 23, 2012, 11:52 p.m.
>>>>> "Jarkko" == Jarkko Sakkinen <jarkko.sakkinen@intel.com> writes:

 Jarkko> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>

Committed with minor change, thanks.

 Jarkko> +config BR2_PACKAGE_QUOTA
 Jarkko> +	bool "quota"
 Jarkko> +	depends on BR2_INET_RPC
 Jarkko> +	depends on BR2_LARGEFILE
 Jarkko> +	depends on BR2_USE_WCHAR
 Jarkko> +	select BR2_PACKAGE_UTIL_LINUX
 Jarkko> +	select BR2_PACKAGE_UTIL_LINUX_MOUNT
 Jarkko> +	help
 Jarkko> +	  Implementation of the disk quota system.
 Jarkko> +	  http://sourceforge.net/projects/linuxquota/

We normally have an empty line before the URL, so I've changed that.

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..62dcdfb
--- /dev/null
+++ b/package/quota/Config.in
@@ -0,0 +1,13 @@ 
+config BR2_PACKAGE_QUOTA
+	bool "quota"
+	depends on BR2_INET_RPC
+	depends on BR2_LARGEFILE
+	depends on BR2_USE_WCHAR
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_MOUNT
+	help
+	  Implementation of the disk quota system.
+	  http://sourceforge.net/projects/linuxquota/
+
+comment "quota requires a toolchain with RPC + LARGEFILE + WCHAR support"
+	depends on !(BR2_INET_RPC && BR2_LARGEFILE && BR2_USE_WCHAR)
diff --git a/package/quota/quota.mk b/package/quota/quota.mk
new file mode 100644
index 0000000..845eefb
--- /dev/null
+++ b/package/quota/quota.mk
@@ -0,0 +1,18 @@ 
+#############################################################
+#
+# 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_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+
+# Package uses autoconf but not automake.
+QUOTA_INSTALL_TARGET_OPT = \
+	ROOTDIR=$(TARGET_DIR) \
+	install
+
+$(eval $(call AUTOTARGETS))