diff options
author | Christian Heim <phreak@gentoo.org> | 2007-05-17 07:51:00 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-05-17 07:51:00 +0000 |
commit | 8357bf9d51cf20800afac03044ee3b2c5aff9105 (patch) | |
tree | c9d1185ecadb9f1930a5dac23904040976e07b50 /sys-apps | |
parent | Cleaning up FILESDIR. (diff) | |
download | gentoo-2-8357bf9d51cf20800afac03044ee3b2c5aff9105.tar.gz gentoo-2-8357bf9d51cf20800afac03044ee3b2c5aff9105.tar.bz2 gentoo-2-8357bf9d51cf20800afac03044ee3b2c5aff9105.zip |
Version bump.
(Portage version: 2.1.2.7)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/lm_sensors-modules/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.10.3 | 3 | ||||
-rw-r--r-- | sys-apps/lm_sensors-modules/lm_sensors-modules-2.10.3.ebuild | 63 |
3 files changed, 73 insertions, 1 deletions
diff --git a/sys-apps/lm_sensors-modules/ChangeLog b/sys-apps/lm_sensors-modules/ChangeLog index 38e7e19a54ea..dd411b9ee7db 100644 --- a/sys-apps/lm_sensors-modules/ChangeLog +++ b/sys-apps/lm_sensors-modules/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/lm_sensors-modules # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors-modules/ChangeLog,v 1.13 2007/05/17 07:49:09 phreak Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors-modules/ChangeLog,v 1.14 2007/05/17 07:51:00 phreak Exp $ + +*lm_sensors-modules-2.10.3 (17 May 2007) + + 17 May 2007; Christian Heim <phreak@gentoo.org> + +lm_sensors-modules-2.10.3.ebuild: + Version bump. 17 May 2007; Christian Heim <phreak@gentoo.org> -files/lm_sensors-2.10.0-module-path.patch, diff --git a/sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.10.3 b/sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.10.3 new file mode 100644 index 000000000000..4abbfd8e78f2 --- /dev/null +++ b/sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.10.3 @@ -0,0 +1,3 @@ +MD5 55d77146fbd56c205a9f81d262b9453c lm_sensors-2.10.3.tar.gz 920926 +RMD160 4a364543fbab80ccaa31e7c6de712f19882cc9f0 lm_sensors-2.10.3.tar.gz 920926 +SHA256 91c7189829491554132f86df8c8914b2f7d1a63be7011b17b323ff9da7375ca5 lm_sensors-2.10.3.tar.gz 920926 diff --git a/sys-apps/lm_sensors-modules/lm_sensors-modules-2.10.3.ebuild b/sys-apps/lm_sensors-modules/lm_sensors-modules-2.10.3.ebuild new file mode 100644 index 000000000000..55eb442544ff --- /dev/null +++ b/sys-apps/lm_sensors-modules/lm_sensors-modules-2.10.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2007 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.10.3.ebuild,v 1.1 2007/05/17 07:51:00 phreak Exp $ + +inherit eutils toolchain-funcs linux-info + +MY_PN=${PN/-modules/} +S=${WORKDIR}/${MY_PN}-${PV} + +DESCRIPTION="Hardware Monitoring kernel modules for linux-2.4.x" +HOMEPAGE="http://www.lm-sensors.org/" +SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${MY_PN}-${PV}.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_PN}-module-path.patch + epatch "${FILESDIR}"/${MY_PN}-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" +} |