[PATCH] Fix lm_sensors installation with DESTDIR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

The new lm_sensors-2.8.2 has some bugs in the newly added Module.mk
files, therefore "make install DESTDIR=something" does not work.

This patch fixes the problem:

--- lm_sensors-2.8.2/prog/pwm/Module.mk.install-fix	2003-10-28 04:41:47 +0300
+++ lm_sensors-2.8.2/prog/pwm/Module.mk	2003-12-13 22:53:00 +0300
@@ -22,7 +22,8 @@
                   $(MODULE_DIR)/pwmconfig
 
 install-prog-pwm: $(PROGPWMTARGETS)
-	$(INSTALL) -o root -g root -m 755 $(PROGPWMTARGETS) $(SBINDIR)
+	$(MKDIR) $(DESTDIR)$(SBINDIR)
+	$(INSTALL) -o root -g root -m 755 $(PROGPWMTARGETS) $(DESTDIR)$(SBINDIR)
 
 user_install :: install-prog-pwm
 
--- lm_sensors-2.8.2/prog/xeon/Module.mk.install-fix	2003-11-29 16:29:59 +0300
+++ lm_sensors-2.8.2/prog/xeon/Module.mk	2003-12-13 22:53:40 +0300
@@ -21,7 +21,8 @@
 PROGXEONTARGETS := $(MODULE_DIR)/decode-xeon.pl
 
 install-prog-xeon: $(PROGXEONTARGETS)
-	$(INSTALL) -o root -g root -m 755 $(PROGXEONTARGETS) $(BINDIR)
+	$(MKDIR) $(DESTDIR)$(BINDIR)
+	$(INSTALL) -o root -g root -m 755 $(PROGXEONTARGETS) $(DESTDIR)$(BINDIR)
 
 user_install :: install-prog-xeon
 
--- lm_sensors-2.8.2/prog/eeprom/Module.mk.install-fix	2003-11-29 16:29:59 +0300
+++ lm_sensors-2.8.2/prog/eeprom/Module.mk	2003-12-13 22:53:00 +0300
@@ -23,7 +23,8 @@
                      $(MODULE_DIR)/decode-vaio.pl
 
 install-prog-eeprom: $(PROGEEPROMTARGETS)
-	$(INSTALL) -o root -g root -m 755 $(PROGEEPROMTARGETS) $(BINDIR)
+	$(MKDIR) $(DESTDIR)$(BINDIR)
+	$(INSTALL) -o root -g root -m 755 $(PROGEEPROMTARGETS) $(DESTDIR)$(BINDIR)
 
 user_install :: install-prog-eeprom
 

Best regards,
Sergey Vlasov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031213/d4918a23/attachment.bin 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux