summaryrefslogtreecommitdiff
path: root/package/lm-sensors
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-14 18:48:44 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-14 18:48:44 +0000
commitb861a915ba1850e20861a856ffece4557b88018b (patch)
tree24ae0b9eb7734f959b97d9a6c35da2bda74bbb27 /package/lm-sensors
parentfd3e0a5a6afcc7a7b52e0916336239a4db0563b8 (diff)
- touchup a few bits that the submitter should have done in the first place
Diffstat (limited to 'package/lm-sensors')
-rw-r--r--package/lm-sensors/lm-sensors.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/lm-sensors/lm-sensors.mk b/package/lm-sensors/lm-sensors.mk
index 6cbd27b81..532061b58 100644
--- a/package/lm-sensors/lm-sensors.mk
+++ b/package/lm-sensors/lm-sensors.mk
@@ -29,6 +29,7 @@ ifneq ($(LM_SENSORS_PATCH),)
toolchain/patch-kernel.sh $(LM_SENSORS_DIR) $(LM_SENSORS_DIR)/debian/patches \*.patch; \
fi
endif
+ -$(SED) "s/-O[[:digit:]]//g" $(LM_SENSORS_DIR)/Makefile
touch $@
$(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY): $(LM_SENSORS_DIR)/.unpacked
@@ -38,6 +39,12 @@ $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY): $(LM_SENSORS_DIR)/.unpacked
DESTDIR=$(TARGET_DIR) user
$(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY): $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY)
+ if [ ! -f $(TARGET_DIR)/etc/sensors.conf ]; then \
+ cp -dpf $(LM_SENSORS_DIR)/etc/sensors.conf.eg \
+ $(TARGET_DIR)/etc/sensors.conf; \
+ $(SED) '/^#/d' -e '/^[[:space:]]*$$/d' \
+ $(TARGET_DIR)/etc/sensors.conf; \
+ fi
cp -dpf $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY) $@
cp -dpf $(LM_SENSORS_DIR)/lib/libsensors.so* \
$(LM_SENSORS_DIR)/lib/libsensors.a $(TARGET_DIR)/usr/lib/
@@ -48,7 +55,9 @@ lm-sensors: uclibc libsysfs $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY)
lm-sensors-clean:
-$(MAKE) -C $(LM_SENSORS_DIR) clean
- rm -f $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY)
+ rm -f $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY) \
+ $(TARGET_DIR)/lib/libsensors* \
+ $(TARGET_DIR)/etc/sensors.conf
lm-sensors-dirclean:
rm -rf $(LM_SENSORS_DIR)