diff options
-rw-r--r-- | rules/lm_sensors.in | 24 | ||||
-rw-r--r-- | rules/lm_sensors.make | 24 |
2 files changed, 45 insertions, 3 deletions
diff --git a/rules/lm_sensors.in b/rules/lm_sensors.in index 1705f11a2..7815b85b8 100644 --- a/rules/lm_sensors.in +++ b/rules/lm_sensors.in @@ -8,3 +8,27 @@ config LM_SENSORS It contains a library (libsensors) providing generic access to hwmon devices and a simple application dumping the readings of all available sensor chips. + +if LM_SENSORS + +config LM_SENSORS_FANCONTROL + bool + prompt "install fancontrol" + +config LM_SENSORS_SENSORS_DETECT + bool + prompt "install sensors-detect" + +config LM_SENSORS_ISASET + bool + prompt "install isaset" + +config LM_SENSORS_ISADUMP + bool + prompt "install isadump" + +config LM_SENSORS_PWMCONFIG + bool + prompt "install pwmconfig" + +endif diff --git a/rules/lm_sensors.make b/rules/lm_sensors.make index b4df5f2df..3e0ec6a79 100644 --- a/rules/lm_sensors.make +++ b/rules/lm_sensors.make @@ -93,12 +93,30 @@ $(STATEDIR)/lm_sensors.targetinstall: @$(call install_fixup, lm_sensors,DEPENDS,) @$(call install_fixup, lm_sensors,DESCRIPTION,missing) - @$(call install_copy, lm_sensors, 0, 0, 0755, $(LM_SENSORS_DIR)/prog/sensors/sensors, /usr/bin/sensors) - @$(call install_copy, lm_sensors, 0, 0, 0644, $(LM_SENSORS_DIR)/etc/sensors.conf.default, /etc/sensors3.conf) - @$(call install_copy, lm_sensors, 0, 0, 0755, $(LM_SENSORS_DIR)/lib/libsensors.so.4.2.0, /usr/lib/libsensors.so.4.2.0) + @$(call install_copy, lm_sensors, 0, 0, 0644, -, /usr/lib/libsensors.so.4.2.0) @$(call install_link, lm_sensors, libsensors.so.4.2.0, /usr/lib/libsensors.so.4) @$(call install_link, lm_sensors, libsensors.so.4.2.0, /usr/lib/libsensors.so) + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/bin/sensors) + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/bin/sensors-conf-convert) + + @$(call install_copy, lm_sensors, 0, 0, 0644, -, /etc/sensors3.conf) + +ifdef PTXCONF_LM_SENSORS_FANCONTROL + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/fancontrol) +endif +ifdef PTXCONF_LM_SENSORS_SENSORS_DETECT + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/sensors-detect) +endif +ifdef PTXCONF_LM_SENSORS_ISASET + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/isaset) +endif +ifdef PTXCONF_LM_SENSORS_ISADUMP + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/isadump) +endif +ifdef PTXCONF_LM_SENSORS_PWMCONFIG + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/pwmconfig) +endif @$(call install_finish, lm_sensors) @$(call touch) |