quota: add support to use RPC support from libtirpc
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
c78ccd3b96
commit
c5fc090f56
@ -1,15 +1,15 @@
|
|||||||
config BR2_PACKAGE_QUOTA
|
config BR2_PACKAGE_QUOTA
|
||||||
bool "quota"
|
bool "quota"
|
||||||
depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
|
||||||
depends on BR2_LARGEFILE
|
depends on BR2_LARGEFILE
|
||||||
depends on BR2_USE_WCHAR
|
depends on BR2_USE_WCHAR
|
||||||
select BR2_PACKAGE_UTIL_LINUX
|
select BR2_PACKAGE_UTIL_LINUX
|
||||||
select BR2_PACKAGE_UTIL_LINUX_MOUNT
|
select BR2_PACKAGE_UTIL_LINUX_MOUNT
|
||||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||||
|
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
||||||
help
|
help
|
||||||
Implementation of the disk quota system.
|
Implementation of the disk quota system.
|
||||||
|
|
||||||
http://sourceforge.net/projects/linuxquota/
|
http://sourceforge.net/projects/linuxquota/
|
||||||
|
|
||||||
comment "quota requires a toolchain with RPC + LARGEFILE + WCHAR support"
|
comment "quota requires a toolchain with LARGEFILE + WCHAR support"
|
||||||
depends on !(BR2_TOOLCHAIN_HAS_NATIVE_RPC && BR2_LARGEFILE && BR2_USE_WCHAR)
|
depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
|
||||||
|
@ -8,13 +8,22 @@ QUOTA_VERSION = 4.00
|
|||||||
QUOTA_SOURCE = quota-$(QUOTA_VERSION).tar.gz
|
QUOTA_SOURCE = quota-$(QUOTA_VERSION).tar.gz
|
||||||
QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(QUOTA_VERSION)
|
QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(QUOTA_VERSION)
|
||||||
|
|
||||||
QUOTA_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
|
QUOTA_CFLAGS = $(TARGET_CFLAGS)
|
||||||
|
QUOTA_LDFLAGS = $(TARGET_LDFLAGS)
|
||||||
|
|
||||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||||
QUOTA_DEPENDENCIES = gettext
|
QUOTA_DEPENDENCIES = gettext
|
||||||
QUOTA_MAKE_OPT += LDFLAGS="$(TARGET_LDFLAGS) -lintl"
|
QUOTA_LDFLAGS += -lintl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||||
|
QUOTA_DEPENDENCIES += libtirpc
|
||||||
|
QUOTA_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
|
||||||
|
QUOTA_LDFLAGS += -ltirpc
|
||||||
|
endif
|
||||||
|
|
||||||
|
QUOTA_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LDFLAGS="$(QUOTA_LDFLAGS)"
|
||||||
|
|
||||||
# Package uses autoconf but not automake.
|
# Package uses autoconf but not automake.
|
||||||
QUOTA_INSTALL_TARGET_OPT = \
|
QUOTA_INSTALL_TARGET_OPT = \
|
||||||
ROOTDIR=$(TARGET_DIR) \
|
ROOTDIR=$(TARGET_DIR) \
|
||||||
|
Loading…
Reference in New Issue
Block a user