# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="6" inherit linux-info systemd toolchain-funcs multilib-minimal DESCRIPTION="Hardware Monitoring user-space utilities" HOMEPAGE="http://www.lm-sensors.org/ https://github.com/groeck/lm-sensors" COMMIT="45ffa15cf02e63f70ff3b85c23e22dfbab7e8f9c" MY_PN="${PN/_/-}" #SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${P}.tar.bz2" SRC_URI="https://github.com/groeck/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2+ LGPL-2.1" # SUBSLOT based on SONAME of libsensors.so SLOT="0/4.4.0" KEYWORDS="alpha amd64 arm ~mips ~ppc ~ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux" IUSE="sensord static-libs" COMMON_DEPS=" sensord? ( net-analyzer/rrdtool virtual/logger )" RDEPEND="${COMMON_DEPS} dev-lang/perl !\", \"HWMON_MODULES\" or \"BUS_MODULES\"" elog " variables from \"/etc/conf.d/lm_modules\" to" elog " \"/etc/modules-load.d/lm_sensors.conf\" and adjust format." elog "" elog " For details see https://wiki.gentoo.org/wiki/Systemd#Automatic_module_loading" elog "" elog " Important: Don't forget to migrate your module's argument" elog " (modules__args variable) if your are not already" elog " using \"/etc/modprobe.d\" (which is recommended)." # Show this elog only once break fi done if [[ -z "${REPLACING_VERSIONS}" ]]; then # New installation elog "" elog "Please run \`/usr/sbin/sensors-detect' in order to setup" elog "\"/etc/modules-load.d/lm_sensors.conf\"." elog "" elog "You might want to add ${PN} to your default runlevel to make" elog "sure the sensors get initialized on the next startup." 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." fi }