From 61841bdeeb325ac23fa36ccaff002f19d6a903c3 Mon Sep 17 00:00:00 2001 From: Stuart Shelton Date: Sat, 24 Mar 2018 09:21:08 +0000 Subject: Remove obsolete lm_sensors ebuilds with no remaining upstream downloads --- sys-apps/lm_sensors/files/fancontrol-init.d-2 | 23 ---- sys-apps/lm_sensors/files/fancontrol.service | 9 -- sys-apps/lm_sensors/files/lm_sensors-3-init.d | 104 ----------------- .../lm_sensors-3.3.1-sensors-detect-gentoo.patch | 129 --------------------- .../lm_sensors-3.3.4-sensors-detect-gentoo.patch | 118 ------------------- .../lm_sensors-3.3.5-sensors-detect-gentoo.patch | 120 ------------------- sys-apps/lm_sensors/files/sensord-3-init.d | 33 ------ sys-apps/lm_sensors/files/sensord-4-init.d | 21 ---- sys-apps/lm_sensors/files/sensord-conf.d | 3 - sys-apps/lm_sensors/files/sensord.service | 9 -- sys-apps/lm_sensors/lm_sensors-3.3.3-r3.ebuild | 111 ------------------ sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild | 109 ----------------- sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild | 109 ----------------- sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild | 109 ----------------- 14 files changed, 1007 deletions(-) delete mode 100644 sys-apps/lm_sensors/files/fancontrol-init.d-2 delete mode 100644 sys-apps/lm_sensors/files/fancontrol.service delete mode 100644 sys-apps/lm_sensors/files/lm_sensors-3-init.d delete mode 100644 sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch delete mode 100644 sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch delete mode 100644 sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch delete mode 100644 sys-apps/lm_sensors/files/sensord-3-init.d delete mode 100644 sys-apps/lm_sensors/files/sensord-4-init.d delete mode 100644 sys-apps/lm_sensors/files/sensord-conf.d delete mode 100644 sys-apps/lm_sensors/files/sensord.service delete mode 100644 sys-apps/lm_sensors/lm_sensors-3.3.3-r3.ebuild delete mode 100644 sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild delete mode 100644 sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild delete mode 100644 sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild diff --git a/sys-apps/lm_sensors/files/fancontrol-init.d-2 b/sys-apps/lm_sensors/files/fancontrol-init.d-2 deleted file mode 100644 index 1d39d639..00000000 --- a/sys-apps/lm_sensors/files/fancontrol-init.d-2 +++ /dev/null @@ -1,23 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id: 22d191b0f0838105258b4cfb6ed7d088ab3fd539 $ - -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/fancontrol.service b/sys-apps/lm_sensors/files/fancontrol.service deleted file mode 100644 index c86b498f..00000000 --- a/sys-apps/lm_sensors/files/fancontrol.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Fan control daemon - -[Service] -PIDFile=/var/run/fancontrol.pid -ExecStart=/usr/sbin/fancontrol - -[Install] -WantedBy=multi-user.target diff --git a/sys-apps/lm_sensors/files/lm_sensors-3-init.d b/sys-apps/lm_sensors/files/lm_sensors-3-init.d deleted file mode 100644 index 461d1ede..00000000 --- a/sys-apps/lm_sensors/files/lm_sensors-3-init.d +++ /dev/null @@ -1,104 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -checkconfig() { - if [ ! -f /etc/conf.d/lm_sensors ]; then - eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect" - return 1 - fi - - if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then - if [ -z "${MODULE_0}" ]; then - eerror "MODULE_0 is not set in /etc/conf.d/lm_sensors, try running sensors-detect" - return 1 - fi - fi -} - -start() { - checkconfig || return 1 - - if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then - einfo "Loading lm_sensors modules..." - - mount | grep sysfs >/dev/null 2>&1 - if [ ${?} = 0 ]; then - if ! ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ); then - ebegin " Loading i2c-core" - modprobe i2c-core >/dev/null 2>&1 - if [ ${?} != 0 ]; then - eerror " Could not load i2c-core!" - eend 1 - fi - ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ) || return 1 - eend 0 - fi - elif ! [ -e /proc/sys/dev/sensors ]; then - ebegin " Loading i2c-proc" - modprobe i2c-proc >/dev/null 2>&1 - if [ ${?} != 0 ]; then - eerror " Could not load i2c-proc!" - eend 1 - fi - [ -e /proc/sys/dev/sensors ] || return 1 - eend 0 - fi - - i=0 - while true; do - module=`eval echo '$'MODULE_${i}` - module_args=`eval echo '$'MODULE_${i}_ARGS` - if [ -z "${module}" ]; then - break - fi - ebegin " Loading ${module}" - modprobe ${module} ${module_args} >/dev/null 2>&1 - eend $? - i=$(($i+1)) - done - fi - - if [ "${INITSENSORS}" = "yes" ]; then - if ! [ -f /etc/sensors3.conf ]; then - eerror "/etc/sensors3.conf does not exist!" - return 1 - fi - - ebegin "Initializing sensors" - /usr/bin/sensors -s >/dev/null 2>&1 - eend ${?} - fi -} - -stop() { - checkconfig || return 1 - - if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then - einfo "Unloading lm_sensors modules..." - - # find the highest possible MODULE_ number - i=0 - while true; do - module=`eval echo '$'MODULE_${i}` - if [ -z "${module}" ] ; then - break - fi - i=$(($i+1)) - done - - while [ ${i} -gt 0 ]; do - i=$(($i-1)) - module=`eval echo '$'MODULE_${i}` - ebegin " Unloading ${module}" - rmmod ${module} >/dev/null 2>&1 - eend $? - done - - if [ -e /proc/sys/dev/sensors ] ; then - ebegin " Unloading i2c-proc" - rmmod i2c-proc >/dev/null 2>&1 - eend $? - fi - fi -} diff --git a/sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch b/sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch deleted file mode 100644 index 58772f21..00000000 --- a/sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch +++ /dev/null @@ -1,129 +0,0 @@ ---- lm_sensors-3.3.1/prog/detect/sensors-detect -+++ lm_sensors-3.3.1/prog/detect/sensors-detect -@@ -20,6 +20,9 @@ - # MA 02110-1301 USA. - # - -+# Gentoo specific modifications based on a patch from Rudo Thomas -+# -+ - require 5.004; - - use strict; -@@ -6471,26 +6474,33 @@ - print MODPROBE_D $configfile; - close(MODPROBE_D); - } else { -+ print "\nIf you want to load the modules at startup, generate a config file\n", -+ "below and make sure lm_sensors gets started at boot time; e.g\n", -+ "\$ rc-update add lm_sensors default\n"; - print "To make the sensors modules behave correctly, add these lines to\n". -- "/etc/modprobe.conf:\n\n"; -+ "/etc/modules.d/lm_sensors and run modules-update:\n\n"; - print "#----cut here----\n". - $configfile. - "#----cut here----\n\n"; - } - } - -- my $have_sysconfig = -d '/etc/sysconfig'; -- printf "Do you want to \%s /etc/sysconfig/lm_sensors? (\%s): ", -- (-e '/etc/sysconfig/lm_sensors' ? 'overwrite' : 'generate'), -- ($have_sysconfig ? 'YES/no' : 'yes/NO'); -- $_ = ; -- if (($have_sysconfig and not m/^\s*n/i) or m/^\s*y/i) { -- unless ($have_sysconfig) { -- mkdir('/etc/sysconfig', 0777) -- or die "Sorry, can't create /etc/sysconfig ($!)"; -+ my $have_config = -f '/etc/conf.d/lm_sensors'; -+ print "\nDo you want to ".($have_config?"overwrite":"generate"). -+ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n", -+ " (".($have_config?"yes/NO":"YES/no")."/s): "; -+ my $reply = ; -+ -+ if (($have_config and $reply =~ /^\s*[Yy]/) or -+ (not $have_config and not $reply =~ /^\s*[Nn]/) or -+ $reply =~ /^\s*[Ss]/) { -+ my $filename = "/etc/conf.d/lm_sensors"; -+ if ($reply =~ /^\s*[Ss]/) { -+ print "Specify the file to store the configuration to: "; -+ $filename = ; - } -- open(local *SYSCONFIG, ">/etc/sysconfig/lm_sensors") -- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; -+ open(local *SYSCONFIG, ">".$filename) -+ or die "Sorry, can't create $filename ($!)."; - print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; - print SYSCONFIG <<'EOT'; - # This file is sourced by /etc/init.d/lm_sensors and defines the modules to -@@ -6501,6 +6511,11 @@ - # BUS_MODULES for any required bus driver module (for example for I2C or SPI). - - EOT -+ print SYSCONFIG -+ "# Load modules at startup\n". -+ "LOADMODULES=yes\n\n". -+ "# Initialize sensors at startup\n". -+ "INITSENSORS=yes\n\n"; - print SYSCONFIG "BUS_MODULES=\"", join(" ", @{$bus_modules}), "\"\n" - if @{$bus_modules}; - print SYSCONFIG "HWMON_MODULES=\"", join(" ", @{$hwmon_modules}), "\"\n"; -@@ -6509,6 +6524,10 @@ - - # For compatibility reasons, modules are also listed individually as variables - # MODULE_0, MODULE_1, MODULE_2, etc. -+# Please note that the numbers in MODULE_X must start at 0 and increase in -+# steps of 1. Any number that is missing will make the init script skip the -+# rest of the modules. Use MODULE_X_ARGS for arguments. -+# - # You should use BUS_MODULES and HWMON_MODULES instead if possible. - - EOT -@@ -6519,25 +6538,7 @@ - } - close(SYSCONFIG); - -- if (-x "/bin/systemctl" && -d "/lib/systemd/system" && -- ! -f "/lib/systemd/system/lm_sensors.service") { -- print "Copy prog/init/lm_sensors.service to /lib/systemd/system\n". -- "and run 'systemctl enable lm_sensors.service'\n". -- "for initialization at boot time.\n"; -- return; -- } -- -- if (-x "/bin/systemctl" && -- -f "/lib/systemd/system/lm_sensors.service") { -- system("/bin/systemctl", "enable", "lm_sensors.service"); -- system("/bin/systemctl", "start", "lm_sensors.service"); -- # All done, don't check for /etc/init.d/lm_sensors -- return; -- } -- -- print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". -- "for initialization at boot time.\n" -- unless -f "/etc/init.d/lm_sensors"; -+ print "Done.\n"; - - if (-x "/sbin/insserv" && -f "/etc/init.d/lm_sensors") { - system("/sbin/insserv", "/etc/init.d/lm_sensors"); -@@ -6551,20 +6552,6 @@ - "kernel modules.\n\n"; - } - } else { -- print "To load everything that is needed, add this to one of the system\n". -- "initialization scripts (e.g. /etc/rc.d/rc.local):\n\n"; -- print "#----cut here----\n"; -- if (@{$bus_modules}) { -- print "# Adapter drivers\n"; -- print "modprobe $_\n" foreach (@{$bus_modules}); -- } -- print "# Chip drivers\n"; -- print "modprobe $_\n" foreach (@{$hwmon_modules}); -- print((-e '/usr/bin/sensors' ? -- "/usr/bin/sensors -s\n" : -- "/usr/local/bin/sensors -s\n"). -- "#----cut here----\n\n"); -- - print "If you have some drivers built into your kernel, the list above will\n". - "contain too many modules. Skip the appropriate ones! You really\n". - "should try these commands right now to make sure everything is\n". diff --git a/sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch b/sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch deleted file mode 100644 index 215969af..00000000 --- a/sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch +++ /dev/null @@ -1,118 +0,0 @@ -diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect -index fb17481..bb324c2 100755 ---- a/prog/detect/sensors-detect -+++ b/prog/detect/sensors-detect -@@ -20,6 +20,9 @@ - # MA 02110-1301 USA. - # - -+# Gentoo specific modifications based on a patch from Rudo Thomas -+# -+ - require 5.004; - - use strict; -@@ -6671,26 +6674,33 @@ sub write_config - print MODPROBE_D $configfile; - close(MODPROBE_D); - } else { -+ print "\nIf you want to load the modules at startup, generate a config file\n", -+ "below and make sure lm_sensors gets started at boot time; e.g\n", -+ "\$ rc-update add lm_sensors default\n"; - print "To make the sensors modules behave correctly, add these lines to\n". -- "/etc/modprobe.conf:\n\n"; -+ "/etc/modules.d/lm_sensors and run modules-update:\n\n"; - print "#----cut here----\n". - $configfile. - "#----cut here----\n\n"; - } - } - -- my $have_sysconfig = -d '/etc/sysconfig'; -- printf "Do you want to \%s /etc/sysconfig/lm_sensors? (\%s): ", -- (-e '/etc/sysconfig/lm_sensors' ? 'overwrite' : 'generate'), -- ($have_sysconfig ? 'YES/no' : 'yes/NO'); -- $_ = ; -- if (($have_sysconfig and not m/^\s*n/i) or m/^\s*y/i) { -- unless ($have_sysconfig) { -- mkdir('/etc/sysconfig', 0777) -- or die "Sorry, can't create /etc/sysconfig ($!)"; -+ my $have_config = -f '/etc/conf.d/lm_sensors'; -+ print "\nDo you want to ".($have_config?"overwrite":"generate"). -+ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n", -+ " (".($have_config?"yes/NO":"YES/no")."/s): "; -+ my $reply = ; -+ -+ if (($have_config and $reply =~ /^\s*[Yy]/) or -+ (not $have_config and not $reply =~ /^\s*[Nn]/) or -+ $reply =~ /^\s*[Ss]/) { -+ my $filename = "/etc/conf.d/lm_sensors"; -+ if ($reply =~ /^\s*[Ss]/) { -+ print "Specify the file to store the configuration to: "; -+ $filename = ; - } -- open(local *SYSCONFIG, ">/etc/sysconfig/lm_sensors") -- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; -+ open(local *SYSCONFIG, ">".$filename) -+ or die "Sorry, can't create $filename ($!)."; - print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; - print SYSCONFIG <<'EOT'; - # This file is sourced by /etc/init.d/lm_sensors and defines the modules to -@@ -6701,30 +6711,17 @@ sub write_config - # BUS_MODULES for any required bus driver module (for example for I2C or SPI). - - EOT -+ print SYSCONFIG -+ "# Load modules at startup\n". -+ "LOADMODULES=yes\n\n". -+ "# Initialize sensors at startup\n". -+ "INITSENSORS=yes\n\n"; - print SYSCONFIG "BUS_MODULES=\"", join(" ", @{$bus_modules}), "\"\n" - if @{$bus_modules}; - print SYSCONFIG "HWMON_MODULES=\"", join(" ", @{$hwmon_modules}), "\"\n"; - close(SYSCONFIG); - -- if (-x "/bin/systemctl" && -d "/lib/systemd/system" && -- ! -f "/lib/systemd/system/lm_sensors.service") { -- print "Copy prog/init/lm_sensors.service to /lib/systemd/system\n". -- "and run 'systemctl enable lm_sensors.service'\n". -- "for initialization at boot time.\n"; -- return; -- } -- -- if (-x "/bin/systemctl" && -- -f "/lib/systemd/system/lm_sensors.service") { -- system("/bin/systemctl", "enable", "lm_sensors.service"); -- system("/bin/systemctl", "start", "lm_sensors.service"); -- # All done, don't check for /etc/init.d/lm_sensors -- return; -- } -- -- print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". -- "for initialization at boot time.\n" -- unless -f "/etc/init.d/lm_sensors"; -+ print "Done.\n"; - - if (-x "/sbin/insserv" && -f "/etc/init.d/lm_sensors") { - system("/sbin/insserv", "/etc/init.d/lm_sensors"); -@@ -6738,20 +6735,6 @@ EOT - "kernel modules.\n\n"; - } - } else { -- print "To load everything that is needed, add this to one of the system\n". -- "initialization scripts (e.g. /etc/rc.d/rc.local):\n\n"; -- print "#----cut here----\n"; -- if (@{$bus_modules}) { -- print "# Adapter drivers\n"; -- print "modprobe $_\n" foreach (@{$bus_modules}); -- } -- print "# Chip drivers\n"; -- print "modprobe $_\n" foreach (@{$hwmon_modules}); -- print((-e '/usr/bin/sensors' ? -- "/usr/bin/sensors -s\n" : -- "/usr/local/bin/sensors -s\n"). -- "#----cut here----\n\n"); -- - print "If you have some drivers built into your kernel, the list above will\n". - "contain too many modules. Skip the appropriate ones! You really\n". - "should try these commands right now to make sure everything is\n". diff --git a/sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch b/sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch deleted file mode 100644 index 0ea9a02b..00000000 --- a/sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch +++ /dev/null @@ -1,120 +0,0 @@ ---- lm_sensors-3.3.5/prog/detect/sensors-detect -+++ lm_sensors-3.3.5/prog/detect/sensors-detect -@@ -20,6 +20,9 @@ - # MA 02110-1301 USA. - # - -+# Gentoo specific modifications based on a patch from Rudo Thomas -+# -+ - require 5.004; - - use strict; -@@ -6762,26 +6765,33 @@ - print MODPROBE_D $configfile; - close(MODPROBE_D); - } else { -+ print "\nIf you want to load the modules at startup, generate a config file\n", -+ "below and make sure lm_sensors gets started at boot time; e.g\n", -+ "\$ rc-update add lm_sensors default\n"; - print "To make the sensors modules behave correctly, add these lines to\n". -- "/etc/modprobe.conf:\n\n"; -+ "/etc/modules.d/lm_sensors and run modules-update:\n\n"; - print "#----cut here----\n". - $configfile. - "#----cut here----\n\n"; - } - } - -- my $have_sysconfig = -d '/etc/sysconfig'; -- printf "Do you want to \%s /etc/sysconfig/lm_sensors? (\%s): ", -- (-e '/etc/sysconfig/lm_sensors' ? 'overwrite' : 'generate'), -- ($have_sysconfig ? 'YES/no' : 'yes/NO'); -- $_ = read_answer(); -- if (($have_sysconfig and not m/^\s*n/i) or m/^\s*y/i) { -- unless ($have_sysconfig) { -- mkdir('/etc/sysconfig', 0777) -- or die "Sorry, can't create /etc/sysconfig ($!)"; -+ my $have_sysconfig = -f '/etc/conf.d/lm_sensors'; -+ printf "Do you want to ".($have_sysconfig?"overwrite":"generate"). -+ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n", -+ " (".($have_sysconfig?"yes/NO":"YES/no")."/s): "; -+ my $reply = read_answer(); -+ -+ if (($have_sysconfig and $reply =~ /^\s*[Yy]/) or -+ (not $have_sysconfig and not $reply =~ /^\s*[Nn]/) or -+ $reply =~ /^\s*[Ss]/) { -+ my $filename = "/etc/conf.d/lm_sensors"; -+ if ($reply =~ /^\s*[Ss]/) { -+ print "Specify the file to store the configuration to: "; -+ $filename = read_answer(); - } -- open(local *SYSCONFIG, ">/etc/sysconfig/lm_sensors") -- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; -+ open(local *SYSCONFIG, ">".$filename) -+ or die "Sorry, can't create $filename ($!)."; - print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; - print SYSCONFIG <<'EOT'; - # This file is sourced by /etc/init.d/lm_sensors and defines the modules to -@@ -6792,30 +6802,17 @@ - # BUS_MODULES for any required bus driver module (for example for I2C or SPI). - - EOT -+ print SYSCONFIG -+ "# Load modules at startup\n". -+ "LOADMODULES=yes\n\n". -+ "# Initialize sensors at startup\n". -+ "INITSENSORS=yes\n\n"; - print SYSCONFIG "BUS_MODULES=\"", join(" ", @{$bus_modules}), "\"\n" - if @{$bus_modules}; - print SYSCONFIG "HWMON_MODULES=\"", join(" ", @{$hwmon_modules}), "\"\n"; - close(SYSCONFIG); - -- if (-x "/bin/systemctl" && -d "/lib/systemd/system" && -- ! -f "/lib/systemd/system/lm_sensors.service") { -- print "Copy prog/init/lm_sensors.service to /lib/systemd/system\n". -- "and run 'systemctl enable lm_sensors.service'\n". -- "for initialization at boot time.\n"; -- return; -- } -- -- if (-x "/bin/systemctl" && -- -f "/lib/systemd/system/lm_sensors.service") { -- system("/bin/systemctl", "enable", "lm_sensors.service"); -- system("/bin/systemctl", "start", "lm_sensors.service"); -- # All done, don't check for /etc/init.d/lm_sensors -- return; -- } -- -- print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". -- "for initialization at boot time.\n" -- unless -f "/etc/init.d/lm_sensors"; -+ print "Done.\n"; - - if (-x "/sbin/insserv" && -f "/etc/init.d/lm_sensors") { - system("/sbin/insserv", "/etc/init.d/lm_sensors"); -@@ -6828,24 +6825,6 @@ - print "You should now start the lm_sensors service to load the required\n". - "kernel modules.\n\n"; - } -- } else { -- print "To load everything that is needed, add this to one of the system\n". -- "initialization scripts (e.g. /etc/rc.d/rc.local):\n\n"; -- print "#----cut here----\n"; -- if (@{$bus_modules}) { -- print "# Adapter drivers\n"; -- print "modprobe $_\n" foreach (@{$bus_modules}); -- } -- print "# Chip drivers\n"; -- print "modprobe $_\n" foreach (@{$hwmon_modules}); -- print((-e '/usr/bin/sensors' ? -- "/usr/bin/sensors -s\n" : -- "/usr/local/bin/sensors -s\n"). -- "#----cut here----\n\n"); -- -- print "You really should try these commands right now to make sure everything\n". -- "is working properly. Monitoring programs won't work until the needed\n". -- "modules are loaded.\n\n"; - } - } - diff --git a/sys-apps/lm_sensors/files/sensord-3-init.d b/sys-apps/lm_sensors/files/sensord-3-init.d deleted file mode 100644 index 74851259..00000000 --- a/sys-apps/lm_sensors/files/sensord-3-init.d +++ /dev/null @@ -1,33 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/sensord-3-init.d,v 1.1 2009/11/29 13:13:08 bangert Exp $ - -CONFIG=/etc/sensors3.conf - -depend() { - need logger - use lm_sensors -} - -checkconfig() { - if [ ! -f ${CONFIG} ]; then - eerror "Configuration file ${CONFIG} not found" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting sensord" - start-stop-daemon --start --exec /usr/sbin/sensord \ - -- --config-file ${CONFIG} ${SENSORD_OPTIONS} - eend ${?} -} - -stop() { - ebegin "Stopping sensord" - start-stop-daemon --stop --pidfile /var/run/sensord.pid - eend ${?} -} diff --git a/sys-apps/lm_sensors/files/sensord-4-init.d b/sys-apps/lm_sensors/files/sensord-4-init.d deleted file mode 100644 index 87f7e7ab..00000000 --- a/sys-apps/lm_sensors/files/sensord-4-init.d +++ /dev/null @@ -1,21 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -CONFIG=/etc/sensors3.conf - -depend() { - need localmount - use logger lm_sensors -} - -pidfile=/var/run/sensord.pid -command=/usr/sbin/sensord -command_args="--config-file ${CONFIG} ${SENSORD_OPTIONS} --pid-file ${pidfile}" - -start_pre() { - if [ ! -f ${CONFIG} ]; then - eerror "Configuration file ${CONFIG} not found" - return 1 - fi -} diff --git a/sys-apps/lm_sensors/files/sensord-conf.d b/sys-apps/lm_sensors/files/sensord-conf.d deleted file mode 100644 index d82841ae..00000000 --- a/sys-apps/lm_sensors/files/sensord-conf.d +++ /dev/null @@ -1,3 +0,0 @@ -# Extra options to pass to the sensord daemon, -# see sensord(8) for more information -SENSORD_OPTIONS="" diff --git a/sys-apps/lm_sensors/files/sensord.service b/sys-apps/lm_sensors/files/sensord.service deleted file mode 100644 index 6d272f1e..00000000 --- a/sys-apps/lm_sensors/files/sensord.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Sensor information logging daemon - -[Service] -PIDFile=/var/run/sensord.pid -ExecStart=/usr/sbin/sensord - -[Install] -WantedBy=multi-user.target diff --git a/sys-apps/lm_sensors/lm_sensors-3.3.3-r3.ebuild b/sys-apps/lm_sensors/lm_sensors-3.3.3-r3.ebuild deleted file mode 100644 index 752016e9..00000000 --- a/sys-apps/lm_sensors/lm_sensors-3.3.3-r3.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2013 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-r3.ebuild,v 1.6 2013/11/24 08:24:52 pacho Exp $ - -EAPI=5 - -inherit eutils linux-info toolchain-funcs multilib systemd - -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 ~arm-linux ~x86-linux" -IUSE="sensord static-libs systemd" - -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 - - # Fix shipped unit file paths - sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ - prog/init/lm_sensors.service || 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} - use systemd && systemd_dounit prog/init/lm_sensors.service - - newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol - use systemd && systemd_dounit "${FILESDIR}"/fancontrol.service - - if use sensord; then - newconfd "${FILESDIR}"/sensord-conf.d sensord - newinitd "${FILESDIR}"/sensord-4-init.d sensord - use systemd && systemd_dounit "${FILESDIR}"/sensord.service - 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 -} diff --git a/sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild b/sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild deleted file mode 100644 index 159c2cdf..00000000 --- a/sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id: 52ffdff312434a2cb318bd07cc5c8de72c5e7106 $ - -EAPI=5 - -inherit eutils linux-info multilib systemd toolchain-funcs - -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 ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux" -IUSE="sensord static-libs systemd" - -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}"/${P}-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 - - # Fix shipped unit file paths - sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ - prog/init/lm_sensors.service || 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} - use systemd && systemd_dounit prog/init/lm_sensors.service - - newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol - use systemd && systemd_dounit "${FILESDIR}"/fancontrol.service - - if use sensord; then - newconfd "${FILESDIR}"/sensord-conf.d sensord - newinitd "${FILESDIR}"/sensord-4-init.d sensord - use systemd && systemd_dounit "${FILESDIR}"/sensord.service - fi - - dodoc CHANGES CONTRIBUTORS INSTALL README \ - doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid} - - docinto developers - dodoc doc/developers/applications -} - -pkg_postinst() { - echo - elog "Please run \`/usr/sbin/sensors-detect' in order to setup" - elog "/etc/conf.d/${PN}." - echo - 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." - echo - 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." - echo - 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." - echo - elog "Also make sure you have read:" - elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31" - echo - elog "Please refer to the ${PN} documentation for more information." - elog "(http://www.lm-sensors.org/wiki/Documentation)" - echo -} diff --git a/sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild b/sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild deleted file mode 100644 index 17058a91..00000000 --- a/sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id: 664f1bcf8408eabc09be69a314880bb5e022dea3 $ - -EAPI=5 - -inherit eutils linux-info multilib systemd toolchain-funcs - -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 ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux" -IUSE="sensord static-libs systemd" - -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}"/${P}-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 - - # Fix shipped unit file paths - sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ - prog/init/lm_sensors.service || 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} - use systemd && systemd_dounit prog/init/lm_sensors.service - - newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol - use systemd && systemd_dounit "${FILESDIR}"/fancontrol.service - - if use sensord; then - newconfd "${FILESDIR}"/sensord-conf.d sensord - newinitd "${FILESDIR}"/sensord-4-init.d sensord - use systemd && systemd_dounit "${FILESDIR}"/sensord.service - fi - - dodoc CHANGES CONTRIBUTORS INSTALL README \ - doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid} - - docinto developers - dodoc doc/developers/applications -} - -pkg_postinst() { - echo - elog "Please run \`/usr/sbin/sensors-detect' in order to setup" - elog "/etc/conf.d/${PN}." - echo - 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." - echo - 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." - echo - 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." - echo - elog "Also make sure you have read:" - elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31" - echo - elog "Please refer to the ${PN} documentation for more information." - elog "(http://www.lm-sensors.org/wiki/Documentation)" - echo -} diff --git a/sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild b/sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild deleted file mode 100644 index 86fe170c..00000000 --- a/sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id: 0752370fe83648d9bd177d86a0ae82362d981302 $ - -EAPI=5 - -inherit eutils linux-info multilib systemd toolchain-funcs - -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 ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" -IUSE="sensord static-libs systemd" - -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.5-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 - - # Fix shipped unit file paths - sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ - prog/init/lm_sensors.service || 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} - use systemd && systemd_dounit prog/init/lm_sensors.service - - newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol - use systemd && systemd_dounit "${FILESDIR}"/fancontrol.service - - if use sensord; then - newconfd "${FILESDIR}"/sensord-conf.d sensord - newinitd "${FILESDIR}"/sensord-4-init.d sensord - use systemd && systemd_dounit "${FILESDIR}"/sensord.service - fi - - dodoc CHANGES CONTRIBUTORS INSTALL README \ - doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid} - - docinto developers - dodoc doc/developers/applications -} - -pkg_postinst() { - echo - elog "Please run \`/usr/sbin/sensors-detect' in order to setup" - elog "/etc/conf.d/${PN}." - echo - 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." - echo - 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." - echo - 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." - echo - elog "Also make sure you have read:" - elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31" - echo - elog "Please refer to the ${PN} documentation for more information." - elog "(http://www.lm-sensors.org/wiki/Documentation)" - echo -} -- cgit v1.2.3-65-gdbad