2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-02 03:40:30 +02:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# quota
|
2012-06-02 03:40:30 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-02 03:40:30 +02:00
|
|
|
|
2014-10-08 16:48:52 +02:00
|
|
|
QUOTA_VERSION = 4.01
|
2012-08-26 01:52:48 +02:00
|
|
|
QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(QUOTA_VERSION)
|
2018-05-23 19:44:47 +02:00
|
|
|
QUOTA_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-nfs-utils
|
2012-11-10 12:42:44 +01:00
|
|
|
QUOTA_AUTORECONF = YES
|
2017-03-30 15:43:32 +02:00
|
|
|
QUOTA_LICENSE = GPL-2.0+
|
2014-10-08 19:58:25 +02:00
|
|
|
QUOTA_CONF_OPTS = --disable-strip-binaries
|
2017-07-03 23:16:03 +02:00
|
|
|
QUOTA_LIBS = $(TARGET_NLS_LIBS)
|
2012-11-10 12:42:44 +01:00
|
|
|
|
2012-11-04 08:34:16 +01:00
|
|
|
QUOTA_CFLAGS = $(TARGET_CFLAGS)
|
2012-06-02 03:40:30 +02:00
|
|
|
|
2016-02-21 00:12:05 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS),y)
|
|
|
|
QUOTA_DEPENDENCIES += e2fsprogs
|
|
|
|
QUOTA_CONF_OPTS += --enable-ext2direct
|
2016-08-14 15:28:01 +02:00
|
|
|
# quote does not use pkg-config to find e2fsprogs, so it does not know it
|
|
|
|
# may require -pthreads in case of static build
|
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
|
|
|
|
QUOTA_LIBS += -pthread
|
|
|
|
endif
|
2016-02-21 00:12:05 +01:00
|
|
|
else
|
|
|
|
QUOTA_CONF_OPTS += --disable-ext2direct
|
|
|
|
endif
|
|
|
|
|
2012-11-04 08:34:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
2015-07-26 20:45:16 +02:00
|
|
|
QUOTA_DEPENDENCIES += libtirpc host-pkgconf
|
2015-07-29 11:48:56 +02:00
|
|
|
QUOTA_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
|
|
|
|
QUOTA_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`
|
2012-11-04 08:34:16 +01:00
|
|
|
endif
|
|
|
|
|
2014-11-09 14:30:54 +01:00
|
|
|
QUOTA_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LIBS="$(QUOTA_LIBS)"
|
2012-11-10 12:42:44 +01:00
|
|
|
QUOTA_CONF_ENV = \
|
2014-11-09 14:30:54 +01:00
|
|
|
CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LIBS="$(QUOTA_LIBS)"
|
2012-11-04 08:34:16 +01:00
|
|
|
|
2012-06-02 03:40:30 +02:00
|
|
|
# Package uses autoconf but not automake.
|
2014-09-27 21:32:40 +02:00
|
|
|
QUOTA_INSTALL_TARGET_OPTS = \
|
2012-06-02 03:40:30 +02:00
|
|
|
ROOTDIR=$(TARGET_DIR) \
|
|
|
|
install
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|