1 --- lm_sensors-2.8.0.orig/kernel/Module.mk 2003-05-31 17:48:28.000000000 +0200
2 +++ lm_sensors-2.8.0/kernel/Module.mk 2003-07-25 23:13:59.000000000 +0200
4 install-kernel: all-kernel
5 # if [ -n "$(KERNELTARGETS)" ] ; then \
6 # $(MKDIR) $(DESTDIR)$(MODDIR) ; \
7 -# $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODDIR) ;\
8 +# $(INSTALL) -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODDIR) ;\
10 $(RM) $(DESTDIR)$(MODPREF)/misc/sensors.o
12 --- lm_sensors-2.8.2/Makefile.orig 2003-11-29 20:59:31.000000000 +0100
13 +++ lm_sensors-2.8.2/Makefile 2003-12-13 23:24:48.024643304 +0100
15 # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
16 # LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
17 ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS)
20 +ALL_CFLAGS := -Wall $(OPTS)
23 ALL_CPPFLAGS += -DDEBUG
32 # .o files are used for modules
33 # depend on the kernel config file!
34 -%.o: %.c $(LINUX)/.config
36 $(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@
38 -%.d: %.c $(LINUX)/.config
40 $(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \
41 $(SED) -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@
43 diff -Nur lm_sensors-2.8.0.orig/prog/hotplug/Makefile lm_sensors-2.8.0/prog/hotplug/Makefile
44 --- lm_sensors-2.8.0.orig/prog/hotplug/Makefile 2003-05-31 19:30:47.000000000 +0200
45 +++ lm_sensors-2.8.0/prog/hotplug/Makefile 2003-07-25 23:17:07.000000000 +0200
47 $(CC) $(CFLAGS) -c $< -o $@
50 - install -o root -g root -m 644 $(OBJS) /lib/modules/$(VER)/kernel/drivers/i2c/busses
51 + install -m 644 $(OBJS) /lib/modules/$(VER)/kernel/drivers/i2c/busses
55 diff -Nur lm_sensors-2.8.0.orig/prog/rrd/Makefile lm_sensors-2.8.0/prog/rrd/Makefile
56 --- lm_sensors-2.8.0.orig/prog/rrd/Makefile 2002-01-05 16:39:17.000000000 +0100
57 +++ lm_sensors-2.8.0/prog/rrd/Makefile 2003-07-25 23:17:50.000000000 +0200
59 sed -e "s#%%RRDPATH%%#$(RRDPATH)#g;s#%%APACHDIR%%#$(APACHDIR)#g;s#%%RRDDIR%%#$(RRDDIR)#g;s#%%MACH%%#$(MACH)#g" $< > $@
62 - install -d -o $(USER) $(RRDDIR)
63 + install -d $(RRDDIR)
66 ./sens_create_rrd $(RRDB)
68 $(error error - Web server directory $(APACHE) not present - check APACHE definition in Makefile)
70 $(APACHDIR)/pix : $(APACHE)
71 - install -d -o $(USER) -m 777 $(APACHDIR)/pix
72 + install -d -m 777 $(APACHDIR)/pix
74 install: all $(RRDB) $(SENSDIR) $(CRONTAB) $(APACHDIR)/pix
75 - install -o root -g root -m 755 sens_update_rrd $(BINPATH)
76 - install -o root -g root -m 755 sens_week.cgi $(APACHDIR)
77 - install -o root -g root -m 755 sens_day.cgi $(APACHDIR)
78 - install -o root -g root -m 755 summ_week.cgi $(APACHDIR)
79 + install -m 755 sens_update_rrd $(BINPATH)
80 + install -m 755 sens_week.cgi $(APACHDIR)
81 + install -m 755 sens_day.cgi $(APACHDIR)
82 + install -m 755 summ_week.cgi $(APACHDIR)
83 # grep sens_update_rrd $(CRONTAB) > /dev/null 2>&1 || echo '*/5 * * * * /usr/local/bin/sens_update_rrd' $(RRDB) $(SENSDEV) >> $(CRONTAB)
85 @echo Note!!! You must manually install the following line in the crontab for user $(USER):