package/sysstat: enable lm-sensors support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 23 Dec 2020 11:22:59 +0000 (12:22 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 23 Dec 2020 21:32:48 +0000 (22:32 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sysstat/sysstat.mk

index 8e627f2e9602986f8402b26f4483017a42628831..7d254d6643b68532a69400264b5c65a68d359a82 100644 (file)
@@ -7,9 +7,16 @@
 SYSSTAT_VERSION = 12.4.2
 SYSSTAT_SOURCE = sysstat-$(SYSSTAT_VERSION).tar.xz
 SYSSTAT_SITE = http://pagesperso-orange.fr/sebastien.godard
-SYSSTAT_CONF_OPTS = --disable-file-attr --disable-sensors
+SYSSTAT_CONF_OPTS = --disable-file-attr
 SYSSTAT_DEPENDENCIES = host-gettext $(TARGET_NLS_DEPENDENCIES)
 SYSSTAT_LICENSE = GPL-2.0+
 SYSSTAT_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
+SYSSTAT_DEPENDENCIES += lm-sensors
+SYSSTAT_CONF_OPTS += --enable-sensors
+else
+SYSSTAT_CONF_OPTS += --disable-sensors
+endif
+
 $(eval $(autotools-package))