# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="6" inherit linux-info systemd toolchain-funcs multilib-minimal DESCRIPTION="Hardware Monitoring user-space utilities" HOMEPAGE="https://hwmon.wiki.kernel.org/ https://github.com/groeck/lm-sensors" COMMIT="83cafd29f28d463573750d897014ec7143217ae5" 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 ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" IUSE="contrib 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 }