Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] quota: new package (v2)
@ 2012-05-29 20:52 Jarkko Sakkinen
  2012-05-29 20:56 ` Gustavo Zacarias
  2012-05-29 21:01 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2012-05-29 20:52 UTC (permalink / raw)
  To: buildroot

Added linuxquota package.

[update: added target ld]

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
---
 fs/skeleton/etc/network/interfaces |    2 ++
 package/Config.in                  |    3 +++
 package/quota/Config.in            |   11 +++++++++++
 package/quota/quota.mk             |   20 ++++++++++++++++++++
 4 files changed, 36 insertions(+)
 create mode 100644 package/quota/Config.in
 create mode 100644 package/quota/quota.mk

diff --git a/fs/skeleton/etc/network/interfaces b/fs/skeleton/etc/network/interfaces
index 218b82c..e70b502 100644
--- a/fs/skeleton/etc/network/interfaces
+++ b/fs/skeleton/etc/network/interfaces
@@ -2,3 +2,5 @@
 auto lo
 iface lo inet loopback
 
+auto eth0
+iface eth0 inet dhcp
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..a2fa9b6
--- /dev/null
+++ b/package/quota/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_QUOTA
+	bool "quota"
+	depends on BR2_INET_RPC
+	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 support"
+	depends on !BR2_INET_RPC
diff --git a/package/quota/quota.mk b/package/quota/quota.mk
new file mode 100644
index 0000000..5fd83c7
--- /dev/null
+++ b/package/quota/quota.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# 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 = \
+	CC="$(TARGET_CC)" \
+	CXX="$(TARGET_CXX)" \
+	LD="$(TARGET_LD)"
+
+QUOTA_INSTALL_TARGET_OPT = \
+	ROOTDIR=$(TARGET_DIR) \
+	install
+
+$(eval $(call AUTOTARGETS))
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] quota: new package (v2)
  2012-05-29 20:52 [Buildroot] [PATCH] quota: new package (v2) Jarkko Sakkinen
@ 2012-05-29 20:56 ` Gustavo Zacarias
  2012-05-30  5:49   ` Jarkko Sakkinen
  2012-05-29 21:01 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Gustavo Zacarias @ 2012-05-29 20:56 UTC (permalink / raw)
  To: buildroot

On 2012-05-29 17:52, Jarkko Sakkinen wrote:

> --- a/fs/skeleton/etc/network/interfaces
> +++ b/fs/skeleton/etc/network/interfaces
> @@ -2,3 +2,5 @@
>  auto lo
>  iface lo inet loopback
>
> +auto eth0
> +iface eth0 inet dhcp

Oops? It shouldn't be touching this file.

> +QUOTA_SOURCE = quota-$(QUOTA_VERSION).tar.gz

Not strictly necessary, it's the default, though it's a minor detail.
Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] quota: new package (v2)
  2012-05-29 20:52 [Buildroot] [PATCH] quota: new package (v2) Jarkko Sakkinen
  2012-05-29 20:56 ` Gustavo Zacarias
@ 2012-05-29 21:01 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-05-29 21:01 UTC (permalink / raw)
  To: buildroot

Le Tue, 29 May 2012 23:52:28 +0300,
Jarkko Sakkinen <jarkko.sakkinen@intel.com> a ?crit :

>  fs/skeleton/etc/network/interfaces |    2 ++

Why do you need to change this file? The change is specific to the fact
of having an eth0 interface configured using dhcp, which may not be
necessarily the case. Can you justify why such a change is needed for
this new quota package?

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] quota: new package (v2)
  2012-05-29 20:56 ` Gustavo Zacarias
@ 2012-05-30  5:49   ` Jarkko Sakkinen
  0 siblings, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2012-05-30  5:49 UTC (permalink / raw)
  To: buildroot

Hi

On Tue, 29 May 2012, Gustavo Zacarias wrote:

> On 2012-05-29 17:52, Jarkko Sakkinen wrote:
>
>> --- a/fs/skeleton/etc/network/interfaces
>> +++ b/fs/skeleton/etc/network/interfaces
>> @@ -2,3 +2,5 @@
>>  auto lo
>>  iface lo inet loopback
>> 
>> +auto eth0
>> +iface eth0 inet dhcp
>
> Oops? It shouldn't be touching this file.

Sorry about, slipped in by mistake. I revised it soon after
sending this:

http://patchwork.ozlabs.org/patch/161803/

>
>> +QUOTA_SOURCE = quota-$(QUOTA_VERSION).tar.gz
>
> Not strictly necessary, it's the default, though it's a minor detail.
> Regards.
>

/Jarkko

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-30  5:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 20:52 [Buildroot] [PATCH] quota: new package (v2) Jarkko Sakkinen
2012-05-29 20:56 ` Gustavo Zacarias
2012-05-30  5:49   ` Jarkko Sakkinen
2012-05-29 21:01 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox