summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2008-07-01 20:32:59 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2008-07-01 20:32:59 +0000
commita9fc7e7173da588f4a10b7659fd9d37cb795f822 (patch)
treee56795b2b38436b766a75351cce846a1bc513a8e /sys-apps/lm_sensors
parentamd64 stable, bug #219670 (diff)
downloadgentoo-2-a9fc7e7173da588f4a10b7659fd9d37cb795f822.tar.gz
gentoo-2-a9fc7e7173da588f4a10b7659fd9d37cb795f822.tar.bz2
gentoo-2-a9fc7e7173da588f4a10b7659fd9d37cb795f822.zip
Bump.
(Portage version: 2.1.5.6)
Diffstat (limited to 'sys-apps/lm_sensors')
-rw-r--r--sys-apps/lm_sensors/ChangeLog8
-rw-r--r--sys-apps/lm_sensors/lm_sensors-3.0.2.ebuild117
2 files changed, 124 insertions, 1 deletions
diff --git a/sys-apps/lm_sensors/ChangeLog b/sys-apps/lm_sensors/ChangeLog
index 556578368a8c..205fa1d1c045 100644
--- a/sys-apps/lm_sensors/ChangeLog
+++ b/sys-apps/lm_sensors/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/lm_sensors
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.84 2008/05/18 18:54:11 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.85 2008/07/01 20:32:59 dberkholz Exp $
+
+*lm_sensors-3.0.2 (01 Jul 2008)
+
+ 01 Jul 2008; Donnie Berkholz <dberkholz@gentoo.org>;
+ +lm_sensors-3.0.2.ebuild:
+ Bump.
18 May 2008; Raúl Porcel <armin76@gentoo.org> lm_sensors-2.10.4.ebuild:
alpha stable
diff --git a/sys-apps/lm_sensors/lm_sensors-3.0.2.ebuild b/sys-apps/lm_sensors/lm_sensors-3.0.2.ebuild
new file mode 100644
index 000000000000..1001da9758f1
--- /dev/null
+++ b/sys-apps/lm_sensors/lm_sensors-3.0.2.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.0.2.ebuild,v 1.1 2008/07/01 20:32:59 dberkholz Exp $
+
+inherit eutils flag-o-matic linux-info toolchain-funcs multilib
+
+DESCRIPTION="Hardware Monitoring user-space utilities"
+
+HOMEPAGE="http://www.lm-sensors.org/"
+SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+IUSE="sensord"
+
+COMMON="sensord? ( net-analyzer/rrdtool )"
+DEPEND="${COMMON}
+ sys-apps/sed"
+RDEPEND="${COMMON}
+ dev-lang/perl
+ virtual/logger"
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if ! linux_chkconfig_present HWMON; then
+ eerror
+ eerror "${P} requires CONFIG_HWMON to be enabled."
+ eerror
+ die "CONFIG_HWMON not detected"
+ fi
+ if ! linux_chkconfig_present I2C_CHARDEV; then
+ ewarn
+ ewarn "sensors-detect requires CONFIG_I2C_CHARDEV to be enabled."
+ ewarn
+ fi
+ if ! linux_chkconfig_present I2C; then
+ ewarn
+ ewarn "${P} requires CONFIG_I2C to be enabled for most sensors."
+ ewarn
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-3.0.1-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) \
+ || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man LIBDIR=/usr/$(get_libdir) \
+ install || die "emake install failed"
+
+ newinitd "${FILESDIR}"/lm_sensors-3-init.d lm_sensors
+ newinitd "${FILESDIR}"/fancontrol-init.d fancontrol
+
+ if use sensord; then
+ newconfd "${FILESDIR}"/sensord-conf.d sensord
+ newinitd "${FILESDIR}"/sensord-init.d sensord
+ fi
+
+ dodoc BACKGROUND BUGS CHANGES CONTRIBUTORS INSTALL QUICKSTART \
+ README* TODO
+
+ dodoc 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 chips
+ dodoc doc/chips/*
+
+ docinto developers
+ dodoc doc/developers/applications
+}
+
+pkg_postinst() {
+ elog
+ elog "Please run \`/usr/sbin/sensors-detect' in order to setup"
+ elog "/etc/conf.d/lm_sensors."
+ elog
+ elog "/etc/conf.d/lm_sensors is vital to the init-script."
+ elog "Please make sure you also add lm_sensors to the desired"
+ elog "runlevel. Otherwise your I2C modules won't get loaded"
+ elog "on the next startup."
+ elog
+ elog "You will also need to run the above command if you're upgrading from"
+ elog "<=${PN}-2, as the needed entries in /etc/conf.d/lm_sensors has"
+ elog "changed."
+ elog
+ elog "Be warned, the probing of hardware in your system performed by"
+ elog "sensors-detect could freeze your system. Also make sure you read"
+ elog "the documentation before running lm_sensors on IBM ThinkPads."
+ elog
+ elog "Please refer to the lm_sensors documentation for more information."
+ elog "(http://www.lm-sensors.org/wiki/Documentation)"
+ elog
+}