package/rpm: add optional libcap dependency

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2019-03-30 15:49:43 +01:00 committed by Thomas Petazzoni
parent aa2703ab0d
commit 951831b46f

View 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