Commit Graph
20 Commits
Author SHA1 Message Date
Mark D. Studebaker 64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Mark D. Studebaker 8de677db34 pwmconfig: write fan dependency to config file
fancontrol: monitor fan speed;
		trap signal and restore fans on trap;
		check read/write results and abort if fail;
		support 2.6 kernels;
		remove DEBUG=1


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2188 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-20 22:35:23 +00:00
Mark D. Studebaker ba972d7b0a initial 2.6 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2187 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-20 18:40:39 +00:00
Marius Reiner 77d38d9fe9 (marius) bugfix
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2183 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-16 00:58:46 +00:00
Marius Reiner 324c738f9c (marius) optimization
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2182 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-16 00:49:59 +00:00
Mark D. Studebaker 5dee16319e more fixes and improvements
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2178 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-15 03:50:09 +00:00
Mark D. Studebaker d1e20b9e27 improvements
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2177 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 19:19:52 +00:00
Mark D. Studebaker 270bd02b4f add DESTDIR. patch from
Sergey Vlasov <vsu@altlinux.ru>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2164 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 23:08:58 +00:00
Mark D. Studebaker bdebe88c28 handle multiple fans controlled by a single PWM
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2048 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-09 02:32:08 +00:00
Mark D. Studebaker d1c97266db remove burntest
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2030 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-28 01:41:47 +00:00
Mark D. Studebaker 9728b298e3 add more programs installed in /usr/local/sbin
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2026 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-27 01:26:44 +00:00
Marius Reiner 6765e3fc46 (marius) comments
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2007 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-09-28 20:02:36 +00:00
Marius Reiner 8ecd48f56c (marius) Changed URL to SpeedFan hardware database
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1892 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-21 17:07:01 +00:00
Jean Delvare 52720d826f Prevent hang after config file creation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1891 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-21 13:07:15 +00:00
Marius Reiner cb87834e01 (marius) removed pwmtest, pwmconfig takes over the pwm related stuff
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1858 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-05 16:16:03 +00:00
Marius Reiner 0e1d5df3ef (marius) added URL to project page (documentation)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1856 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-05 16:00:20 +00:00
Marius Reiner eb4c9aa2d1 (marius) added some comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1815 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 20:57:49 +00:00
Marius Reiner 2d5e514e91 Added PID file creation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1798 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 14:04:39 +00:00
Marius Reiner 313a183bb3 *** empty log message ***
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1796 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-20 19:51:26 +00:00
Mark D. Studebaker f68a197dcc simple PWM test shell script
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1682 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-01 23:55:20 +00:00