# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit linux-info systemd toolchain-funcs multilib-minimal DESCRIPTION="Hardware Monitoring user-space utilities" HOMEPAGE="https://hwmon.wiki.kernel.org/ https://github.com/lm-sensors/lm-sensors" if [[ "${PV}" =~ .*_p[[:digit:]]{8}.* ]] ; then COMMIT="2c8cca3d6cd60121b401734c1a24cfec7daed4fc" SRC_URI="https://github.com/lm-sensors/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${PN}-${COMMIT}" else SRC_URI="https://github.com/lm-sensors/lm-sensors/archive/V$(ver_rs 1- -).tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${PN}-$(ver_rs 1- -)" fi LICENSE="GPL-2+ LGPL-2.1" # SUBSLOT based on SONAME of libsensors.so SLOT="0/5.0.0" KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" IUSE="contrib selinux 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 lm_sensors 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." fi }