]> git.pld-linux.org Git - packages/lm_sensors.git/blame - lm_sensors-make.patch
- release 2
[packages/lm_sensors.git] / lm_sensors-make.patch
CommitLineData
6f93b642
JB
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
3@@ -39,7 +39,7 @@
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) ;\
9 # fi
10 $(RM) $(DESTDIR)$(MODPREF)/misc/sensors.o
11
3105c847
JB
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
14@@ -183,13 +183,11 @@
6f93b642
JB
15 # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
16 # LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
55005178 17 ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS)
3105c847 18-ALL_CFLAGS := -Wall
6f93b642
JB
19+OPTS = -O2
20+ALL_CFLAGS := -Wall $(OPTS)
21
22 ifeq ($(DEBUG),1)
23 ALL_CPPFLAGS += -DDEBUG
3105c847
JB
24-ALL_CFLAGS += -O -g
25-else
26-ALL_CFLAGS += -O2
27 endif
28
29 ifeq ($(WARN),1)
30@@ -328,10 +326,10 @@
31
32 # .o files are used for modules
33 # depend on the kernel config file!
34-%.o: %.c $(LINUX)/.config
35+%.o: %.c
36 $(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@
37
38-%.d: %.c $(LINUX)/.config
39+%.d: %.c
40 $(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \
41 $(SED) -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@
42
5c651889
JB
43--- lm_sensors-2.8.5.orig/prog/rrd/Makefile 2002-01-05 16:39:17.000000000 +0100
44+++ lm_sensors-2.8.5/prog/rrd/Makefile 2003-07-25 23:17:50.000000000 +0200
6f93b642
JB
45@@ -22,7 +22,7 @@
46 sed -e "s#%%RRDPATH%%#$(RRDPATH)#g;s#%%APACHDIR%%#$(APACHDIR)#g;s#%%RRDDIR%%#$(RRDDIR)#g;s#%%MACH%%#$(MACH)#g" $< > $@
47
48 $(RRDDIR) :
49- install -d -o $(USER) $(RRDDIR)
50+ install -d $(RRDDIR)
51
52 $(RRDB) : $(RRDDIR)
53 ./sens_create_rrd $(RRDB)
5c651889 54@@ -38,7 +38,7 @@
6f93b642
JB
55 $(error error - Web server directory $(APACHE) not present - check APACHE definition in Makefile)
56
57 $(APACHDIR)/pix : $(APACHE)
58- install -d -o $(USER) -m 777 $(APACHDIR)/pix
59+ install -d -m 777 $(APACHDIR)/pix
3833b7e8 60
61 install: all $(RRDB) $(SENSDIR) $(CRONTAB) $(APACHDIR)/pix
5c651889 62 install -m 755 sens_update_rrd $(BINPATH)
This page took 0.367792 seconds and 4 git commands to generate.