package/quota: add optional netlink dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 29 Mar 2019 17:25:28 +0000 (18:25 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 31 Mar 2019 12:47:12 +0000 (14:47 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/quota/quota.mk

index 46ef243ecc1350f5111e03def300d20d01564f89..836baf607150534e382abfb0f7fcb2b916984c12 100644 (file)
@@ -11,6 +11,13 @@ QUOTA_LICENSE = GPL-2.0+
 QUOTA_LICENSE_FILES = COPYING
 QUOTA_LIBS = $(TARGET_NLS_LIBS)
 
+ifeq ($(BR2_PACKAGE_DBUS)$(BR2_PACKAGE_LIBNL),yy)
+QUOTA_DEPENDENCIES += host-pkgconf dbus libnl
+QUOTA_CONF_OTS += --enable-netlink
+else
+QUOTA_CONF_OPTS += --disable-netlink
+endif
+
 ifeq ($(BR2_PACKAGE_E2FSPROGS),y)
 QUOTA_DEPENDENCIES += host-pkgconf e2fsprogs
 QUOTA_CONF_OPTS += --enable-ext2direct