package/smartmontools: add libselinux optional dependency

libselinux is an optional dependency since a very long time (2010) and
ab807ee43b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2020-02-02 11:45:11 +01:00 committed by Peter Korsgaard
parent a5e7a62b4c
commit 33b6b6b3e2

View file

@ -16,4 +16,11 @@ else
SMARTMONTOOLS_CONF_OPTS += --without-libcap-ng SMARTMONTOOLS_CONF_OPTS += --without-libcap-ng
endif endif
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
SMARTMONTOOLS_CONF_OPTS += --with-selinux
SMARTMONTOOLS_DEPENDENCIES += libselinux
else
SMARTMONTOOLS_CONF_OPTS += --without-selinux
endif
$(eval $(autotools-package)) $(eval $(autotools-package))