Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71279 Details for
Bug 110220
lm_sensors-2.9.2 bad kernel check in ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild that works
lm_sensors-2.9.2.ebuild (text/plain), 3.93 KB, created by
Leszek
on 2005-10-23 06:14:01 UTC
(
hide
)
Description:
ebuild that works
Filename:
MIME Type:
Creator:
Leszek
Created:
2005-10-23 06:14:01 UTC
Size:
3.93 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-2.9.2.ebuild,v 1.3 2005/10/23 11:27:04 brix Exp $ > >inherit eutils flag-o-matic linux-info toolchain-funcs multilib > >DESCRIPTION="Hardware Monitoring user-space utilities" > >HOMEPAGE="http://secure.netroedge.com/~lm78/" >SRC_URI="http://secure.netroedge.com/~lm78/archive/${P}.tar.gz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~amd64 ~ppc x86" > >IUSE="sensord" >DEPEND="sys-apps/sed > ppc? ( >=virtual/linux-sources-2.5 ) > !ppc? ( || ( >=virtual/linux-sources-2.5 sys-apps/lm_sensors-modules ) )" >RDEPEND="dev-lang/perl > sensord? ( net-analyzer/rrdtool )" > >pkg_setup() { > linux-info_pkg_setup > > if kernel_is 2 4; then > if use ppc; then > eerror > eerror "${P} does not support kernel 2.4.x under PPC." > eerror > die "${P} does not support kernel 2.4.x under PPC." > elif ! has_version =sys-apps/lm_sensors-modules-${PV}; then > eerror > eerror "${P} needs sys-apps/lm_sensors-modules-${PV} to be installed" > eerror "for kernel 2.4.x" > eerror > die "sys-apps/lm_sensors-modules-${PV} not installed" > fi > else > if kernel_is lt 2 6 14 ; then > if ! (linux_chkconfig_present I2C_SENSOR); then > eerror > eerror "${P} requires CONFIG_I2C_SENSOR to be enabled for non-2.4.x kernels." > eerror > die "CONFIG_I2C_SENSOR not detected" > fi > elif ! (linux_chkconfig_present HWMON); then > eerror > eerror "${P} requires CONFIG_HWMON to be enabled for 2.6.14+ kernels." > eerror > die "CONFIG_HWMON not detected" > fi > if ! (linux_chkconfig_present I2C_CHARDEV); then > eerror > eerror "${P} requires CONFIG_I2C_CHARDEV to be enabled for non-2.4.x kernels." > eerror > die "CONFIG_I2C_CHARDEV not detected" > fi > if ! (linux_chkconfig_present I2C); then > eerror > eerror "${P} requires CONFIG_I2C to be enabled for non-2.4.x kernels." > eerror > die "CONFIG_I2C not detected" > fi > fi >} > >src_unpack() { > unpack ${A} > > cd ${S} > epatch ${FILESDIR}/${P}-sensors-detect-gentoo.patch > > if use sensord; then > sed -i -e 's:^# \(PROG_EXTRA\):\1:' ${S}/Makefile > fi >} > >src_compile() { > einfo > einfo "You may safely ignore any errors from compilation" > einfo "that contain \"No such file or directory\" references." > einfo > > filter-flags -fstack-protector > > emake CC=$(tc-getCC) LINUX=${KV_DIR} I2C_HEADERS=${KV_DIR}/include user \ > || die "emake user failed" >} > >src_install() { > emake DESTDIR=${D} PREFIX=/usr MANDIR=/usr/share/man LIBDIR=/usr/$(get_libdir) \ > KERNELINCLUDEFILES="" user_install || die "emake user_install failed" > > newinitd ${FILESDIR}/${P}-lm_sensors-init.d lm_sensors > > if use sensord; then > newconfd ${FILESDIR}/${P}-sensord-conf.d sensord > newinitd ${FILESDIR}/${P}-sensord-init.d sensord > fi > > dodoc BACKGROUND BUGS CHANGES CONTRIBUTORS INSTALL QUICKSTART \ > README* TODO > > dodoc doc/cvs doc/donations doc/fancontrol.txt doc/fan-divisors doc/FAQ \ > doc/progs doc/temperature-sensors doc/vid > > dohtml doc/lm_sensors-FAQ.html doc/useful_addresses.html > > docinto busses > dodoc doc/busses/* > > docinto chips > dodoc doc/chips/* > > docinto developers > dodoc doc/developers/applications doc/developers/design \ > doc/developers/new_drivers doc/developers/proc \ > doc/developers/sysctl doc/developers/sysfs-interface >} > >pkg_postinst() { > einfo > einfo "Next you need to run:" > einfo " /usr/sbin/sensors-detect" > einfo "to detect the I2C hardware of your system and create the file:" > einfo " /etc/conf.d/lm_sensors" > einfo > einfo "You will also need to run the above command if you're upgrading from" > einfo "<=${PN}-2.9.0, as the needed entries in /etc/conf.d/lm_sensors has" > einfo "changed." > einfo > einfo "Be warned, the probing of hardware in your system performed by" > einfo "sensors-detect could freeze your system. Also make sure you read" > einfo "the documentation before running lm_sensors on IBM ThinkPads." > einfo > einfo "Please see the lm_sensors documentation and website for more information." > einfo >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 110220
: 71279