diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-12-28 00:00:03 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-12-28 00:00:03 +0000 |
commit | 710bbd3a190bbbae42b4417f27b8cd10cb622a9b (patch) | |
tree | bd735de77c71f5ddec6af99db6d8fa2fa823a82b /sys-apps/lm_sensors | |
parent | Version bump. (diff) | |
download | gentoo-2-710bbd3a190bbbae42b4417f27b8cd10cb622a9b.tar.gz gentoo-2-710bbd3a190bbbae42b4417f27b8cd10cb622a9b.tar.bz2 gentoo-2-710bbd3a190bbbae42b4417f27b8cd10cb622a9b.zip |
Update init scripts to use the new short form.
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'sys-apps/lm_sensors')
-rw-r--r-- | sys-apps/lm_sensors/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/lm_sensors/files/fancontrol-init.d-2 | 23 | ||||
-rw-r--r-- | sys-apps/lm_sensors/files/sensord-4-init.d | 22 | ||||
-rw-r--r-- | sys-apps/lm_sensors/lm_sensors-3.3.3-r1.ebuild | 103 |
4 files changed, 156 insertions, 1 deletions
diff --git a/sys-apps/lm_sensors/ChangeLog b/sys-apps/lm_sensors/ChangeLog index 0f9ac6456bae..be526c83f81c 100644 --- a/sys-apps/lm_sensors/ChangeLog +++ b/sys-apps/lm_sensors/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/lm_sensors # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.131 2012/11/29 14:35:48 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.132 2012/12/28 00:00:03 flameeyes Exp $ + +*lm_sensors-3.3.3-r1 (28 Dec 2012) + + 28 Dec 2012; Diego E. Pettenò <flameeyes@gentoo.org> + +files/fancontrol-init.d-2, +files/sensord-4-init.d, + +lm_sensors-3.3.3-r1.ebuild: + Update init scripts to use the new short form. *lm_sensors-3.3.3 (29 Nov 2012) diff --git a/sys-apps/lm_sensors/files/fancontrol-init.d-2 b/sys-apps/lm_sensors/files/fancontrol-init.d-2 new file mode 100644 index 000000000000..51857a1f751d --- /dev/null +++ b/sys-apps/lm_sensors/files/fancontrol-init.d-2 @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d-2,v 1.1 2012/12/28 00:00:03 flameeyes Exp $ + +CONFIG=/etc/fancontrol + +depend() { + need localmount + use lm_sensors +} + +command=/usr/sbin/fancontrol +command_arguments="${CONFIG}" +start_stop_daemon_args="--background" +pidfile=/var/run/fancontrol.pid + +start_pre() { + if [ ! -f ${CONFIG} ]; then + eerror "Configuration file ${CONFIG} not found" + return 1 + fi +} diff --git a/sys-apps/lm_sensors/files/sensord-4-init.d b/sys-apps/lm_sensors/files/sensord-4-init.d new file mode 100644 index 000000000000..9cdbcedc83ae --- /dev/null +++ b/sys-apps/lm_sensors/files/sensord-4-init.d @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/sensord-4-init.d,v 1.1 2012/12/28 00:00:03 flameeyes Exp $ + +CONFIG=/etc/sensors3.conf + +depend() { + need localmount + use logger lm_sensors +} + +command=/usr/sbin/sensorsd +command_arguments="--config-file ${CONFIG} ${SENSORSD_OPTIONS}" +pidfile=/var/run/sensorsd.pid + +start_pre() { + if [ ! -f ${CONFIG} ]; then + eerror "Configuration file ${CONFIG} not found" + return 1 + fi +} diff --git a/sys-apps/lm_sensors/lm_sensors-3.3.3-r1.ebuild b/sys-apps/lm_sensors/lm_sensors-3.3.3-r1.ebuild new file mode 100644 index 000000000000..7037f0825549 --- /dev/null +++ b/sys-apps/lm_sensors/lm_sensors-3.3.3-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2012 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.3.3-r1.ebuild,v 1.1 2012/12/28 00:00:03 flameeyes Exp $ + +EAPI=5 + +inherit eutils 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 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="sensord static-libs" + +RDEPEND="dev-lang/perl + sensord? ( + net-analyzer/rrdtool + virtual/logger + )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex" + +CONFIG_CHECK="~HWMON ~I2C_CHARDEV ~I2C" +WARNING_HWMON="${PN} requires CONFIG_HWMON to be enabled for use." +WARNING_I2C_CHARDEV="sensors-detect requires CONFIG_I2C_CHARDEV to be enabled." +WARNING_I2C="${PN} requires CONFIG_I2C to be enabled for most sensors." + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.3.1-sensors-detect-gentoo.patch + + use sensord && { sed -i -e 's:^#\(PROG_EXTRA.*\):\1:' Makefile || die; } + + # Respect LDFLAGS + sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile || die + + use static-libs || { sed -i -e '/^BUILD_STATIC_LIB/d' Makefile || die; } +} + +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)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + MANDIR="${EPREFIX}/usr/share/man" \ + ETCDIR="${EPREFIX}/etc" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + newinitd "${FILESDIR}"/${PN}-3-init.d ${PN} + newinitd "${FILESDIR}"/fancontrol-init.d fancontrol + + if use sensord; then + newconfd "${FILESDIR}"/sensord-conf.d sensord + newinitd "${FILESDIR}"/sensord-3-init.d sensord + fi + + dodoc CHANGES CONTRIBUTORS INSTALL README \ + doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid} + + 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/${PN}." + elog + elog "/etc/conf.d/${PN} is vital to the init-script." + elog "Please make sure you also add ${PN} 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/${PN} 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 ${PN} on IBM ThinkPads." + elog + elog "Also make sure you have read:" + elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31" + elog + elog "Please refer to the ${PN} documentation for more information." + elog "(http://www.lm-sensors.org/wiki/Documentation)" + elog +} |