Skip to contentSkip to conversation

package/htop: add lm-sensors optional dependency

PATCH New Fabrice Fontaine 2 participants 2 messages Jan 30, 2021 – Feb 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/htop: add lm-sensors optional dependency

lm-sensors is an optional dependency (enabled by default) since version 3.0.3 and
https://github.com/htop-dev/htop/commit/1b225cd7a0af03a6349c48326118a287fc36acd0

---
 package/htop/htop.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/htop/htop.mk +7 -0
index 15a56485c8..aa2ff24750 100644
@@ -12,6 +12,13 @@ HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/$(NCURSES_CONF
 HTOP_LICENSE = GPL-2.0
 HTOP_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
+HTOP_CONF_OPTS += --with-sensors
+HTOP_DEPENDENCIES += lm-sensors
+else
+HTOP_CONF_OPTS += --without-sensors
+endif
+
 ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
 HTOP_CONF_OPTS += --enable-unicode
 else
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 package/htop: add lm-sensors optional dependency

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

lm-sensors is an optional dependency (enabled by default) since version 3.0.3 and
https://github.com/htop-dev/htop/commit/1b225cd7a0af03a6349c48326118a287fc36acd0

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard