Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903 - lm_sensors-2.6.2 ebuild
Summary: lm_sensors-2.6.2 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Bruce A. Locke (RETIRED)
URL: http://www.netroedge.com/~lm78
Whiteboard:
Keywords:
: 1268 (view as bug list)
Depends on: 902
Blocks:
  Show dependency tree
 
Reported: 2002-02-28 23:50 UTC by Troy Dack
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lm_sensors-2.6.2 ebuild (lm_sensors-2.6.2.ebuild,1.11 KB, text/plain)
2002-02-28 23:51 UTC, Troy Dack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Dack 2002-02-28 23:50:57 UTC
An ebuild for lm_sensors-2.6.2.

Note:
     This also requires an new version of the  sensors-detect  script
     to correctly detect the required modules.

     The new script is available at:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/prog/detect/sensors-detect

     I do not know how to include this in the .ebuild

     The new script should be placed in the following directory of the 
unpacked source (overwriting the one that will be in there):

${WORKDIR}/{$A}/prog/detect
Comment 1 Troy Dack 2002-02-28 23:51:33 UTC
Created attachment 263 [details]
lm_sensors-2.6.2 ebuild
Comment 2 Troy Dack 2002-03-01 04:03:15 UTC
Fixed!  Attached ebuild below fixes sensors-detect script problem I was having.
Updated script is now installed.

Thanks to woodchip (via IRC)

Comment 3 Troy Dack 2002-03-01 04:07:54 UTC
Since bugzilla doesn't want to take the file from Konq:

-- Begin Cut Here --
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: First Last <your email>
# Author: The Lm_sensors Group <sensors@stimpy.netroedge.com>
# $Header: /home/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 
gbevin Exp $

S=${WORKDIR}/${P}

DESCRIPTION="lm_sensos for temperature and voltage monitoring"

SRC_URI="http://www.lm-sensors.nu/archive/${P}.tar.gz 
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/prog/detect/sensors-detect"

HOMEPAGE="http://www.netroedge.com/~lm78/"

DEPEND=">=sys-kernel/linux-sources-2.4.13
	=sys-apps/i2c-2.6.2"

src_unpack () {
	unpack ${P}.tar.gz
	cp ${DISTDIR}/sensors-detect ${S}/prog/detect/
}

src_compile() {
	emake || die
}

src_install () {
	make DESTDIR=${D} install || die
}

pkg_postinst () {
	
	depmod -a || die
	ldconfig || die
	
	einfo "********************************************************"
	einfo ""
	einfo "You need to run /usr/local/sbin/sensors-detect to probe your"
	einfo "system and choose the right modules."
	einfo ""
	einfo "********************************************************"
}

-- End Cut Here --
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-17 01:38:59 UTC
*** Bug 1268 has been marked as a duplicate of this bug. ***
Comment 5 Troy Dack 2002-04-20 03:36:14 UTC
The latest lm_sensors is 2.6.3, updating the ebuild will need this:

--- lm_sensors-2.6.2.ebuild     Tue Mar 19 18:14:24 2002
+++ lm_sensors-2.6.3.ebuild     Thu Apr 18 13:51:03 2002
@@ -9,16 +9,14 @@

 DESCRIPTION="lm_sensos for temperature and voltage monitoring"

-SRC_URI="http://www.lm-sensors.nu/archive/${P}.tar.gz
-http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/prog/detect/sensors-detect"
+SRC_URI="http://www.lm-sensors.nu/archive/${P}.tar.gz"

 HOMEPAGE="http://www.netroedge.com/~lm78/"

-DEPEND=">=sys-kernel/linux-sources-2.4.17 =sys-apps/i2c-2.6.2"
+DEPEND=">=sys-kernel/linux-sources-2.4.17 =sys-apps/i2c-2.6.3"

 src_unpack () {
         unpack ${P}.tar.gz
-        cp ${DISTDIR}/sensors-detect ${S}/prog/detect/
 }

 src_compile() {
Comment 6 Brandon Low (RETIRED) gentoo-dev 2002-04-22 17:12:53 UTC
why are we depending on i2c, the kernel i2c works fine and simplifies the 
process immensely... ???
Comment 7 Brandon Low (RETIRED) gentoo-dev 2002-04-23 12:02:38 UTC
updated to use the virtual kernel depend and not be have a silly bunch of extra
code (actually this is based on my previous ebuild but they are very similar)
http://www.lostlogicx.com/ebuilds/lm_sensors-2.6.3.tar.gz
Comment 8 Bruce A. Locke (RETIRED) gentoo-dev 2002-04-27 19:44:43 UTC
Checked in as sys-apps/lm_sensors

Sorry for the delay