summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch')
-rw-r--r--sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch b/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch
new file mode 100644
index 000000000000..e46fabcb3844
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch
@@ -0,0 +1,69 @@
+diff -urp lm_sensors-2.9.1/kernel/busses/Module.mk lm_sensors-2.9.1-module-path/kernel/busses/Module.mk
+--- lm_sensors-2.9.1/kernel/busses/Module.mk 2004-11-14 15:28:09.000000000 +0100
++++ lm_sensors-2.9.1-module-path/kernel/busses/Module.mk 2005-06-04 15:29:59.000000000 +0200
+@@ -105,16 +105,16 @@ all :: all-kernel-busses
+
+ #
+ # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory
+-# layout, so we install in kernel/drivers/i2c/busses and remove old versions in misc/
+-# and kernel/drivers/i2c/ . Otherwise we install in misc/ as before.
++# layout, so we install in drivers/i2c/busses and remove old versions in misc/
++# and drivers/i2c/ . Otherwise we install in misc/ as before.
+ #
+ install-kernel-busses: all-kernel-busses
+ if [ -n "$(KERNELBUSSESTARGETS)" ] ; then \
+- $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/busses ; \
+- $(INSTALL) -m 644 $(KERNELBUSSESTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/busses ; \
++ $(MKDIR) $(DESTDIR)$(MODPREF)/drivers/i2c/busses ; \
++ $(INSTALL) -m 644 $(KERNELBUSSESTARGETS) $(DESTDIR)$(MODPREF)/drivers/i2c/busses ; \
+ for i in $(KERNELBUSSESTARGETS) ; do \
+- $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i` \
+- $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/busses/`basename $$i`.gz ; \
++ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i` \
++ $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i`.gz $(DESTDIR)$(MODPREF)/drivers/i2c/busses/`basename $$i`.gz ; \
+ done ; \
+ $(RMDIR) $(DESTDIR)$(MODPREF)/misc 2> /dev/null || true ; \
+ fi
+diff -urp lm_sensors-2.9.1/kernel/chips/Module.mk lm_sensors-2.9.1-module-path/kernel/chips/Module.mk
+--- lm_sensors-2.9.1/kernel/chips/Module.mk 2005-03-10 20:03:52.000000000 +0100
++++ lm_sensors-2.9.1-module-path/kernel/chips/Module.mk 2005-06-04 15:29:45.000000000 +0200
+@@ -186,13 +186,13 @@ all :: all-kernel-chips
+
+ #
+ # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory
+-# layout, so we install in kernel/drivers/i2c/chips/ and remove old versions in misc/
++# layout, so we install in drivers/i2c/chips/ and remove old versions in misc/
+ # and kernel/drivers/sensors/ . Otherwise we install in misc/ as before.
+ #
+ install-kernel-chips: all-kernel-chips
+ if [ -n "$(KERNELCHIPSTARGETS)" ] ; then \
+- $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/chips ; \
+- $(INSTALL) -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/chips ; \
++ $(MKDIR) $(DESTDIR)$(MODPREF)/drivers/i2c/chips ; \
++ $(INSTALL) -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODPREF)/drivers/i2c/chips ; \
+ for i in $(KERNELCHIPSTARGETS) ; do \
+ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/kernel/drivers/sensors/`basename $$i` \
+ $(DESTDIR)$(MODPREF)/kernel/drivers/sensors/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/chips/`basename $$i`.gz ; \
+diff -urp lm_sensors-2.9.1/prog/hotplug/Makefile.p4b lm_sensors-2.9.1-module-path/prog/hotplug/Makefile.p4b
+--- lm_sensors-2.9.1/prog/hotplug/Makefile.p4b 2003-05-31 19:30:47.000000000 +0200
++++ lm_sensors-2.9.1-module-path/prog/hotplug/Makefile.p4b 2005-06-04 15:29:25.000000000 +0200
+@@ -44,15 +44,15 @@ OBJS = p4b_smbus.o
+ all: $(OBJS)
+
+ install: all
+- install -d /lib/modules/$(KERNELVERSION)/kernel/drivers/i2c/busses
+- install -c p4b_smbus.o /lib/modules/$(KERNELVERSION)/kernel/drivers/i2c/busses
++ install -d /lib/modules/$(KERNELVERSION)/drivers/i2c/busses
++ install -c p4b_smbus.o /lib/modules/$(KERNELVERSION)/drivers/i2c/busses
+ # test ! -x /dev/watchdog || mknod -m 600 /dev/watchdog c 10 130
+ # test ! -x /dev/temperature || mknod -m 600 /dev/temperature c 10 131
+
+ inst: all
+ rmmod p4b_smbus
+- install -d /lib/modules/$(KERNELVERSION)/kernel/drivers/i2c/busses
+- install -c p4b_smbus.o /lib/modules/$(KERNEL)/kernel/drivers/i2c/busses
++ install -d /lib/modules/$(KERNELVERSION)/drivers/i2c/busses
++ install -c p4b_smbus.o /lib/modules/$(KERNEL)/drivers/i2c/busses
+ depmod -a
+ # modprobe p4b_smbus
+