From 731ecf3db3eba765d094e3e4affc6f8f1d1c942c Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Fri, 5 Mar 2004 04:16:00 +0000 Subject: [PATCH] remove root uid/gid from install in Makefiles git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2335 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/hotplug/Makefile | 2 +- prog/rrd/Makefile | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/prog/hotplug/Makefile b/prog/hotplug/Makefile index 75af9911..1aa4b896 100644 --- a/prog/hotplug/Makefile +++ b/prog/hotplug/Makefile @@ -18,7 +18,7 @@ all: $(OBJS) $(CC) $(CFLAGS) -c $< -o $@ install: all - install -o root -g root -m 644 $(OBJS) /lib/modules/$(VER)/kernel/drivers/i2c/busses + install -m 644 $(OBJS) /lib/modules/$(VER)/kernel/drivers/i2c/busses clean: rm -f $(OBJS) diff --git a/prog/rrd/Makefile b/prog/rrd/Makefile index 850984c7..46ad79ba 100644 --- a/prog/rrd/Makefile +++ b/prog/rrd/Makefile @@ -1,14 +1,14 @@ # # Edit the following for your setup # -USER=httpd +USER=apache #CRONTAB=/var/spool/cron/tabs/$(USER) RRDPATH=/usr/local/rrdtool/bin BINPATH=/usr/local/bin RRDDIR=/var/lib/sensors-rrd -APACHE=/usr/local/apache/htdocs +APACHE=/var/www/html APACHDIR=$(APACHE)/senspix -SENSDEV=w83781d-isa-0290 +SENSDEV=bmc-ipmi-0000 MACH=`uname -n` # # Everything below here should be fine @@ -41,10 +41,10 @@ $(APACHDIR)/pix : $(APACHE) install -d -o $(USER) -m 777 $(APACHDIR)/pix install: all $(RRDB) $(SENSDIR) $(CRONTAB) $(APACHDIR)/pix - install -o root -g root -m 755 sens_update_rrd $(BINPATH) - install -o root -g root -m 755 sens_week.cgi $(APACHDIR) - install -o root -g root -m 755 sens_day.cgi $(APACHDIR) - install -o root -g root -m 755 summ_week.cgi $(APACHDIR) + install -m 755 sens_update_rrd $(BINPATH) + install -m 755 sens_week.cgi $(APACHDIR) + install -m 755 sens_day.cgi $(APACHDIR) + install -m 755 summ_week.cgi $(APACHDIR) # grep sens_update_rrd $(CRONTAB) > /dev/null 2>&1 || echo '*/5 * * * * /usr/local/bin/sens_update_rrd' $(RRDB) $(SENSDEV) >> $(CRONTAB) @echo @echo Note!!! You must manually install the following line in the crontab for user $(USER):