package/rpm: add optional libcap dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 30 Mar 2019 14:49:43 +0000 (15:49 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 31 Mar 2019 13:02:07 +0000 (15:02 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/rpm/rpm.mk

index 78f429f8b6375b211001a3b21648edd2aae9ef00..0eb6e7f3c7b1a4aba6cab343388ad10709e0907d 100644 (file)
@@ -25,7 +25,6 @@ RPM_CONF_OPTS = \
        --disable-rpath \
        --with-external-db \
        --with-gnu-ld \
-       --without-cap \
        --without-hackingdocs \
        --without-lua
 
@@ -36,6 +35,13 @@ else
 RPM_CONF_OPTS += --without-acl
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+RPM_DEPENDENCIES += libcap
+RPM_CONF_OPTS += --with-cap
+else
+RPM_CONF_OPTS += --without-cap
+endif
+
 ifeq ($(BR2_PACKAGE_LIBNSS),y)
 RPM_DEPENDENCIES += libnss
 RPM_CONF_OPTS += --with-crypto=nss