package/smartmontools: add libcap-ng optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 13 Jan 2020 20:43:29 +0000 (21:43 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 1 Feb 2020 23:17:29 +0000 (00:17 +0100)
libcap-ng is an optional dependency since a very long time (2010) and
https://github.com/mirror/smartmontools/commit/24882d3672b759c1125169420749e186a3816fe1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/smartmontools/smartmontools.mk

index 137c00a505909497863846d02286ff23cb488e66..6c90538f707fd41f04ee3850468c7d6846efa991 100644 (file)
@@ -9,4 +9,11 @@ SMARTMONTOOLS_SITE = http://downloads.sourceforge.net/project/smartmontools/smar
 SMARTMONTOOLS_LICENSE = GPL-2.0+
 SMARTMONTOOLS_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_LIBCAP_NG),y)
+SMARTMONTOOLS_CONF_OPTS += --with-libcap-ng
+SMARTMONTOOLS_DEPENDENCIES += libcap-ng
+else
+SMARTMONTOOLS_CONF_OPTS += --without-libcap-ng
+endif
+
 $(eval $(autotools-package))