[Buildroot] [git commit branch/2019.02.x] package/smartmontools: add libselinux optional dependency

Peter Korsgaard peter at korsgaard.com
Sat Mar 7 21:12:51 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=2015fb4061a6ad08080a2d934162ee167d0c2afd
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.02.x

libselinux is an optional dependency since a very long time (2010) and
https://github.com/mirror/smartmontools/commit/ab807ee43bd4821f5e0e010de08a746d88506b17

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 33b6b6b3e20609e1b99b3d2953b83bae2b6842bb)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/smartmontools/smartmontools.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/smartmontools/smartmontools.mk b/package/smartmontools/smartmontools.mk
index 6c90538f70..bad7da2d16 100644
--- a/package/smartmontools/smartmontools.mk
+++ b/package/smartmontools/smartmontools.mk
@@ -16,4 +16,11 @@ else
 SMARTMONTOOLS_CONF_OPTS += --without-libcap-ng
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+SMARTMONTOOLS_CONF_OPTS += --with-selinux
+SMARTMONTOOLS_DEPENDENCIES += libselinux
+else
+SMARTMONTOOLS_CONF_OPTS += --without-selinux
+endif
+
 $(eval $(autotools-package))


More information about the buildroot mailing list