summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-08-13 20:33:24 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-08-13 20:33:24 +0000
commit9ce58b345d4f97765a3819de5579f5c8ee2c6412 (patch)
tree47a7f4ce541ee33bcbeac1ac03bf822112791097 /sys-apps/lm-sensors
parentBump (diff)
downloadgentoo-2-9ce58b345d4f97765a3819de5579f5c8ee2c6412.tar.gz
gentoo-2-9ce58b345d4f97765a3819de5579f5c8ee2c6412.tar.bz2
gentoo-2-9ce58b345d4f97765a3819de5579f5c8ee2c6412.zip
Bump
Diffstat (limited to 'sys-apps/lm-sensors')
-rw-r--r--sys-apps/lm-sensors/ChangeLog8
-rw-r--r--sys-apps/lm-sensors/Manifest4
-rw-r--r--sys-apps/lm-sensors/files/digest-lm-sensors-2.8.01
-rw-r--r--sys-apps/lm-sensors/files/lm-sensors-2.8.0-sensors-detect-gentoo.diff128
-rw-r--r--sys-apps/lm-sensors/lm-sensors-2.8.0.ebuild114
5 files changed, 252 insertions, 3 deletions
diff --git a/sys-apps/lm-sensors/ChangeLog b/sys-apps/lm-sensors/ChangeLog
index 7afb57b58726..90f372ef90ef 100644
--- a/sys-apps/lm-sensors/ChangeLog
+++ b/sys-apps/lm-sensors/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/lm-sensors
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm-sensors/ChangeLog,v 1.4 2003/06/23 12:26:33 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm-sensors/ChangeLog,v 1.5 2003/08/13 20:33:18 lostlogic Exp $
+
+*lm-sensors-2.8.0 (13 Aug 2003)
+
+ 13 Aug 2003; Brandon Low <lostlogic@gentoo.org> lm-sensors-2.8.0.ebuild,
+ files/lm-sensors-2.8.0-sensors-detect-gentoo.diff:
+ New ebuild thanks to plasmaroo <plasmaroo@plasmaroo.squirrelserver.co.uk>
23 Jun 2003; Patrick Kursawe <phosphan@gentoo.org>
lm-sensors-2.7.0-r1.ebuild, files/2.7.0-wrong-headers.patch:
diff --git a/sys-apps/lm-sensors/Manifest b/sys-apps/lm-sensors/Manifest
index ddcfe95c59ce..f9d845399890 100644
--- a/sys-apps/lm-sensors/Manifest
+++ b/sys-apps/lm-sensors/Manifest
@@ -1,7 +1,7 @@
MD5 8a84c8b870cacd0d1b40d719b7bcae1c lm-sensors-2.7.0-r1.ebuild 2679
MD5 3b1cad58ba4278bdaf67c553efa93b1f lm-sensors-2.7.0.ebuild 2334
-MD5 4bf4d42c1d4e3d6d7eaf973888d0e780 lm-sensors-2.8.0.ebuild 4170
-MD5 04f8af52a8f9b192372bde8a1fcc1bf3 ChangeLog 3691
+MD5 a5917cbc94196dcc01f62694eaf2cf8a lm-sensors-2.8.0.ebuild 4169
+MD5 023ece9fb7b4e676fd2f1c74401e8a46 ChangeLog 3930
MD5 fe44ed8975bb07d397ae50096c8ce0a0 lm-sensors-2.6.5.ebuild 1955
MD5 e4127305c75208284e8eaa26a77888c4 files/rc 1534
MD5 265c3ccaffdf984cbd371aec994b3162 files/lm-sensors-2.8.0-sensors-detect-gentoo.diff 5173
diff --git a/sys-apps/lm-sensors/files/digest-lm-sensors-2.8.0 b/sys-apps/lm-sensors/files/digest-lm-sensors-2.8.0
new file mode 100644
index 000000000000..86a92d2c87de
--- /dev/null
+++ b/sys-apps/lm-sensors/files/digest-lm-sensors-2.8.0
@@ -0,0 +1 @@
+MD5 228d3536e51f017e45aa5f21973ced0d lm_sensors-2.8.0.tar.gz 670987
diff --git a/sys-apps/lm-sensors/files/lm-sensors-2.8.0-sensors-detect-gentoo.diff b/sys-apps/lm-sensors/files/lm-sensors-2.8.0-sensors-detect-gentoo.diff
new file mode 100644
index 000000000000..93a746b46dd6
--- /dev/null
+++ b/sys-apps/lm-sensors/files/lm-sensors-2.8.0-sensors-detect-gentoo.diff
@@ -0,0 +1,128 @@
+# plasmaroo Mon Aug 11, 10:45PM BST
+--- prog/detect/sensors-detect~ 2003-07-08 14:07:59.000000000 +0100
++++ prog/detect/sensors-detect 2003-08-11 21:25:01.000000000 +0100
+@@ -25,6 +25,14 @@
+ # each be put in a separate file, using modules and packages. That is beyond
+ # me.
+
++# Changelog
++# 02/Mar/2003, Rudo Thomas <thomr9am@ss1000.ms.mff.cuni.cz>
++# * a few small changes in config file output to reflect Gentoo Linux layout
++# - /etc/sysconfig -> /etc/conf.d
++# - /etc/rc.d/init.d -> /etc/init.d
++# - added a warning to the generated config file
++# - small change when asking about writing the new config file
++
+ require 5.004;
+
+ use strict;
+@@ -3718,38 +3726,48 @@
+ my $use_isa = not <STDIN> =~ /\s*[Ss]/;
+
+ my ($modprobes,$configfile) = generate_modprobes $use_isa;
+- print "\nTo make the sensors modules behave correctly, add these lines to either\n",
+- "/etc/modules.conf or /etc/conf.modules:\n\n";
++
++
++ print "\nIf you want to load the modules at startup, generate a config",
++ " file\n",
++ "below and make sure lm_sensors get started ",
++ "(eg. rc-update add lm_sensors default).\n";
++ print "\nTo make the sensor modules behave correctly, add these lines to\n",
++ "/etc/modules.conf:\n\n";
+ print "#----cut here----\n";
+ print $configfile;
+- print "#----cut here----\n";
+- print "\nTo load everything that is needed, add this to some /etc/rc* ",
+- "file:\n\n";
+- print "#----cut here----\n";
+- print $modprobes;
+- print "# sleep 2 # optional\n",
+- "/usr/local/bin/sensors -s # recommended\n";
+- print "#----cut here----\n";
++ print "#----end cut here----\n";
++
+ print "\nWARNING! If you have some things built into your kernel, the list above\n",
+ "will contain too many modules. Skip the appropriate ones! You really should\n",
+ "try these commands right now to make sure everything is working properly.\n",
+ "Monitoring programs won't work until it's done.\n";
+-
+- my $have_sysconfig = -d '/etc/sysconfig';
+- print "\nDo you want to generate /etc/sysconfig/lm_sensors? (".
+- ($have_sysconfig?"YES/no":"yes/NO")."): ";
+- if ($> != 0) {
+- print "\nAs you are not root, we shall skip this step.\n";
+- } else {
+- if (($have_sysconfig and not <STDIN> =~ /^\s*[Nn]/) or <STDIN> =~ /^\s*[Yy]/) {
+- unless ($have_sysconfig) {
+- mkdir '/etc/sysconfig', 0777
+- or die "Sorry, can't create /etc/sysconfig ($!)?!?";
+- }
+- open(SYSCONFIG, ">/etc/sysconfig/lm_sensors")
+- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)?!?";
+- print SYSCONFIG <<'EOT';
+-# /etc/sysconfig/sensors - Defines modules loaded by /etc/rc.d/init.d/lm_sensors
++ print "To load everything that is needed, execute the commands above...";
++
++ print "\n\n#----cut here----\n";
++ print $modprobes;
++ print "# sleep 2 # optional\n",
++ "/usr/local/bin/sensors -s # recommended\n";
++ print "#----end cut here----\n";
++
++ my $have_config = -f '/etc/conf.d/lm_sensors';
++ print "\nDo you want to ".($have_config?"overwrite":"generate").
++ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n",
++ " (".($have_config?"yes/NO":"YES/no")."/s): ";
++ my $reply = <STDIN>;
++
++ if (($have_config and $reply =~ /^\s*[Yy]/) or
++ (not $have_config and not $reply =~ /^\s*[Nn]/) or
++ $reply =~ /^\s*[Ss]/) {
++ my $filename = "/etc/conf.d/lm_sensors";
++ if ($reply =~ /^\s*[Ss]/) {
++ print "Specify the file to store the configuration to: ";
++ $filename = <STDIN>;
++ }
++ open(SYSCONFIG, ">".$filename)
++ or die "Sorry, can't create $filename ($!).";
++ print SYSCONFIG <<'EOT';
++# /etc/conf.d/sensors - Defines modules loaded by /etc/init.d/lm_sensors
+ # Copyright (c) 1998 - 2001 Frodo Looijaard <frodol@dds.nl>
+ #
+ # This program is free software; you can redistribute it and/or modify
+@@ -3766,17 +3784,20 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ #
+-#
+ # See also the lm_sensors homepage at:
+ # http://www2.lm-sensors.nu/~lm78/index.html
+ #
+-# This file is used by /etc/rc.d/init.d/lm_sensors and defines the modules to
+-# be loaded/unloaded. This file is sourced into /etc/rc.d/init.d/lm_sensors.
++# This file is used by /etc/init.d/lm_sensors and defines the modules to
++# be loaded/unloaded. This file is sourced into /etc/init.d/lm_sensors.
+ #
+ # The format of this file is a shell script that simply defines the modules
+ # in order as normal variables with the special names:
+ # MODULE_0, MODULE_1, MODULE_2, etc.
+ #
++# Please note that the numbers in MODULE_X must start at 0 and increase in
++# steps of 1. Any number that is missing will make the init script skip the
++# rest of the modules.
++#
+ # List the modules that are to be loaded for your system
+ #
+ EOT
+@@ -3792,9 +3813,7 @@
+ }
+ print SYSCONFIG $sysconfig;
+ close(SYSCONFIG);
+- print "Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors\n";
+- print "for initialization at boot time.\n";
+- }
++ print "Done.\n";
+ }
+ }
+
diff --git a/sys-apps/lm-sensors/lm-sensors-2.8.0.ebuild b/sys-apps/lm-sensors/lm-sensors-2.8.0.ebuild
new file mode 100644
index 000000000000..4874246ebbc8
--- /dev/null
+++ b/sys-apps/lm-sensors/lm-sensors-2.8.0.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm-sensors/lm-sensors-2.8.0.ebuild,v 1.1 2003/08/13 20:33:18 lostlogic Exp $
+
+inherit flag-o-matic
+
+MY_P=${PN/-/_}-${PV}
+S="${WORKDIR}/${MY_P}"
+MYI2C="${WORKDIR}/i2c-headers"
+
+DESCRIPTION="Hardware Sensors Monitoring by lm_sensors"
+SRC_URI="http://www.lm-sensors.nu/archive/${MY_P}.tar.gz"
+HOMEPAGE="http://www2.lm-sensors.nu/~lm78"
+
+SLOT="0"
+# gentoo-sources-2.4.20-r1 and xfs-sources-2.4.20-r1 will
+# have support for this package, do not change these to ~
+# until your arch has i2c-2.7.0 in it's kernel.
+KEYWORDS="~x86 ~amd64 -ppc -sparc"
+LICENSE="GPL-2"
+
+DEPEND=">=sys-apps/i2c-2.8.0"
+
+src_unpack() {
+ unpack ${A} || die
+ cd ${S} || die
+ epatch ${FILESDIR}/${P}-sensors-detect-gentoo.diff || die
+
+ # get the right i2c includes without dropping the kernel includes
+ mkdir -p ${MYI2C}/linux
+ cp /usr/include/linux/i2c* ${MYI2C}/linux/
+}
+
+src_compile() {
+ echo
+ einfo "*****************************************************************"
+ einfo
+ einfo "This ebuild assumes your /usr/src/linux kernel is the one you"
+ einfo "used to build i2c-2.8.0. and is >=2.4.9 && < 2.5+"
+ einfo
+ einfo "For 2.5+ series kernels, use the support already in the kernel"
+ einfo "under 'Character devices' -> 'I2C support'."
+ einfo
+ einfo "To cross-compile, 'export LINUX=\"/lib/modules/<version>/build\"'"
+ einfo "or symlink /usr/src/linux to another kernel."
+ einfo
+ einfo "*****************************************************************"
+ echo
+
+ if [ "$LINUX" != "" ]; then
+ einfo "Cross-compiling using:- $LINUX"
+ einfo "Using headers from:- `echo $LINUX/include/linux | sed 's/\/\//\//'`"
+ LINUX=`echo $LINUX | sed 's/build\//build/'`
+ else
+ einfo "You are running:- `uname -r`"
+ check_KV || die "Cannot find kernel in /usr/src/linux"
+ einfo "Using kernel in /usr/src/linux/:- ${KV}"
+
+ echo ${KV} | grep 2.4. > /dev/null
+ if [ $? == 1 ]; then
+ eerror "Kernel version in /usr/src/linux is not 2.4.x"
+ eerror "Please specify a 2.4.x kernel!"
+ die "Incompatible Kernel"
+ else
+ LINUX='/usr/src/linux'
+ fi
+
+ if [ "${KV}" != "`uname -r`" ]; then
+ ewarn "WARNING:- kernels do not match!"
+ fi
+ fi
+
+ echo
+ sleep 2
+
+ check_KV
+ filter-flags -fPIC
+
+ cd ${S}
+ emake clean
+ emake I2C_HEADERS=${MYI2C} LINUX=$LINUX || die "lm_sensors requires the source of a compatible kernel version in /usr/src/linux or specified in \$LINUX and >=i2c-2.8.0 support built as modules. This support is included in gentoo-sources as of 2.4.20-r1"
+}
+
+src_install() {
+
+ einstall LINUX=$LINUX DESTDIR=${D} PREFIX=/usr MANDIR=/usr/share/man || die "Install failed"
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/rc lm_sensors
+
+}
+
+pkg_postinst() {
+ [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules
+
+ einfo
+ einfo "The lm_sensors hardware sensors package has been installed."
+ einfo
+ einfo "It is recommended that you read the lm_sensors documentation."
+ einfo "To enable lm_sensors you will need to compile i2c support in"
+ einfo "your kernel as a module and run /usr/sbin/sensors-detect to"
+ einfo "detect the hardware in your system."
+ einfo
+ einfo "Be warned, the probing of hardware in your system performed by"
+ einfo "sensors-detect could freeze your system. Also do not use"
+ einfo "lm_sensors on certain laptop models from IBM. See the lm_sensors"
+ einfo "documentation and website for more information."
+ einfo
+ einfo "IMPORTANT: When you merge this package it installs kernel modules"
+ einfo "that can only be used with the specific kernel version whose"
+ einfo "source is located in /usr/src/linux. If you upgrade to a new"
+ einfo "kernel, you will need to remerge the lm_sensors package to build"
+ einfo "new kernel modules."
+ einfo
+}