diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-09-06 21:06:02 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-09-06 21:06:02 +0000 |
commit | 1e802df02d12d4867b893fb2fa81ea96c1bf9c76 (patch) | |
tree | 736b41cb27274b01384b5b064daffa1b61cb1815 /sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.2.ebuild | |
parent | Version bump, thanks Glenn L. McGrath <bug1@iinet.net.au> in bug #104103 (diff) | |
download | gentoo-2-1e802df02d12d4867b893fb2fa81ea96c1bf9c76.tar.gz gentoo-2-1e802df02d12d4867b893fb2fa81ea96c1bf9c76.tar.bz2 gentoo-2-1e802df02d12d4867b893fb2fa81ea96c1bf9c76.zip |
Version bump.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.2.ebuild')
-rw-r--r-- | sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.2.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.2.ebuild b/sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.2.ebuild new file mode 100644 index 000000000000..b74c5197096f --- /dev/null +++ b/sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.2.ebuild @@ -0,0 +1,63 @@ +# 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-modules/lm_sensors-modules-2.9.2.ebuild,v 1.1 2005/09/06 21:04:02 brix Exp $ + +inherit eutils toolchain-funcs linux-info + +MY_P=${P/-modules/} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Hardware Monitoring kernel modules for linux-2.4.x" +HOMEPAGE="http://secure.netroedge.com/~lm78/" +SRC_URI="http://secure.netroedge.com/~lm78/archive/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 -ppc ~x86" + +IUSE="" +DEPEND="sys-apps/i2c" + +pkg_setup() { + linux-info_pkg_setup + + if kernel_is lt 2 4 10; then + eerror "${P} requires kernel 2.4.10 or later" + die "${P} requires kernel 2.4.10 or later" + fi + + if kernel_is gt 2 4; then + eerror "${P} is only needed for kernel 2.4.x" + eerror "You need to use the in-kernel I2C drivers for later kernels." + die "Non 2.4.x kernel detected" + fi + + if linux_chkconfig_present I2C; then + eerror "${P} requires kernel CONFIG_I2C to be disabled." + die "Kernel with CONFIG_I2C detected" + fi +} + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${MY_P}-module-path.patch + epatch ${FILESDIR}/${MY_P}-modules-only.patch +} + +src_compile() { + einfo + einfo "You may safely ignore any errors from compilation" + einfo "that contain \"No such file or directory\" references." + einfo + + emake CC=$(tc-getCC) LINUX=${KV_DIR} I2C_HEADERS=${KV_DIR}/include \ + || die "emake failed" +} + +src_install() { + emake CC=$(tc-getCC) \ + LINUX=${KV_DIR} MODPREF=/lib/modules/${KV_FULL} DESTDIR=${D} install \ + || die "emake install failed" +} |